LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

i want to convert string to 1-D array to input it to waveform graph?

thanks in advance

0 Kudos
Message 1 of 18
(3,261 Views)

Hi oiuuhjoi,

 

ok, and where's the problem?

 

Spoiler
Ever tried SpreadsheetStringToArray?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 18
(3,259 Views)

hi GerdW
what block should i use?

0 Kudos
Message 3 of 18
(3,255 Views)

Hi,

 

it's not a 'block' - it's called function... And did you read that spoiler?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 18
(3,252 Views)

hi
i  connect my output string to spreedsheet string input(not format string input) and out to waveform graph
but thats error occure:-
"One or more required inputs to this function are not wired or are wired incorrectly. Show the Context Help window to see  what the connections to this function should be."
what shall i do?

0 Kudos
Message 5 of 18
(3,250 Views)

Hi,

 

just do what the error says: Open the context help and read it...

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 18
(3,248 Views)

how can i make the output 1-D array????

the spreadsheet string array onla accepts 2D array.

0 Kudos
Message 7 of 18
(3,241 Views)

You can use Index Array to get the 1 row or 1 column out of the 2-D array that makes up your 1-D array of data.

0 Kudos
Message 8 of 18
(3,235 Views)

Or you can create a 1D array with that function! It also accepts 1D arrays...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 18
(3,233 Views)

 


@oiuuhjoi wrote:

 

the spreadsheet string array onla accepts 2D array.


No it really doesn't. You need to follow Gerd's (very patient) advise and read the help file for the function. 

 

To make the function accept a 1-D array you have to wire a 1-D string array constant to "Array Type". 

 

-CC

 

p.s. You'll also need to specify the format you want the string to be converted to.

----------------------------------------------------------------------------------------------------------------------------
"If anyone needs me, I'll be in the Angry Dome!"


0 Kudos
Message 10 of 18
(3,231 Views)