LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a 2-D array

Solved!
Go to solution

 

2D array.JPG

As in the screenshot above, I have data coming from 2 sources to a "build array" function, through a "convert to dynamic data" function, to a write to measurement file.  I want the data to save as 2 columns, one for X and one for Y.  What happens instead is that it gives me a file with only 1 column and alternating data entries, i.e.  {x1, y1, x2, y2, x3, y3.... etc}

The NI website and the context help make it seem like the build array function should be able to do this if "Concatenate Inputs" is not selected (which it isn't, in fact it's greyed out and I cannot select it if I wanted to)  but I am a little stumped.

0 Kudos
Message 1 of 2
(2,383 Views)
Solution
Accepted by topic author LarsUlrich

If you double click on the "Convert to DDT" .vi (the little thing on the data line immediatly before the write to file .vi, you can change what type of data is going into the "write" .vi. Make sure it's set to 1D Array of Scalars, Multiple Channels.

 

-Ian

Message 2 of 2
(2,379 Views)