LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read one line text and pass it to an array

Hi i need help on passing a line of strings to an array. i can get the line i need but i dont knw how to pass the line values to an array
for example ;
the line i get DT=CLS,DR=CLS,RT=OPN,.....
now how to pass it to an array?
 
Plz help
0 Kudos
Message 1 of 7
(3,238 Views)
Hi jeyanthi,
do you want to split this string into an array?
Your line: DT=CLS,DR=CLS,RT=OPN,...
toArray: [DT=CLS, DR=CLS, RT=OPN,...]
 
If yes you can use the spreadsheet string to array function.
 
Mike
0 Kudos
Message 2 of 7
(3,237 Views)
hi. Yes the array should be like tht. Can i get some examples. Plz.
0 Kudos
Message 3 of 7
(3,233 Views)
I try to use the spreadsheet to array but i am confuse wit the array type (2D(dbl)) function . how to indicate it to 1D Array
0 Kudos
Message 4 of 7
(3,226 Views)

Hi jeyanthi,

here is an example.

Mike

0 Kudos
Message 5 of 7
(3,223 Views)
Hi jeyanthi,

make the type constant a 1D array and you will get a 1D array of data. And btw. make it an array of strings as you want an array of strings! And use a comma as separator Smiley Wink

Here's an example:


Hmm. Mike also starts to work at 9 - seems quite common in GermanySmiley Very Happy

Message Edited by GerdW on 05-14-2008 09:16 AM
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 7
(3,222 Views)
thk u for your guides it really help me. Thk u again:womanhappy:
0 Kudos
Message 7 of 7
(3,217 Views)