LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conflicts with multiple VIs

Hi, we have a setup where we would like 2 VIs to read from a common high speed ADC. The first VI is a "housekeeping" VI which monitors a few channels on the ADC, mostly monitoring temp and pressure in a dewar. The second VI sends commands to an outside box to have it change the input to one of the ADC channels, and then records the voltage from that channel. Actually, for every cycle we record four different values in succession and write it to file. The problem is when we increase the rate (say to 1-5 seconds per data point) at which the "housekeeping" VI acquires data the second vi does not work correctly. Is there something in LV that can make these two (and maybe three) VIs not conflict when accessing the ADC? Please note that I am
new to LV programming, my apologies if this question should be directed to another category. Thanks for any insight!

Anil
0 Kudos
Message 1 of 2
(2,570 Views)
Without doing a lot of work, synchronizing communication to the same piece of hardware from different and independant VIs (or any other software for that matter) is next to impossible. It would be far easier to have a single VI that acquires all channels and then pass the data to different VIs that display what you want. You could do this a lot of different ways. The dispaly VIs could be subVIs of the the main VI that does all of the acquisition or the main VI could de a Datasocket server and your display VIs are Datasocket clients.
0 Kudos
Message 2 of 2
(2,570 Views)