LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Ecrire des chaines de caractères sur l'abscisse d'un graphique

Je cherche à écrire des caractéres ( date/heure) provenant d'un fichier excel sur l'abscisse d'un graphique.
Merci pour la réponse
0 Kudos
Message 1 of 3
(2,714 Views)
biow,
I can understand french, but I think I will be more clear by replying in English.

You have to create a property node for your graph where you specify the Format&Precision for the X scale. you want to set Format=7 and Precision=0

Then you have to specify the format string for the X scale. This is also a property node Xscale>>FormatString
By following the instructions found on the LabVIEW online Help, to obtain this format DD/MM/YYYY HH:MM:SS AM, you can use the following format string

<%d>/<%m>/<%Y> <%I>:<%M>:<%S> <%p>

Then the only thing that is left to implement is to read the date/time values from your excel sheet (using activex Automation), select the X marker you want to write to (use Xscale>>Marker>>selection) and change its text value pas
sing it the value retrieved from the excel sheet (using Xscale>>Marker>>text)

Good luck,

A. Deotto
0 Kudos
Message 2 of 3
(2,714 Views)
biow,
I can understand french, but I think I will be more clear by replying in English.

You have to create a property node for your graph where you specify the Format&Precision for the X scale. you want to set Format=7 and Precision=0

Then you have to specify the format string for the X scale. This is also a property node Xscale>>FormatString
By following the instructions found on the LabVIEW online Help, to obtain this format DD/MM/YYYY HH:MM:SS AM, you can use the following format string

<%d>/<%m>/<%Y> <%I>:<%M>:<%S> <%p>

Then the only thing that is left to implement is to read the date/time values from your excel sheet (using activex Automation), select the X marker you want to write to (use Xscale>>Marker>>selection) and change its text value pas
sing it the value retrieved from the excel sheet (using Xscale>>Marker>>text)

Good luck,

A. Deotto
0 Kudos
Message 3 of 3
(2,714 Views)