04-04-2006 12:13 PM
04-04-2006 02:35 PM
04-05-2006 04:32 AM
04-05-2006 06:45 AM
Hiii, Mr. Bhatti
I think you should use the simple "Write file.vi" instead of write spreadsheet to file.vi",because this will store your data in perfect dimensions in the file as it is coming from ur cards, and actually i couldnt get the poin that which kind of distortion you are getting here, cos lines are simple as we can see..., but is it not according to the data? another thing are you showing stored data? cos ur graph is not showing the original date and time, and it is showing the 1903 and ... time, which is the default time in the LabVIEW, which can affect ur data if they are stored with the time stamp(as per the figure it isn't, but it could be...), so please give some explaination about this, and may be i can solve ur problem, because i have done the same thing, to storing the data and showing the historical data with date and time.
Thanks,
Nishant
04-05-2006 08:36 AM
04-05-2006 11:04 PM
Hiii,
Below is the procedure to take original date and time on the graph.
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
04-06-2006 09:04 AM
04-06-2006 09:22 AM
04-06-2006 11:05 PM
Hiii,
you first have to write the data with the timestamp if you want to read it with the time stamp, and for how to write the data with the time stamp, i have attached the vi which can solve your problem, and i have also attach anothe vi, which will show you, how to read the data with the timestamp stored in the file. i have use the CSV file for storing my data, u can use any of the tab tyoe files for this.
Thanks,
Nishant
04-07-2006 12:28 PM