From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plot xy graph using random number generator

How do i plot xy graph dynamically every 5 seconds with a random number generator?

X axis : Time

Y Axis : Random number generator

 

0 Kudos
Message 1 of 6
(6,077 Views)

I probably would use LabVIEW.

 

What have you tried so far? Where did you get stuck?

0 Kudos
Message 2 of 6
(6,075 Views)

Im unable to plot the time on x axis.

i just use random number generator as time in the mean time.

should i use time on from text file?

Capture.JPG

 

0 Kudos
Message 3 of 6
(6,071 Views)

try a chart.

0 Kudos
Message 4 of 6
(6,066 Views)

I've done tis so far. im able to plot dynamically every 1 second.

but the problem i am facing is The X axis display every 1 second.

i want it to be fixed 24 hours time format, and the data will gradually plots the data on y axis against x axis every one second, without changing the scale of the x axis (24hour time format)

1.JPG2.JPG

0 Kudos
Message 5 of 6
(6,063 Views)

You don't need shift registers and the Build Array because the Build XY graph express VI is doing that for you.

 

If you want time on the X axis, then you should be putting in the time, not another random number.

 

If you want to change the format of your X axis, then turn off autoscaling and set the min and max to be whatever gives you 24 hours of data (0 to 86400 would be 86,400 seconds in a day.)

Message 6 of 6
(6,054 Views)