LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to display multiple waveforms (more than 2) with current time on x axis

Hi Sheeraz,

 

this problem is a very basic one: ever heard of "shift register initialization"?

Best regards,
GerdW


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

Sorry mate. Maybe I didnt make my self clear enough. I have tried initiasing the shift registers by wiring a constant 0 to the left side if shift registers at while loop.

 

But the problem remains.

 

The problem is that thhe new data point are linked to two previous data points through a line; one to the last data point (which is correct as it should be) and secondly to the frist ever data point (which should not happen).

 

 

0 Kudos
Message 12 of 16
(759 Views)

You have to set the left side of the shift register with something like temp.jpg. Since you are emulating a chart, I prefer this sort of vi.

Download All
0 Kudos
Message 13 of 16
(742 Views)

Thanks for the reply Joseph

 

It works but again like I said in my 2nd coment on this post, 'The reason why I am not using a chart, although it works perfectly for this, is beacuse I want to control the x axis (start and end time) to see data at time as specified by user.'

 

I still dont think a chart can support that. If you think I am wrong then please do tell me or modify your previous VI to do that.

 

Regards,

Sheeraz

 

 

0 Kudos
Message 14 of 16
(734 Views)

If you look at the block diagram, it sets the start time. The end time should be dependent on you data being sent. If you run the VI, The start time keeps changing. If you look at the property, offset that sets the actual time.

 

If you look at the new VI, it actually set the time width of the display. The default in it is 300 seconds with a chart length of 4096 points. You can use the various controls to look at different locations in the chart or to view the length of the chart.

0 Kudos
Message 15 of 16
(730 Views)

Why cant I use time stamp controls for start time and end time wired to xscale property node's xscale minimum and xscale maximum..

 

 

It works for 2 waveforms but not for more.

 

 

0 Kudos
Message 16 of 16
(714 Views)