LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I write waveform data to a txt file or an excel sheet?

I want have a table that I can follow up in excel. In first column should be the timestamp (in ms or better in us), in the second column should be the value. I made an effort but it doesn´t work.
0 Kudos
Message 1 of 6
(3,875 Views)
Hi,
you must add rows [time and value]to table.

You must convert TimeStamp to you ms or us - in LabVIEW is not subVI.

Have a nice day
JCC
0 Kudos
Message 2 of 6
(3,864 Views)
or your VI [in LabVIEW 7.0]
0 Kudos
Message 3 of 6
(3,862 Views)
or your VI [in LabVIEW 7.0]
0 Kudos
Message 4 of 6
(3,863 Views)
Thank you for your help. Unfortunately the timestamp isn´t correct. The smallest time unit is seconds on the Block (Get Date/ Time String). Should I change the block?

Result:
08:21:48 0.000000
08:21:48 0.062791
08:21:48 0.125333
0 Kudos
Message 5 of 6
(3,845 Views)
Yes, you must change block (Get Date/Time String.vi).
You must write new subVI - this new VI convert date and time to the second [or ms or us].

First choice is: time column will be count of second [the better ms or best us] since 12:00 a.m., January 1, 1904, Universal time[function "Get Date/Time In Seconds.vi"].
Text file:
3216546154,000 0.000000
3216546154,050 0.062791
3216546154,100 0.125333
... ...

Second choice is: first record in TXT file will be time when test start and after will be table with time [ms or us] and value.
Text file:
Start time: Monday 30-th February 2005.
0,000 0.000000
0,050 0.062791
0,100 0.125333
... ...

Have a nice day.
JCC

P.S.: I recommend you creat header of result table to text file.
Text file:
time [ms] U [V]
3216546154,000 0.000000
3216546154,050 0.062791
3216546154,100 0.125333
... ...
0 Kudos
Message 6 of 6
(3,837 Views)