From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Convert a number array to a 2D string

I'm pulling my hair out here. here's a screen shot of what I have so far:


Now, what this wants to see is :




What I need to do is take the array of double[64-bit real(~15 digit preceision)) and convert that to a 2D string. The item being covered up in the error box is a ~reshape array~ tool. I tried this on another VI and it worked like a charm.


Any thoughts as to where I'm going wrong?

0 Kudos
Message 1 of 13

In your top shot, you are taking a 1-D array of strings and appending a new string to the end of it with the Build Array.  Thus a growing 1-D string array.  Your Output array must be setup as a 2-D string array.  Of course the transpose array is looking for a 2-D array.


In the bottom shot, you are taking a string coming out of the format into string function and trying to repshape the array, which won't work because you just have a string, not an array.


Perhaps you should look at using the Spreadsheet string into Array function.


It's hard to tell what is the right combination of functions to use because we can't see what you are trying to do with this 2-D array of strings in the end.

0 Kudos
Message 2 of 13
Please don't link to pictures that are stored remotely. Many of us (including me) work at locations where sites like these are blocked by corporate filters. Just use the attachment option below the message body.
Message 3 of 13

ok.. In my first attachment, I want to take my sensitivity cluster and unpack it.


My second attachment, I'm unbundled by name. Each of these are double 64bit real ~15 digit precision numbers.


The Part of the VI to the right will output these vaules to a spreadsheet.


What I need to do is put the unbundled valures into a 2d string array and run that input to the begining of the spreadsheet functions.


Hope this helps. I can't put the entire thing up, it's proprietary information. I'm in deep if I get caght. REALLY stumped here why I can't get this to play nice.

Download All
0 Kudos
Message 4 of 13

Are the elements of the cluster scalars or 1D arrays? If each is a scalar, then use a build array on all of them and wire that to the 1D array inputs of Write to Spreadsheet. If each element is a 1D array, use the Build Array on all of them and you will get a 2D array out.

0 Kudos
Message 5 of 13


If you look at my first post, I did just that: I built into a string. I tried converting this into a 2d string, but LV was still angry.

0 Kudos
Message 6 of 13
In your first post, up top you took a string and built it into a 1-D string array.  That is not the same as a 2-D string array.  Down bottom, you took a string and tried to reshape it into a 2-D array.  That is an impossible operation.
0 Kudos
Message 7 of 13
I know it is.That is why I am asking for help. I know this does not work. How do I get iy to work?
0 Kudos
Message 8 of 13
Could you answer my questions? Obviously, I cannot see your images in the first post. Why do you have to create a 2D string array? Write to Spreadsheet doesn't require this. If your data is scalars. It doesn't make any sense to create a 2D array anyway and I already told you how to convert severail 1D arrays into a 2D array.
0 Kudos
Message 9 of 13

This needs to be in a 2d array becasue that is the way the sub-VI is written. The sub-VI is one that writes data to a spreadsheet (with bells and whistles). My company uses template VI's so everything is consistent. This is one of those templates and the data this one wants to see is a 2D string.


Thanks for all the help everyone. I'm new at this.

0 Kudos
Message 10 of 13