LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Insert into array

Hi,
i'm still having problem wiring the output of transpose array to build array so i'm doing it wrong again?
 
Thanks!
0 Kudos
Message 11 of 19
(2,302 Views)

You are trying to built an single element to a 2D array. When you use "built array", the inputs can only differ by up to 1 dimension.

 Instead of showing us pictures of code that does not work right, why don't you tell us exactly how the file should be structured. Maybe attach a sample output file. 🙂

0 Kudos
Message 12 of 19
(2,282 Views)
Replace the concatenate string with a build array function and loose the tabs and carriage return/line feeds.

You almost had what I posted.


Message Edited by andre.buurman@carya on 11-07-2007 09:45 AM
Regards,
André (CLA, CLED)
0 Kudos
Message 13 of 19
(2,276 Views)

I have the broken wire from the output of build array to write to text file. It mentions that the dimension of unnamed is 2 and ...is 1.

How do i rectify that?

Thanks!

0 Kudos
Message 14 of 19
(2,269 Views)
Hi microes,

The Write to Text File VI only accepts a string or a 1D array of strings, not a 2D array.  If you would like to write a 2D string to a text file, then I would suggest using the Write to Spreadsheet File VI instead.  You can then wire the 2D array of strings into the 2D data input of the Write to Spreadsheet VI.

If this does not work, please attach a simple snippet of code that demonstrates what you are trying to do.

Thanks!

Regards,
Erik J.
Applications Engineer
National Instruments
0 Kudos
Message 15 of 19
(2,255 Views)
Hello,
 
i'm still having errors despite losing the tabs and line feeds and write to spreadsheet too. It doesn't recognise giving me broken wires.
I also notice i didn't wire any lines to get the running data (values) too, should i wire one to the build array?
 
thank you
0 Kudos
Message 16 of 19
(2,232 Views)
You are still using "concatenate string" instead of "built array". They are different!!!
 
RIght-click on your "concatenate string" and replace it with a "built array", see image. 🙂
 
 


Message Edited by altenbach on 11-09-2007 07:24 PM
0 Kudos
Message 17 of 19
(2,224 Views)
Hi there,
oh so sorry, i'm too confused. By the way i'm using Labview 8. I couldn't wire the output to the 2D data of Write to Spreadsheet though...
 
Thanks and best regards
0 Kudos
Message 18 of 19
(2,219 Views)
LabVIEW 8.0 does not support writing arrays of strings. That feature came in 8.2.
 
Just convert your array to a spreadsheet string (using array to spreadsheet string with %s as format) and write the plain string to the file. Same difference.
0 Kudos
Message 19 of 19
(2,215 Views)