11-28-2017 09:37 AM
Hi,
I am trying to create a 4 channel oscilloscope using DAQmx functions. I have one quick question. Among my 4 channels, one is used for current and the other three are used for analog voltages. But the one I have created I used all the 4 channels for voltage. My question is how to make the 4th channel for current. I know I have to use DAQmx create virtual channel AI current, but how to use it together. How am I supposed to link three for AI voltage and the last one for AI current. If yes then how am I supposed to make single task out. I have attached the VI.
Thank you for your time.
Solved! Go to Solution.
11-28-2017 09:47 AM
11-28-2017 10:08 AM
thank you for your reply. How can I give all the channel as a single input to DAQmx timing and DAQmx Read. I am trying to create all the plot in single graph.
11-28-2017 11:23 AM - edited 11-28-2017 11:26 AM
Personally, I would make an array of clusters. Each cluster contains the information needed for that channel (physical channel, type {Voltage or Current}, Max, Min, terminal configuration). Then you can just use a FOR loop to add your channels to the task. Each time you use the DAQmx Create Virtual Channel, that channel is added to the task. So keeping the task in a shift register will allow you to add however many channels you need in whichever configuration you need.
NOTE: The case structure also has a "Voltage" case where the AI Voltage version of the Create Virtual Channel is used. That first node is DAQmx Create Task.vi.
11-28-2017 12:27 PM
can you please save the snippet in 2015 version. Thank you.
11-28-2017 12:45 PM
Here you go.