Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

daq+visa+priority

Hello, I'm programming a .vi for adquiring data from 2 devices. I adquire data via serial port  (visa) each 0.1 seconds, and  I adquire data from a DAQ  each 0.5 ms. I notice that i'm loosing data received by serial port, and i don't want this. What can I do to solve this?
 
Thanks,
 Luz
0 Kudos
Message 1 of 3
(3,098 Views)

Are they not in seperate while loops??

If not, put them in seperate while loops

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

Hi all,

 

Devchander is right, u should use two while loops with different timing for each one.

 

I will add something, do not connect any wire from the output of one loop to as input to the other one because that will give u errors. If u want to pass data from one loop to the other one (for example sharing the stop button) use local variables,

 

Regards,

Jaime Cabrera

NI Applications Engineering Spain

Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 Kudos
Message 3 of 3
(3,076 Views)