LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY graph with string input

Solved!
Go to solution

Hello,

 

I wish to do the following: 

I want to generate random numbers in one column on my array and have the second column with the current time and date. I want to then plot only the random number sthat have been generated along with the TIME from the Get Date/Time function. I want to put this into an array and plot them with a XY graph rather than in a spreadsheet. I'm stuck and would appreciate any help.

 

Side note: For my purpose i want to get the time indepent, rather than use a waveform chart and use the internal clock of that vi.

 

Thank you.

 

Download All
0 Kudos
Message 1 of 2
(4,195 Views)
Solution
Accepted by Thuba25

Not using LV2013 here, so not sure what you've attempted. But if you use Get Date Time in Seconds, you'll find that the timestamp that's generated can be used to plot against your randomly generated number. No strings involved - a cluster of the timestamp array and the data array can be plotted on an XY graph.

 

For instance, the following snippet generates a random number every 100 ms, twenty times, then plots the number against the timestamp each one was created at. Right clicking on the XY graph and setting the display format to Absolute Time allows you to customise the display to your heart's content.

 

timestmap.png

 

Edit - can't believe I didn't phrase it as 'no strings attached'. That was an open goal!

---
CLA
Message 2 of 2
(4,180 Views)