LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to simulate data to display on Waveform Chart/ Waveform Graph in real time ?

Hello Everybody.

 

My name's Chompool. I'm new in here.

I'm interested in LabVIEW Programming (Ver.2010).

I try to simulate input to display on Waveform Chart/ Waveform Graph in real time

X-Axis:       Time

Y-Axis:        Input

 

I try to simulate data as detailed below.

X    0     1     2     3     4     5     6     7     8     9     10     [Time (seconds)]
Y    1     1     1     2     2     2     3     3     3     3      3      [Input]

 

at the time 0 - 2 seconds, input = 1

at the time 3 - 5 seconds, input = 2

at the time 6 - 10 seconds, input = 3

 

I try to use paint program from Windows OS for draft a graph.
(as attached file)

 

Please advice me, how to use the funection on LabVIEW.
The data is displayed in real time.

 

For Example.

at 0 seconds     Value on Y-Axis displayed 1
at 1 seconds     Value on Y-Axis displayed 1

at 2 seconds     Value on Y-Axis displayed 1

at 3 seconds     Value on Y-Axis displayed 3


It will gradually show the information in real time.
As I try to simulate, All data is simultaneously displayed on the waveform. Which I did not want this.

I am a rookie.

Thank you

0 Kudos
Message 1 of 9
(4,370 Views)

Hi Choompoo,

 

LabVIEW comes with a huge library of example VIs. There are also example on how to use charts and graphs…

 

Some ideas:

check.png

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 9
(4,358 Views)

Thank you GerdW.

 

I will try again and report to you later.

What's a function at left side of XY-Graph.

0 Kudos
Message 3 of 9
(4,353 Views)

Index&Bundle Cluster Array

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 9
(4,349 Views)

I try.

I would like the results as shown in XY Graph and Wave Form Graph.

But All data show in graph at the same time.

 

If I need ro collect data step by step in real time.

 

at 0 seconds             Value on Y-Axis display      1
at 1 seconds later    Value on Y-Axis display      1

at 2 seconds later    Value on Y-Axis display      1

at 3 seconds later    Value on Y-Axis display      2

 

What should I do ?

I think maybe use dalay value.

Download All
0 Kudos
Message 5 of 9
(4,322 Views)

I would like the result same this VI.

But I do not to show zero value of next step.

0 Kudos
Message 6 of 9
(4,314 Views)

Hi Choompoo,

 

when you need to collect data in arrays you should do so!

 

This is a very basic LabVIEW exercise so I recommend to take the free online courses offered by NI on their website.

Learn about using shift registers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 9
(4,289 Views)
Gerd's example with the chart inside the for loop should do exactly what you want of you simply add a wait (ms) or Time Delay inside the loop.
0 Kudos
Message 8 of 9
(4,280 Views)

Thank you GerdW & Dennis_Knutson

I can do it.

0 Kudos
Message 9 of 9
(4,270 Views)