LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you modify Write to Spreadsheet File.vi numerical controls to string controls?

I created a constant for the format input and changed it from the default (%.3f) to (%s). I still get an error when trying to connect a string to the vi.
0 Kudos
Message 1 of 6
(3,069 Views)
You might end up changing the VI little bit. Use the "Array to spreadsheet string.vi" to convert 2d array into string data

A Rafiq
Message 2 of 6
(3,069 Views)
You'll need to replace the Numeric Controls inside each of the 2 arrays to Strings Controls.
Simply open the "Write to Spreadsheet file.vi", and on the Front panel, right-click on any Numeric Control inside the 2D Array, select and select . Repeat this for the 1D Array too.
If you then look at the block diagram, you'll see the change from Numerics to Strings. Good Luck, Doug
Message 3 of 6
(3,069 Views)
Although this will work, keep in mind that the "Write to Spreadsheet VI" is in the VI library of LabVIEW, and any other program that you write will contain the modified version of this VI. Therefore, I would *strongly* suggest that you copy the Write to Spreadsheet file VI to another filename, modify it, and then use that file instead. This will prevent a lot of headaches, should you use the original VI in other programs.

Mark
0 Kudos
Message 4 of 6
(3,069 Views)
Mark,
Very correct - I should have added that to my response - thanks. PS - I've always noticed that your comments and answers are right on the mark - good job. Doug
0 Kudos
Message 5 of 6
(3,069 Views)
Thanks much to both of you!
0 Kudos
Message 6 of 6
(3,069 Views)