03-22-2015 11:46 AM - edited 03-22-2015 11:47 AM
Hello,
For the use of a 4461 card:
With the use of the DAQmx library:
When i use the "create Channel.vi" i can to use "Ai0:1" to use the 2 input channels. Then i use the Nchannel Read and split the signal with for example a "index array".
But is there a way to changes the channel numbers "on the fly" so when the program is running?
The same question with the outputs
When i use the Create channel for the outputs and i use Ao0:1 to use 2 output channels, but can i switch to one channel when the program is running. The Nchan write.vi is used, and this demands 2 channels. The use of one channel will give a error.
Is there a nice way to handel this?
Greetings.
Solved! Go to Solution.
03-22-2015 12:02 PM
03-22-2015 12:15 PM
I would like to create some flexibility.
On the inputs i can connect 2 mic and calculate the rms values and send this value to the outputs.
However when i use only one mic, the second output generates "static". So i thought i switch that output off with a software button/switch.
But if i understand correctly the program always has to stop running, and then change Ao0:1 to Ao0 or Ao1.
And i have to change the write.vi from Nchan to 1Chan.
03-22-2015 12:25 PM
03-22-2015 12:36 PM - edited 03-22-2015 12:46 PM
That is what i am doing now, but i don't think it is a beautliful solution.
But thank you for your reply (again).