John Lum wrote:
> Sergio Perillo wrote:
>
> > Hi folks! I am trying to write signals coming from a DAQ-Card into a file
> > and I would like perform
> > different measurements from the same signal and save it to the same file
> > but in different columns,
> > preserving the previous data. So far I managed only to append the new data
> > to the end of the column.
>
> A little bit of experimentation with the Build Array node (and possibly
> Transpose Array) might help solve this one. In order to get multiple columns
> or multiple rows in your resulting tab-delimited text file, you will
> definitely need to use the 2D array input of the Write to Spreadsheet File VI.
>
> Given that, the trick is to make sure you actually create the desired 2D array
> to input
to the VI. If you've got a 1D array of data, and you do some
> measurements to create a resulting 1D array, the right thing to do is use the
> Build Array node with the two 1D arrays as inputs to create (by default) a 2D
> array. You would then transpose that array before feeding it into Write to
> Spreadsheet File, assuming that you want your data in columns instead of rows.
>
> Hope it helps,
> John Lum
> National Instruments
Yeah, that's fine if you have all the data, but I think Sergio is trying to
append data periodically to an existing file. I'm pretty sure there's no way to
write to a file and append columns (there have been times when I would have liked
to do it myself, so I have thought about it).
But there should be a way to do it with ActiveX, no?
Rod
--
Roderic Don
Research Associate II
University of Delaware
Center for Composite Materials
302-831-8701
302-831-8525 (FAX)