06-08-2011 12:45 PM
Greetings.
I tried to plot DateTime string array VS Numbers array with no success in the XY Graph object.
I even converted the DateTime string array to DateTime type using the VI called "Convert_String_to_TimeStamp.vi" with also no success as the X (Time) is just very big numbers and a datetime format.
Please check the attached shot, it will describe the situation clearly.
Thanks in advance
Ayman
Solved! Go to Solution.
06-08-2011 12:50 PM
are you tring to do this in real time? Do you have a copy of the data that you are trying to plot?
06-08-2011 12:59 PM
The data is loaded from a txt file.
06-08-2011 01:01 PM
You need to set the display format for the X-axis to be time rather than a number or automatic format. Right click on the graph and go to properties. Go to the Display format tab.
06-08-2011 01:02 PM - edited 06-08-2011 01:03 PM
You have the data correct just not the display format for the time axis!
Just open the property wizard for the graph and select Display format- x axis and set up however you want to show the display.
Edit- Yeah what Raven's fan said!
06-08-2011 01:07 PM
Perfect ... Many thanks Jeff Bohrer
06-08-2011 01:08 PM
Oops ... Sorry I overlooked your reply Ravens Fan ...
Thanks a million,
06-10-2013 06:10 AM
Hello,
Does anyone know a quick way to convert a string array in Time format to a timestamp without having to put the whole format through a for loop (I have 1.2 million samples each time) and its taking a while. Does anyone know a quick algorithm or something similar to speed it up?
String is in the following format 00:00:00.726 and I have also have the date string available eg. 01/03/2011 but has to be a string as I am geting it from a txt file.
Any help would be appreciated.
Thanks 🙂
06-10-2013 06:54 AM
You could read the file line by line and use the scan from sting function to convert to a timestamp.
06-10-2013 08:46 AM
Hello,
Thank you for the quick response, what you have there is what I am already doing, I was just wandering if there was a way to convert a full array at a time?
What you are proposing still means I have to do it line by line which takes time, I have an array of 1,000,000 items and just want to avoid doing them line by line or in a single for loop etc.
Just wandering if it was possible?
Thanks
Peter