LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use Referenced single ended AND Differential in a VI at the same time with LV 6i and Traditional Daq?

Can I use Referenced single ended AND Differential in a VI at the same time with LV 6i and Traditional Daq?
 
I know It can be done with MX, I do it all the time, but when I tried it with 6i and traditional DAQ I get error 10009.
 
help me out on this one?
0 Kudos
Message 1 of 7
(3,243 Views)
anybody? yes/no?
0 Kudos
Message 2 of 7
(3,238 Views)
Yes, you can use differential and single-ended at the same time. The AI Config function is used for this. You have a channel array and a Coupling & input config array. For example, if channel 0 is single-ended and channel 1 differential, then element 0 of the channel array will have channel 0 listed and element 1 will list channel 1. Element 0 of the coupling/config array will specify the single-ended you want to use and element 1 will specify differential.
0 Kudos
Message 3 of 7
(3,234 Views)
Damn, this sounds complicated. If I post a VI can I un post it later?
0 Kudos
Message 4 of 7
(3,226 Views)
I dont think this VI (Which I did not write) contains AI group config at all.
 
Here it is:
 
 
0 Kudos
Message 5 of 7
(3,223 Views)
All channels are RSE, with the exception of Arterial pressure, and Coill which would be index 0 and 1 in the array.
0 Kudos
Message 6 of 7
(3,222 Views)
The VI you posted has AI Acquire Waveforms which has a subVI called AI Waveform Scan. AI Waveform Scan has inputs for coupling & input config because AI Waveform Scan calls AI Config. You can modify AI Acquire Waveforms to pass in an array of channels and the input config array. Just be sure to give it a new name and save it to a new location. You could also just call AI Waveform Scan instead of AI Acquire Waveforms.
0 Kudos
Message 7 of 7
(3,215 Views)