02-27-2009 12:59 PM
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?
02-27-2009 01:16 PM
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.
02-27-2009 01:17 PM
02-27-2009 01:31 PM
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.
02-27-2009 01:49 PM
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.
02-27-2009 03:57 PM
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.
02-27-2009 04:17 PM
02-27-2009 04:37 PM
02-27-2009 04:58 PM
02-27-2009 05:03 PM
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.