LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to stop the processing loop in the RT view?

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.

 

 

 

0 Kudos
Message 1 of 3
(2,313 Views)

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

AB
Kudos are Accepted
0 Kudos
Message 2 of 3
(2,310 Views)

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.

 

 

0 Kudos
Message 3 of 3
(2,301 Views)