ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

graph

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?

Download All
0 Kudos
Message 1 of 14
(3,750 Views)

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

Regards,
Yogesh Redemptor
0 Kudos
Message 2 of 14
(3,732 Views)

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 ...

Download All
0 Kudos
Message 3 of 14
(3,728 Views)

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

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 4 of 14
(3,698 Views)

I used Scan from string function but an error appears... what kind of error is it?

 

0 Kudos
Message 5 of 14
(3,694 Views)

Post the data..I means to say VI along with data

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 6 of 14
(3,690 Views)

You forgot a slash in the format string, so it doesn't match the input

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 7 of 14
(3,686 Views)

mmm... in wich position?

0 Kudos
Message 8 of 14
(3,675 Views)

Ok, I forgot a slash typing the format. Now find the error.

(Hint: the format must preserve the input structure)

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 9 of 14
(3,669 Views)

Ok. Perfect.
It should work!
thank you very much

0 Kudos
Message 10 of 14
(3,658 Views)