LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I am using (Labview w/ PXI-6070E on WinNT4.0 system)LV to read 6 AI signals. During this AI acuisition I need to

detect a level change on one of the DIO lines and then trigger a GPIO device. The AI READ function seems to lock up LV so that I cannot trigger the GPIO device until after the AI READ has Finished. Is it possible to do what I an trying to do in Labview?Can't get LV to allow monitoring of DIO lines during a AI READ operation.
0 Kudos
Message 1 of 2
(2,491 Views)
detect a level change on one of the DIO lines and then trigger a GPIO device. The AI READ function seems to lock up LV so that I cannot trigger the GPIO device until after the AI READ has Finished. Is it possible to do what I an trying to do in Labview?The answer to your questin is yes, you can do it. LV seems to lock up because when you do an AI Read, the data must be available to read from the buffer, or it waits until it is there. Therefore, the Data Acquisition thread is locked up, and no other data acquisition VIs will run until this AI Read is finished.

To get around this problem, check out the example /examples/daq/anlogin/anlogin.llb/Cont Acq&Chart (Async Occurrence).vi. This VI uses occurrences (like an interrupt), where the AI Read waits until the occurrence is set, and the occurrence is set when the data is available in the buffer. This allows your CPU to do other functions in the meantime, including other data acquisition calls.

Mark
0 Kudos
Message 2 of 2
(2,491 Views)