LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

spreadsheet string to array

Solved!
Go to solution

Can anyone tell me why the 1st element  (zero) is empty??  Why isn't it OFF_1 ???? 

 

0 Kudos
Message 1 of 6
(3,390 Views)

Once again..duh...here is the vi

 

 

0 Kudos
Message 2 of 6
(3,388 Views)
Solution
Accepted by MarkDavid

Because you have the delimiter "L" at the very beginning of your string.  No other characters exist before that, so you get the empty string as your zeroth element.

 

If you didn't have the "L" at the beginning, then "Off_1" would be your zeroth element.

 

 

PS:  You can edit your message within 10 minutes of when you first posted it by going to the options menu to the right.  You don't have to create a new message in order to add the attachment.

Message 3 of 6
(3,382 Views)

So it looks for the characters before ( hence delimiter) the delimiter.   My bad...thanks.  Sometimes I can't see the forest throught the trees.

0 Kudos
Message 4 of 6
(3,378 Views)

Sometimes I can't spell either.

0 Kudos
Message 5 of 6
(3,376 Views)

Yes, the delimiter is for the character that separates elements.  So it is looking for data ahead of that first delimiter, and there is no data there.

 

Then please mark my message #3 as the solution to your question.  You can unmark your message #4 by going to the options menu to the right of the message.

0 Kudos
Message 6 of 6
(3,365 Views)