07-09-2017 10:08 AM
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.
07-09-2017 10:40 AM
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.
07-09-2017 12:20 PM
07-09-2017 12:26 PM
You still haven't attached your VI.
07-09-2017 11:46 PM
07-10-2017 07:59 AM
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.
07-10-2017 08:03 AM
07-10-2017 08:06 AM
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.
07-10-2017 08:14 AM
@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.
07-11-2017 12:28 AM
second input comes in first column ; i need to move to 2nd column.