Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Run 2 VIs at once with DAQ assistant

Hi,

Im new to LabVIEW so sorry in advance if I have posted this question in the wrong place.

 

I want to run two VIs at one time. One VI operates a shaker and force sensor mechanism that I did not develop. I want to run a second VI which I did develop that calculates impedance of a material.

My problem is when I try to run both of these together errors occur within the DAQ assistant module which I have used for the impedance VI. It mentions that the resources are already being used. I have checked all of my channels and see no conflicts.

I think my problem may be that when using DAQ assistant it assumes control of all input and output.

I have included both VIs that I wish to operate together.

 

Thanks

Ben

Download All
0 Kudos
Message 1 of 2
(2,960 Views)

Ben,

 

Your problem highlights one of the problems with using DAQ Assistant.  Each instance of the DAQ Assistant is trying to read an 'AI' channel.  That means that each is creating an AI Task and trying to reserve the communications channel between the DAQmx drivers the actual DAQmx AI hardware.  The problem is that there is only one communication channel available for the Analog Inputs.  This is why the error is generated.  Figure 1 in this tutorial illustrates this concept.  

 

My suggestion would be to use the DAQmx vi's to programatically create a single DAQmx AI Task that reads all the analog inputs involved in your application.

 

 

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