キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ11/19
2,466件の閲覧回数

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 件の賞賛
メッセージ12/19
2,446件の閲覧回数
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 件の賞賛
メッセージ13/19
2,440件の閲覧回数

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 件の賞賛
メッセージ14/19
2,433件の閲覧回数
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 件の賞賛
メッセージ15/19
2,419件の閲覧回数
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 件の賞賛
メッセージ16/19
2,396件の閲覧回数
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 件の賞賛
メッセージ17/19
2,388件の閲覧回数
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 件の賞賛
メッセージ18/19
2,383件の閲覧回数
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 件の賞賛
メッセージ19/19
2,379件の閲覧回数