LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display signal from oscilloscope on Waveform Chart has problem

Solved!
Go to solution

@GerdW wrote:

Hi Yangyi,

 

unfortunately I'm still using LV2017 so you need to downconvert your VI… (Edit->Save for previous)




0 Kudos
Message 11 of 26
(1,255 Views)

Hi yangyi,

 

I removed the myRIO stuff from your VI and use again the signal generation function:

check.png

I set all charts/graphs to autoscale their X scale…

Best regards,
GerdW


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

Hi GerdW,

 

I tried autoscale the X scale of chart but it did not work.

The output of signal generation function is in Waveform(DBL) but the output of read oscilloscope VI is in 1D array of waveform(DBL), I am not sure whether yours can simulate the data read from scope?

 

Yangyi

0 Kudos
Message 13 of 26
(1,245 Views)

Hi yangyi,

 

as can be seen in the image I also create an array of waveforms (with just one element)…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 26
(1,239 Views)

Hi GerdW

 

Sorry, but is the element the 'interleave 1D arrays'? I tried this in my VI but it had some connection errors.

 

Thanks 

 

Yangyi

0 Kudos
Message 15 of 26
(1,227 Views)

Hi yangyi,

 

no, I build an array of waveforms from a single waveform - using BuildArray

Best regards,
GerdW


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

Hi GerdW,

 

Thanks, but if I put all of them inside a while loop, the chart could not show expected waveform?

0 Kudos
Message 17 of 26
(1,229 Views)

Hi yangyi,

 

in your test.vi the graph and chart show the expected waveforms/plots (IMHO).

 

Maybe your expectation is wrong?

What exactly do you expect?

Do you know the difference(s) between a chart and a graph?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 26
(1,219 Views)

Hi GerdW,

 

My expectation is the chart can display dynamic waveform in same shape as graph displaying. But the chart display looks more density? Is it because it reads too fast?

 

By the way I tried to remove the loop as yours but chart display nothing? I attach the picture and vi without loop.

 

In my simple understanding, graph can display an array of data in one time but charts can be rolling in new data point to the end of buff?

 

Thanks,

 

Yangyi

Download All
0 Kudos
Message 19 of 26
(1,213 Views)

Hi yangyi,

 

when I run your VI all graphs/charts show the same data:

check.png

In my simple understanding, graph can display an array of data in one time but charts can be rolling in new data point to the end of buff?

A chart has its own history buffer, whereas a graph only displays the data present in the wire to its terminal. That's why charts allow for "rolling" displays on their own…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 26
(1,210 Views)