LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I move data from a DAQ into and out of loops and structures?

I have a set of RTD probes set up to read data into LabView through a DAQ. This block of code is in a while loop

that executes alongside of several other loops simultaneously. I need to use the data from the RTD probes in other

loops and case structures specifically for logic tests.

 

The problem is that I can't seem to bring the dynamic data out of the DAQ containing while loop or into the other structures.

Any ideas?

 

I have had some success with using multiple DAQs and stopping all others while I need the data inside of a case structure.

Is there a way to reference data from a DAQ or to run multiple DAQs that read the same data from the same channels without getting a "Task in use error"?

 

Thanks,

-David

0 Kudos
Message 1 of 2
(2,550 Views)

Search the forums for Prodcuer/consumer architecture.

 

This uses queues to pass data from the producer loop (such as your data acquisition loop) to other "consumer" loops.  These are the other loops where you want to use the data.

 

You won't be able to use multiple DAQ Read functions at the same time.  As you've seen you get error -50103 about the resources already being in use.

0 Kudos
Message 2 of 2
(2,544 Views)