05-26-2009 01:56 PM
Hi Labviwers
Help me Plot this file right . My plot jumps in time and I cant handle it !
I want the x- axe to display the timestamps as they look in the file .... i mean the date and the time must be visible on the axe.
I Cant figure out a way to handle the AM / PM automatic.
If someone got an idea that will be help fully ... Thanks in advance.
HZ
LV 7.1
05-26-2009 03:09 PM - edited 05-26-2009 03:10 PM
For those reading this, please read the earlier discussions on this (see below) before replying. It's quite likely the question you will ask from HFZ has already been asked and covered.
http://forums.ni.com/ni/board/message?board.id=170&message.id=410139#M410139
http://forums.ni.com/ni/board/message?board.id=170&message.id=408890#M408890
05-26-2009 03:10 PM - edited 05-26-2009 03:13 PM
With a Scan From String function, you can convert to a timestamp and then to a DBL. With an XY Graph and the x axis set for absolute time, you can plot the data.
p.s. The correct spelling is LabVIEW.
05-26-2009 03:10 PM
Try this. Note that the string constant has \codes turned on.
05-26-2009 03:12 PM
05-28-2009 02:58 AM
Hi to all Prof 's
Thanks for that help.
As Smercurio wrote before... this question was asked before... and Smercurio helped me to find out that theres was a string code problem for the scan string. There fore the solution was accepted. But after trying it and after a lot of conversations af the Date/time stamp to get the plot right on the X-Y-Grph, it didn't worked out. There was, as mentioned earlier, still problems getting the right order of the Date time plotted correctly.
Now i'll try the solutions from Knutson and Fan....
HFZ
05-28-2009 08:43 AM
Well hopefully Dennis' or my replies will help you get the format string right. I think we had slight differences in the format.
It is generally frowned upon to start a new message thread with the same question/problem if you are already getting help in another thread.1
1. It creates more work for people as they are replying to questions that may have already been answered in other threads.
2. It scatters information around between the threads. There may be pertinent information in one thread that wasn't posted in the others.
If you have issues implementing a suggestion in one thread, continue posting in that thread. Only start a new thread if you truly have a different problem.
05-29-2009 02:37 AM
You certainly are right about that... My Bad!! I Handled disperately...
About the examples! I'm working with labview vers. 7.1. And I got problem to get this small timeglass in the Small 'Scan from string ' function Icon. Some advices?
When I wire the thread out from the 'Scan from string' icon to a 'Double' i get a broken wire!
HFZ
05-29-2009 08:44 AM
05-29-2009 09:06 AM
LabVIEW 7.1 and the Scan From String did not have the ability to convert to a timestamp. If you are using such an old version of LabVIEW, it's important that you mention that in your post.
Try to search the board for old examples of converting a date/time string to a timestamp.