06-30-2011 07:05 AM
Hello,
I am using labview7.0 and need to know how to display and update current time and date on x-axis of waveform chart and waveform graph.
Please reply
Thanks,
Ratna
06-30-2011 07:41 AM
Hi
In waveform chart or graph to select the x-scale as a time stamp, select the graph or chart property. Select the display format and according to your requirement select relative time or absolute time settings.
06-30-2011 11:29 PM
hi
Thanks for the reply, but i did all those changes in waveform chart and graph. The problem is it is not showing current date and time. Its displaying time as 5:30 and date as 01/01/04.
Kindly tell me how can i start chart x-axis with current time and date and update it after every 1 sec.
Thanks,
Ratna
07-01-2011 07:53 AM
It appears you are not setting the timestamps of the data you send to the chart (we would need your code to know for sure). The easiest way to set a timestamp on data is to use the waveform datatype and set the timestamp in the datatype before writing to the chart/graph. You can certainly use single point waveforms.
Give it a try. If you still have problems, post your attempt so we can help correct the problem.
07-04-2011 03:48 AM
Hi,
I have attached the code for x-axis timestamp. I tried many options but still facing the same problem of wrong timestamp on x-axis. My requirement is to start accumulating values of all plots as soon as the vi gets executed, so the
x-axis timestamp also should get accumulated from the start.
Please help me to solve this problem as its very important for further development.
Thanks,
Ratna
07-04-2011 10:10 AM
You have two major issues with your code:
So learn about the different types of data that a graph can accept. Learn about using wires instead of front panel controls. Use shift registers to cache data in loops.
Good luck! Keep us posted on your progress.