LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string to array (DBL) help

Hi, need a bit of help with this vi. basically the vi takes a spreadsheet file and puts it into an array so the data can be looked at. what i need to do is ideally to keep the string format, but also beable to have the data as clusters or DBL, SGL etc. So that this data can be graphed as many different graphs e.g.time against temperature, pressure against time etc.

Thanks Stuart
0 Kudos
Message 1 of 2
(2,639 Views)
Stuart,
You cannot graph strings. You will need to convert them into numbers.
You can easily convert array into a cluster by using the Array To Cluster function, under Array palette. You just need to extract which row or column of data you want to convert.
It would be best to first get separate 1D arrays of string from your 2D array, then put it through a loop and convert all elements to DBL or SGL, and then convert the output tunnel array of that loop to a cluster.

Zvezdana S.
National Instruments
0 Kudos
Message 2 of 2
(2,639 Views)