LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Log test data into single file (CSV format)

i need to log data from 2 sources i.e temperature and voltage into 2 columns separately in csv file format. sources is manually defined i.e numeric control. 

sample of file being attached. 

 

I tried to log data using build array concept but data comes in same column. Kindly suggest how to distinguish inputs while writing into file. 

0 Kudos
Message 1 of 12
(5,030 Views)

You've shown us an Excel file with no actual data.

 

You haven't shown us the VI you have written that isn't doing what you want.

 

Please attach your VI, otherwise we can't determine what you are doing wrong.

0 Kudos
Message 2 of 12
(5,018 Views)
0 Kudos
Message 3 of 12
(4,993 Views)

You still haven't attached your VI.

0 Kudos
Message 4 of 12
(4,990 Views)
0 Kudos
Message 5 of 12
(4,945 Views)

That's a jpeg screenshot, not a VI.  But fortunately it shows what the problem is.

 

Why did you pick a carriage return/line feed as the delimiter for the Write to Spreadsheet File?  That creates a line break between every element.  You should be using either the default tab character, or a comma.

 

There is no reason to have a 1 iteration For Loop.  Just create a 1-D array of your two elements, and wire that into the 1-D array input of the Write to File funcion.

0 Kudos
Message 6 of 12
(4,925 Views)
0 Kudos
Message 7 of 12
(4,922 Views)

i need to input data manually, how can i put data into 1 D array and wire them to write function. and i need data in two column. 

0 Kudos
Message 8 of 12
(4,919 Views)

@abinash_bam wrote:

i need to input data manually, how can i put data into 1 D array and wire them to write function. and i need data in two column. 



By following the directions I gave.

 

See attached modification.

 

Note: I had to change the browse settings for the path control so that it would be new or existing files and not just existing files.

0 Kudos
Message 9 of 12
(4,916 Views)

second input comes in first column ; i need to move to 2nd column. 

Download All
0 Kudos
Message 10 of 12
(4,896 Views)