취소
다음에 대한 결과 표시 
다음에 대한 검색 
다음을 의미합니까? 

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 포인트
1/12 메시지
5,164 조회수

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 포인트
2/12 메시지
5,152 조회수
0 포인트
3/12 메시지
5,127 조회수

You still haven't attached your VI.

0 포인트
4/12 메시지
5,124 조회수
0 포인트
5/12 메시지
5,079 조회수

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 포인트
6/12 메시지
5,059 조회수
0 포인트
7/12 메시지
5,056 조회수

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 포인트
8/12 메시지
5,053 조회수

@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 포인트
9/12 메시지
5,050 조회수

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

모두 다운로드
0 포인트
10/12 메시지
5,030 조회수