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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string array to number array

Hi all, Im reading some datas from serial port using labview.

 

The end of each read by labview module is observed to be 0d ie \n. Im performing string read.

 

Each string i read i stored into an array so i got a string array..Now the problem comes...

These serial datas contain numeric values for example 100,200,300 etc.I need to plot these serial read array of numbers in string format Vs an internally generated array of numbers .When i use XY graph it says incompatibility between source and sink since the input of XY graph is numeric while string array is not numeric..

 

Can somebody suggest me a solution?

Thanks

Stephen

 

(Note :-Im using LV 6.1 so kindly post an image file, if possible incase of a code sharing from a higher version)

 

0 Kudos
Message 1 of 2
(2,292 Views)
Simply wire your string array to the Fract/Exp String to Number. It accepts scalars or arrays.
0 Kudos
Message 2 of 2
(2,287 Views)