LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Plot array numeric vs array string"time&date" in Graph

I have data with array numeric and array string. I confused how to plot array numeric"OVL value" in axis-X and  array string"time&date" in axis-X ?

 

Anybody can help me?

 

 

thanks before..

 

regard,

 

angga

0 Kudos
Message 1 of 10
(7,018 Views)

Hi angga,

 

I'm confused too: What is an "OVL value"  and why do you want to plot both on the X axis???

 

I suspect you want that OVL value as Y value over a timeX scale...

You should convert your time strings to timestamps and then build an XY graph.

Or:

When values are evenly spaced in time then you only need to convert the first timestamp to form a waveform and feed that waveform to a simple graph or chart...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 10
(7,002 Views)

using LV 7.1, 8.6.1 and 9.0 2009 on WinXP

I'm confused too: What is an "OVL value"  and why do you want to plot both on the X axis???

 

Ans: Sorry, I'm wrong type..:D

 

I suspect you want that OVL value as Y value over a timeX scale...

 

Ans: ya, that's right.

 

You should convert your time strings to timestamps and then build an XY graph.

 

Ans:How ? I'm still confuse..

 

 

0 Kudos
Message 3 of 10
(6,989 Views)
Hosted by imgur.com

Hosted by imgur.com
0 Kudos
Message 4 of 10
(6,988 Views)

Hi angga,

 

why do you make a string in the first place? You already work with timestamps...

 

See attachment! And read the help, look at the examples,...!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 10
(6,986 Views)

Yah.. I understand..

but I have trouble again..

 

Ex : I acquition data everyday. and then, I saved array numeric and time/date data files. After that, I merge much data files like that be one files with different numeric and time/date.

 

I want plot  array value as Y value over a timeX scale.. I have problem at timeX scale. How merge time/date every files, and then plot it at Graph..

 

0 Kudos
Message 6 of 10
(6,976 Views)

Hi angga,

 

you have to convert date/time back to timestamps - you will find a lot of threads on this topic here. Then use timestamp as x-value and DAQdata as y-value for your XY graphs...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 10
(6,971 Views)

Hi

 

I am also seeing the same problem. 

 

I have a few LVM Files to be read and to be plotted out . I did a loop to extract a value from each LVM file to be used as the Y axis and then i wanted the x-axis of each point to be the date that the LVM file is created. I use "File / Directory Info" Vi to extract the "date modified". I am stuck over here, there is always problem for me to link the X axis data into the XY graph or the Build Waveform.

 

Please help me on this. I tried to google for other thread related to this but to no avail. And this thread offer the closest to what i need.

 

2.png

0 Kudos
Message 8 of 10
(6,813 Views)

Hi pengxin,

 

well, by using all those express VIs I would have problems too Smiley Wink And why do you google when there is a search function in the forum?

 

You already have the "build waveform" function in the block diagram. Just wire the timestamp to t0 and the data array from the LVM file to the Y input. Now connect the waveform to a graph...

 

You don't need express VIs to build a plot. The context help of the graphs tells ou how to do without!

 

One more note: don't inline such big pictures. It's annoying to have to scroll the browser window to read the full text...

Message Edited by GerdW on 02-11-2010 03:30 PM
Best regards,
GerdW


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

duplicate post

 

Did you even try what I suggested? If you were confused about my answer, you should have posted back on that thread.

0 Kudos
Message 10 of 10
(6,798 Views)