02-03-2006 11:52 AM
02-04-2006 12:18 AM
Hi Ronin10,
If you were to attach a picture of your diagram, it would be a huge help.
02-04-2006 03:38 AM
Hiii, Ronin
Here is your solution.
By default, waveform charts and graphs display the absolute time at time 0 as 7:00:00 PM, 12/31/1903 on a Windows based system. Property nodes can be used to get the correct absolute time to display on the x-axis of the waveform chart.
First, right click the chart on the front panel and select X Scale >> Formatting. Then set the format to Absolute Time.
Create a property node for the waveform chart by right-clicking on the chart on the block diagram and selecting Create >> Property Node. Expand the property node to display two properties. Select the Format property and the Offset property. The Format property is located under X-Scale >> Format and Precision >> Format, and the Offset property can be found under X-Scale >> Offset and Multiplier >> Offset. Right click on the property node and select Change All to Write.
For the Format property, the context help shows that there are multiple inputs to this property. Wire in a value of 7 to set the format to Time and Date.For the Offset property, first wire the output of the Get Data/Time in Seconds VI to the input of the To Double Precision Float VI. Then wire the output of the To Double Precision Float VI to the Offset property.
In addition, if you know the number of data points plotted to the chart per second, you can set the Multiplier property located under X-Scale >> Offset and Multiplier >> Multiplier. If there are x data points generated per second, wire in a value of 1/x to the Multiplier property. A simple example program "Chart with Timestamp" that demonstrates how to do that is attached.
Thanks,
Nishant
02-06-2006 10:57 AM
Nishant! That was exactly what I was looking for. Thanks for the help!
ronin10
02-06-2006 10:18 PM
Hiii, Ronin
Glad to help you and i ll be always ready to help if it is possible for me.
Thanks,
Nishant