ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array to Spreadsheet String VI truncating my rows

Solved!
Go to solution

I'm using Labview 8.0.

In my VI I am feeding the "Array to Spreadsheet String" VI an array of strings that are in the following format.

 

7/09/2010 7:43:23.27472 95.284953

7/09/2010 7:43:23.27572 95.284953

7/09/2010 7:43:23.27672 95.284953

7/09/2010 7:43:23.27772 95.284953

       :             :                     :

 

The first entry is the data, then time, then data.

The problem I am having is that when I pass this array of strings through the "Array to Spreadsheet String" VI it cuts off the entries and I get the following:

 

07/

07/

07/

07/

:

 

The format I feed to the VI is <%s> for string. Any help would be great. Thanks!

0 Kudos
Message 1 of 15
(5,953 Views)

Hi Emike,

 

for me this works:

18475i9F8DF441892655E7

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 15
(5,948 Views)

Do you have a screen shot of your code? I took the arry that you gave and I can get it to export with no problems.

Tim
GHSP
0 Kudos
Message 3 of 15
(5,945 Views)

Here is the screenshot. The GUI is in the upper portion of the screen so you can see what the outputs are.18477iE318314CDAD3B4FF Thanks.

0 Kudos
Message 4 of 15
(5,941 Views)

Hi Emike,

 

again no problem:

18481i6B8368E626B52DD3

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 15
(5,933 Views)

18483iDD9BE4E70B5BEA79

Tim
GHSP
0 Kudos
Message 6 of 15
(5,917 Views)

I'm still having an issue. I am thinking it might be in the way I am building my array that I pass to the Write to Spreadsheet VI. Here is a screen shot of the code that builds the array. 

18485i9F76DAE34F53384C

0 Kudos
Message 7 of 15
(5,912 Views)

That function you suggest take a spreadsheet string and converts it to an array. But my data is already in an array form and I need it in a spreadsheet string form. When I tried it, I get terminal source compatibility issues.

0 Kudos
Message 8 of 15
(5,906 Views)

You are building a string not an array. You need to replace the concatinate string with a buil array and get a 2D array not a string for this to work properly.

 

18487iAC66B1AB8EE3A4E2

Tim
GHSP
0 Kudos
Message 9 of 15
(5,904 Views)

It is almost working now. I get both the time and the data, but the problem is that the Array to Spreadsheet String function is only letting through three characters from each column. 

0 Kudos
Message 10 of 15
(5,876 Views)