08-28-2013 04:06 AM
Hi to all!
I'm trying to create a chart from an array (2D) of strings but I can not.
Someone would know help me please?
08-28-2013 04:57 AM
You can not plot 'strings' into Chart or Graph.
For that, convert strings in to numericals and then pass it to chart or graph.
Note:-
You can directly convert the number string into Integer/Double datatype by 'Decimal String to Number/Frac/Expr String to Number' function.
You can use 'Scan From String' function and 'Date/Time to Seconds' function to convert the time string into timestamp datatype and then double.
Regards,
Yogesh Redemptor
08-28-2013 05:10 AM
Thanks for the tip ... I attach the images of the front panel and block diagram of the specific case that I would like to solve.
Based on what you see, what do I do exactly?
I think the fundamental problem is related to the axis of the X (to make sure that the string "date - time" becomes in "date - time" format).
Thank you ...
08-28-2013 06:47 AM
To convert your string to a timestamp you need to use the "Scan from string" function; the correct format for your example is %<%d/%m%Y - %H:%M>T
08-28-2013 07:10 AM
I used Scan from string function but an error appears... what kind of error is it?
08-28-2013 07:12 AM
Post the data..I means to say VI along with data
08-28-2013 07:17 AM
You forgot a slash in the format string, so it doesn't match the input
08-28-2013 07:24 AM
mmm... in wich position?
08-28-2013 07:30 AM
Ok, I forgot a slash typing the format. Now find the error.
(Hint: the format must preserve the input structure)
08-28-2013 07:54 AM
Ok. Perfect.
It should work!
thank you very much