LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

XY-Graph, draw Measured value with Timepstamp (e.g. -> 2,34; 12:31:12)

Hi there,

I have a proble to draw a XY plot. How is it possible to set the X-axis with the recorder timestamp ?

pls see the attachmend!


Thank you!
0 Kudos
Message 1 of 6
(3,143 Views)
I can't look at your VI, but try right clicking and selecting Properties>>Format & Precision and change to Absolute time. If you're using a chart, you will need to set the Offset and Multiplier properties in your code using a property node.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,134 Views)
Hi tst,

I´m using LV7.1


I´ve attached the diagram as a JPEG.


The problem is, the timestamp ia a string. A XY-graph does not accept a string!
0 Kudos
Message 3 of 6
(3,130 Views)
You can translate a string to a timestamp by converting each element to a number and building a time cluster. The attached VI shows an example of the technique, but it's not finished and probably has some bugs. If your format is set, you can write a small piece of code to do this.

___________________
Try to take over the world!
Message 4 of 6
(3,125 Views)
hi!

I modified your VI a little, it works now.

Connect an array of (Time-)strings, the output is a formated timestamp.


I think this funktion should be in a standard LV lib.......!
0 Kudos
Message 5 of 6
(3,120 Views)


@_avr_ wrote:
I think this funktion should be in a standard LV lib.......!


Couldn't agree more. Make a suggestion.

___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(3,111 Views)