LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of strings

Solved!
Go to solution

This should be an easy question. I am trying to use the "Write to Spreadsheet" VI from Labview 8.0 but I need to modify it to accept arrays of strings rather than arrays of doubles. 8.2 does this automatically, but I am stuck using 8.0. The instructions in the block diagram of the original VI says:

 

"You can modify a copy of this VI to accept arrays of strings by changing 2D data and 1D data arrays to arrays of strings and setting the format to %s."

 

I am having a problem changing the data arrays to arrays of strings. I have looked in "properties" for an option and also looked in the "representation".

 

How do I change the control numeric array to that of strings? Thanks!

 

0 Kudos
Message 1 of 6
(3,327 Views)
Solution
Accepted by topic author mechEmike

Right click on the numeric and select 'Replace'. Just browse to the string control on the palette.

0 Kudos
Message 2 of 6
(3,326 Views)

I tried that and there is an issue with the "Array Size" function used downstream. I am posting the VI.

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

You have not done any modifications to that. You need to do the three steps that are listed - replace the 2D, 1D, and format string.

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

I tried the replacement you suggested but ran into the problem with the array size. I posted the original so that you could try what you suggested. I'll try it again and reply again with the modified VI. 

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

Nevermind. I got it. Thanks!

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