Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Different current time on a Labview waveform chart and on a current timezone

Solved!
Go to solution

Hi,

I'm sorry. How can I possibly display current time on a Labview waveform chart similar to a current timezone. (Please see attached)  

 

 

 

Best Regards,

Akram

Download All
0 Kudos
Message 1 of 12
(6,052 Views)

Hey Akram,

 

I have run your code on my machine, and it appears that the time and date on my charts are fine. Have you tried deleting and replacing the graphs on your computer? If this fails you can always modify the graph you are using property nodes, although it takes quite a bit of tweaking before you are able to change the time and data accurately. Below is a sample VI I have created which shows how to achieve this. In the example I have posted, I have used the measurement and automation explorer to simulate a USB 9211 thermocouple, this is just for the example. On the VI I have attached to this post you can modify the constants as labeled on the VI to change the time and date settings on your graph.

Regards

Andrew George @ NI UK
0 Kudos
Message 2 of 12
(6,008 Views)

Hi Andrew,

How are you? Thanks for your response to my question. I've tried deleting and creating new charts. However, it still appears with a similar problem (see attached). Anyway, I couldn't open the sample file that you've created. It says, file version is later than the current (LabView 2009)  I'm sorry, what do you mean by  'modify the graph you are using property nodes'? And How can I possibly open the sample file?

 

 

 

 

Best Regards,

Akram 

Download All
0 Kudos
Message 3 of 12
(6,004 Views)

Hey Akram,

 

Apologies I have LV 2010, I will save to 2009 and you can have a look at the solution.

Regards

Andrew George @ NI UK
0 Kudos
Message 4 of 12
(6,001 Views)

sorry Akram,

 

this one should work! forgot to save as 2009!

Regards

Andrew George @ NI UK
0 Kudos
Message 5 of 12
(5,996 Views)

Hi Andrew,

Since I'm using cRIO. I guess, I'll need to modify the sample file to be able to run on my LabView RT file. Anyway, I'll give it a try and I'll let you know about it, sooner.

 

 

Thanks so much,

Akram 

0 Kudos
Message 6 of 12
(5,991 Views)

Hi Andrew,

I'm sorry. I've modified the sample file to run on my machine (please find attached). However, unfortunately, it didn't work and it still appears different current time. How can I modify the constants on the VI to change to the correct time setting on my graph?  Can you please help me on this?

 

 

 

 

Thanks,

Akram

Download All
0 Kudos
Message 7 of 12
(5,974 Views)

Hey Akram,

 

I think you have posted the wrong VI. Its exactly the same as the one I posted ?

Regards

Andrew George @ NI UK
0 Kudos
Message 8 of 12
(5,930 Views)

Hi Andrew,

My appologies and thanks for letting me know. Kindly find  file attached.

 

 

 

Regards,

Akram

0 Kudos
Message 9 of 12
(5,924 Views)
Solution
Accepted by topic author illuminance meter

Hey Akram,

 

What I would like you to do is delete the array of clusters you have modified, this is the input of the property node of the waveform chart labeled history. Then right-click on the History Input and create a constant (Do not Modify this! As it initializes the chart). Then within the loop there is another property node of the Waveform Chart with the "x scale offset" and "x scale multiplier"  these both have constants wired to them, if you want to change the time or date of the waveform chart then you must change the constant values of "1" you can do this by changing the constant values and running the code or changing the constants to controls and modify during runtime. The code you have written should work. I have copied a print screen of the code please have a look before continuing. 

Regards

Andrew George @ NI UK
0 Kudos
Message 10 of 12
(5,919 Views)