LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to run two vi's at the same time, one uses an AI task with 8 AI channels the other a single AI and AO channel???

Hello Everyone,
Here is my situation.  I have one vi that is reading an AI task of 8 channels AI0 --> AI7 (one sample on demand) and also has control of all of the digital outputs on the board.  My problem is that I want to run another vi that will use the last AI channel AI8 and an AO channel AO0.  These two vi's do not need to know anything about one another but I do need them both to be running at the same time.  Currently when I try running the two vi's together both vi's crash and I get an error message stating that the AI8 pin is reserved.  AI8 is not part of the task and is not refrenced anywere in the larger vi.  I am assuming that this problem is do to the fact that the larger vi is occupying the DAQ board, cycling through the task when the smaller vi is requesting data from AI8 and the DAQ board cannot do two things at once.  The sampling rate on the smaller vi is not really that important.  Is there anyway I can get the smaller vi to read from AI8 and not crash??? Software and Hardware listed below.  Thanks in advance for any suggestions.
 
PCI-6221
Labview 7.1 
 
0 Kudos
Message 1 of 2
(2,465 Views)

Hi steve ,

Sorry to say that you cannot configure and acquire from AI channels on a   Device simultaineously from 2 seperate VI's.

regards

Dev

 

 

 

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