From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-12-2012 02:18 PM
Hi guys
I got a problem i need to solve.
Ive got an array of strings comtaining time and array of numeric(DBL) values
These values i need to plot in an XY graph with time on X-axes and the values on the Y-axes. Any ideeas how to fix this problem.??
a
Solved! Go to Solution.
03-12-2012 02:40 PM - edited 03-12-2012 02:41 PM
You can use the Scan From String to get a timestamp (%<%H:%M:%S>T) or relative time (%<%H:%M:%S>t) but since you have repeated times, your graph is going to show different y values for the same x.
03-12-2012 05:44 PM
Im trying to use the example u sendt me but it aint working
My problem are that i want the string array containing "20:50:27" turned into a DBL value containing "20:50:27" ,that wil say the same value as shown in the string . In the exampl abov only 20 get stored, not :50:27
03-12-2012 05:49 PM
Take a closer look at the format string you are using versus the one in the Snippet.
03-12-2012 05:59 PM
Dosent make any diffrent it stil shows 20.. not 20:50:27 in the dbl
03-12-2012 06:02 PM
Then go to Graph Properties -> Display Format and set the X-Axis format to Relative Time.
03-12-2012 06:38 PM
Why did you use "f" in your format string and not "t" or "T"? That is what Darin is talking about.
02-26-2013 02:35 AM
It is good information for me. Thanks.