The easiest way is to combine them into an array and then pass the array to the "Array to Spreadsheet String" Function. The output of this function you can then write to a text file.
Alternately, you could also use ActiveX to insert the datavalues into a spreadshhet directly. There are good examples that ship with LV showing how to do this.
Mike...
Certified Professional Instructor Certified LabVIEW Architect LabVIEW Champion
The Excel example is in the section demonstrating ActiveX control. Doing a search for "Excel" or "ActiveX" should find it.Under ther File IO palette should be a VI called "Write characters to file.vi"Mike...
Certified Professional Instructor Certified LabVIEW Architect LabVIEW Champion
Hi Mike, I took ur first advice by build an aray of floating numbers, output it to "Array to Spreadsheet string" and save it using "Write charaters to File.vi", but this is what happens in everytime it runs "The data in the Vi's log file is incompatible with the VI's front panel. What kind of error is this?
Mike, I got it working now, but it's a bit wierd. I have 6 elements of array including date and time, but it only out put 4 elements where the "time" and one of the element is in the front panel called "fx" (display in excel)
Mike, I know why it didn't work, it's because I have timestamp after writing array to spreadsheet. Now that I tried to modify it I cannot connect from 'array to spreadsheet' to 'Write to spreadsheet file'. I attached the file below. How can I fix the problem?