LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Virtual oscilloscope

Solved!
Go to solution

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.

0 Kudos
Message 1 of 6
(5,008 Views)

Hi lab,

 

use two calls of DAQmxCreateChannel, one for the voltage signals, the other for the current signal…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(4,997 Views)

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. 

 

 

0 Kudos
Message 3 of 6
(4,985 Views)
Solution
Accepted by topic author bufferlab

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 4 of 6
(4,965 Views)

can you please save the snippet in 2015 version. Thank you.

0 Kudos
Message 5 of 6
(4,955 Views)

Here you go.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 6 of 6
(4,946 Views)