05-23-2011 11:27 PM
Hello everybody,
I am attaching one of my coding of RT side here, which is made for controlling data acquisition from NI 9213 module.
The difficulty I am facing with right now is I cannot stop the processing loop (TOP WHILE LOOP). After getting the desired data and being processed in the processing loop, that loop continuously runs.
What I like to do is--
When my code will exit the communication loop (bottom loop), Release queue function will release the data, so dequeue function in the processing loop will generate error and should stop the top loop. But that is not being happened. Dequeue function is not generating error even after 'stop FPGA' Boolean (this Boolean is supposed to stop the bottom loop and bottom loop is being stopped that point) gets the True after finish reading the data from FIFO.
Could you please give me valuable recommendation in order to fix this?
Any responses would be equally appreciated.
05-24-2011 12:54 AM
you have added your loop termination to a error
At starting of loop if there is no error value is at node(so the top loop continues to execute till it receives the error)
replace node by shift register OR use a or function using a local variable of fpga or rt loop stop buttons
i dont have controller so please try this and update me back
05-24-2011 10:16 AM
The processing loop does not get the error at all. This is the reason I cannot stop that loop by error. My question is why the release queue is not executing.
Thank you.