LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple channels saving as text filels

Hi,
I have two data vectors and   I want to save them as text files . When I use sub VI given in labview or writing text files I can save either 1D or 2D. When I save then as 2D the text file output is the appendage of two file i.e. one data vector is written first and the other when first ends. It looks like a single file and size is equal to size of first data vector plus 2nd data vector.
I want to save these two data vectors either as two rows or two columns. Since I want to use matlab to read them eventually.
Can anyone help me here? I'll be thankful.
AM

0 Kudos
Message 1 of 4
(2,871 Views)
DSPGUY1,

It is not entirely clear to me what you are trying to do.  There are several ways to attack this, you could combine the two arrays and create a single 2-D array, then use the Write to Spreadsheet File VI with the 2-D option.  Alternatively you could write the file yourself using lower level String and File VIs.
Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
0 Kudos
Message 2 of 4
(2,856 Views)
Hi Doug,
Let me make it simple. I want to save two data vectors  in a text file as two rows or two columns. Whereas, the available write to spreadsheet vi  concatenates two data vectors if I use 2D option.
I hope it is clear.
Thanks
AM
0 Kudos
Message 3 of 4
(2,848 Views)
Is this what you are trying to do?


Doug M
Applications Engineer
National Instruments
For those unfamiliar with NBC's The Office, my icon is NOT a picture of me 🙂
Message 4 of 4
(2,831 Views)