LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to read and write input voltage from usb 6008 without using daq assistant and using daqmx? My daq assistant has expired

Solved!
Go to solution

GerdW,

 

Now how do I add channels and thus read data from multiple channels? 

0 Kudos
Message 11 of 25
(1,289 Views)

Hi kdm,

 

did you study all those example VIs? They explain all those details…

(Use DAQmxCreateVirtualChannel and DAQmxRead.)

 

Did you read the DAQmxBasics offered by NI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 25
(1,284 Views)

GerdW,

 

Could figure it out without the examples! 

 

Thanks!

0 Kudos
Message 13 of 25
(1,276 Views)

GerdW,

 

Now how do you represent the data from the four channels(in 2D array data type)  in a single waveform chart.

Please help. I could not find in any examples.

0 Kudos
Message 14 of 25
(1,258 Views)

Hi kdm,

 

that is explained in the context help for a waveform chart. There it says it accepts 2D data for "multiple channel, multiple samples" data!

 

The same is also written in the LabVIEW help for the waveform chart!

 

Do you ever read the help?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 15 of 25
(1,252 Views)

GerdW,

 

Thanks for your reply.

 

I connected the data(2D array) from the read function to a build array with 0,1,2,3 as constants and connected the four output arrays to a waveform chart. The waveform chart shows a zero. I then used "get waveform components" function to each array, but I think the data type is not matching. The "get waveform components" function needs waveform datatype. How do I convert? I want output all four channels in a waveform chart. How should I proceed?

 

I could'nt figure out from neither the Help nor the examples.

0 Kudos
Message 16 of 25
(1,240 Views)

 P.S : *I  bundled the four arrays and connected it to a waveform chart.

0 Kudos
Message 17 of 25
(1,231 Views)

Look at the example Waveform Graph Data Types for using the Waveform Graph.  If you're using a chart you'll have to transpose the 2D array or else your X and Y are reversed in the chart.  Also remember that a chart will hold your data so you'll need to clear it with a property node (the chart history) unless you want to retain your data.  It sounds like you should be using the waveform graph but I don't know what your'e trying to do.Untitled.jpgeed to use 

 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 18 of 25
(1,208 Views)

Sorry it was not a build array that I used. It is an index array with 0,1,2,3 as constants to the index terminals. Then I connected the four output arrays to build array and this output to a waveform chart. But this waveform chart shows zero. Whats wrong?

0 Kudos
Message 19 of 25
(1,189 Views)

Why am I not getting it on a waveform chart? Im getting it on a waveform graph.

0 Kudos
Message 20 of 25
(1,175 Views)