Academic Hardware Products (myDAQ, myRIO)

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQ-NI 9219 card

Solved!
Go to solution

In my project using NI 9219 card having 4 universal inputs. So each channel is individually selectable for measurement type of voltage, current or resistance. Instead of dedicated type of measurement type for each channel. I want to pro-grammatically change the measurement type of any channel at run time. Say for example:

I want to use 2 channel as voltage and 2 channel as current.

Next run time, I want to use all 4 channel as voltage measurment.

 

Is it possible without modifying the code? by the way providing an option in front panel. 

0 Kudos
Message 1 of 2
(3,274 Views)
Solution
Accepted by topic author Kannan_Kn

Hello

 

You can put a simple case structure in beginning of your code, to select virtual channel creation as a voltage input or current input. Every time before starting VI you can select how do you want it to behave.

Attached screenshot should be helpful for you.

 

 

 

Message 2 of 2
(3,248 Views)