LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modify the custom date format of XY graph by programmation

Hi everybody

I want to modify the custom date format and the custom time format of XY graph by programmation
Is it possible ?
0 Kudos
Message 1 of 8
(3,716 Views)
Yes. Use a Property node for the XY Graph (X Scale - Format String).
I've attached an example
Message 2 of 8
(3,716 Views)
Ooops. The example I added was a LabVIEW 7.1 vi. Here is the same VI saved in LabVIEW 7.0:
0 Kudos
Message 3 of 8
(3,716 Views)
Thanks but can I progam the time format like this : dd/MM
hh:mm
0 Kudos
Message 4 of 8
(3,716 Views)
Yes. The LabVIEW Help explains what each part of the format string means. The help on the "Format Date/Time String" function explains this best (Go to Help Menu, select "VI, Function, & How To", then type "Format Date/Time String" into the Index tab.
For
Days/Months
Hours:Minutes
use
%d/%m
%H:%M

Shawn
0 Kudos
Message 5 of 8
(3,716 Views)
I can't use this format by programming for the scale name with labview 6.1
0 Kudos
Message 6 of 8
(3,716 Views)
Hello,

You will find some tips in the several knowledge base attached below.

* How Can I Plot My Acquired Data Versus A Timestamp in LabVIEW?
http://digital.ni.com/public.nsf/websearch/EE0668C8F6CE617686256C920065EC52?OpenDocument

* In LabVIEW, How Do I Programmatically Set a Graph or Chart to Have a Time and Date Format Through a Property Node?
http://digital.ni.com/public.nsf/websearch/BD901BB252C63667862566F200800D28?OpenDocument

* How Do I Set the Time and Date on the X-axis of a Graph in LabVIEW?
http://pong.ni.com/public.nsf/websearch/0A4899EF6D01B9C5862568B70074F989?OpenDocument

* Why Doesn't My Graph Show the Current Time?
http://digital.ni.com/public.nsf/websearch/163EE33AFCD1D94E86256DB80074EBEA?OpenDocument

Here is also another
example of handling X-scale format programmatically under LabVIEW 6.1.

I hope this helps.
Best regards.

Matthieu Gourssies
National Instruments
0 Kudos
Message 7 of 8
(3,716 Views)
That's correct. The format string property isn't available until LabVIEW 7.0 and later. LabVIEW 6.1 may only display certain time formats. Programmatically setting time formats is even more limited. Try using the Format property on the Scale. That is the last thing I can think of.
Hope this helps- Shawn
0 Kudos
Message 8 of 8
(3,716 Views)