LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple vi DAQmx

Solved!
Go to solution

Hello!

 

I am fairly new to the LabView programming, so I have a bit of dillema, that I hope could be solved here.

 

We purchased NI PCI 6281 card for our lab measurements and we would like to make three .vi-s for three instruments - temperature controller, pressure controler and LVDT.

 

So far I wasn't succesfull in multiple vi-s. When I run the second one program crashes, presumably because card is busy with first vi.

I know there are several solutions, including cramming everything into single .vi, but I would appreciate suggestions about doing it with multiple vi-s for simplicity of the end user.

Could you suggest how should I do it? ActiveX, Events?

0 Kudos
Message 1 of 2
(2,553 Views)
Solution
Accepted by topic author tcvitanic

Hi tcvitanic,

 

your card only has one ADC, using a MUX for all AI channels.

Conclusion: you cannot create several DAQmx tasks to access AI channels from different VIs. You need to create one DAQmx task which includes all AI channels…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(2,546 Views)