LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to plot the graph of signals from two channels to waveform chart and export the outputs to excel file

Dear all!

 

I am new in Labview and DAQ systems. I would APPRECIATE any help from YOU.

 

I would like to plot the graphs of two lvdts displacement up to time change on A ONE SINGLE Waveform Chart and finally get the results in excell file. 

 

I face some problems pertaining to type inconsistency when converting from dynamic data.

 

DAQ: NI USB 6210

LabVIEW version:  LabVIEW 2017

 

The source code and the screenshots of settings of certain blocks have been attached.

0 Kudos
Message 1 of 7
(3,677 Views)

Hi Frank,

 

I would like to plot the graphs of two lvdts displacement up to time change on A ONE SINGLE Waveform Chart and finally get the results in excell file.

Then why do you converrt the DDT wire to a single waveform, when you want to plot both waveforms/signals?

You should convert to an array of waveforms to get your both signals…

 

(You should get rid of that DAQAssistent, it will limit you in the end.)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,655 Views)

@GerdW wrote:

(You should get rid of that DAQAssistent, it will limit you in the end.)


And when you get rid of the Dreaded DAQ Assistant, do not bring back its Evil Twin, the Dynamic Data Wire!  Stick with an Array of Waveforms which will automatically plot "correctly".

 

Bob Schor

0 Kudos
Message 3 of 7
(3,640 Views)

Thank you for the response.

I changed Resulting data type and get rid of some elements, but  I lost time column in my result file.

You advise me to change DAQ assistant to something, could you tell me to what?

 

0 Kudos
Message 4 of 7
(3,626 Views)

Thank you for the response.

You did mention about changing DAQ assistant to something, what namely I got to change it to?

0 Kudos
Message 5 of 7
(3,624 Views)

All I want is just read the voltage values from two channels during certain TIME and:

1. Plot the on the SINGLE waveform chart

2. Save the result values to a file (csv, txt, excel) with following structure:

time| voltage1| voltage2|

 

I have been looking for relevant examples but without success. If you know please, could you give some link to specific examples

 

Sorry if my questions looks silly or wierd.

 

 

 

 

0 Kudos
Message 6 of 7
(3,618 Views)

Hi frank,

 

1. Wire the waveform array to your chart…

2. Configure the ExpressVI in the correct way - or do your own data formatting:

check.png

(There are other options as well, but that one is done quickly…)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 7
(3,608 Views)