08-24-2010 09:35 AM
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
Solved! Go to Solution.
08-27-2010 06:06 AM
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.
08-27-2010 07:49 AM
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
08-27-2010 09:00 AM
Hey Akram,
Apologies I have LV 2010, I will save to 2009 and you can have a look at the solution.
08-27-2010 09:12 AM
sorry Akram,
this one should work! forgot to save as 2009!
08-27-2010 10:02 AM
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
08-27-2010 11:17 PM
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
08-31-2010 03:58 AM
Hey Akram,
I think you have posted the wrong VI. Its exactly the same as the one I posted ?
08-31-2010 04:27 AM
Hi Andrew,
My appologies and thanks for letting me know. Kindly find file attached.
Regards,
Akram
08-31-2010 07:54 AM
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.