LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to show simultaneously two different channels on two different indicators using DAQ

Hi.

I'd like to create a voltage acquisition on two different channels, i.e. channel 0 and 1.

For this purpose I've cretated this:

mforbiz_0-1697441758228.png

Then, I've used this on the block diagram:

mforbiz_1-1697441877976.pngthe

Anyway, I don't know on how to send the two differents channel's signal on two different numeric indicator so that the first, the gauge, shows CH0 values and the second, the meter, shows the CH1 values.

May you help me?

Thanks in advance.

0 Kudos
Message 1 of 16
(1,251 Views)

Don't use DAQ assistant. Use DAQmx API. See Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications

You can get examples from Help >> Find Examples >> Hardware Input and Output >> DAQmx

Read the data as double array and use Index Array to separate into two different indicators.

 

-------------------------------------------------------
Applications Engineer | TME Systems
0 Kudos
Message 2 of 16
(1,222 Views)

Hi ZYOng.

Thanks for your reply.

I've tried this:

mforbiz_0-1697709258974.png

But , when I run it, I receive this error:

mforbiz_1-1697709309118.png

Where I'm going wrong ?

0 Kudos
Message 3 of 16
(1,174 Views)

Hi.

If I build this VI, I can acquire and show two different AI voltage signal ad visualize they as a waveform.

mforbiz_0-1698389777931.png

But if I don't know how to show the two signal in two different indicators (not waveform) .

Anything like this:

mforbiz_1-1698390567937.png

 

Any idea?

Thanks in advance

 

0 Kudos
Message 4 of 16
(1,167 Views)

Hi mforbiz,

 


@mforbiz wrote:

If I build this VI, I can acquire and show two different AI voltage signal ad visualize they as a waveform.


This is just an ExpressVI with an indicator - but if it is sufficient for you then it is ok...

 


@mforbiz wrote:

But if I don't know how to show the two signal in two different indicators (not waveform) .

 

Any idea?


Right-click the chart and show the digital display...

 

Generic suggestions:

  • Learn to use DAQmx functions as explained in the DAQmx example VIs and here. (It will be much more clear how to get data of two channels.)
  • When sticking with ExpressVIs you should use more ExpressVIs like Splitsignal...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 16
(1,155 Views)