LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you remove header, time and date from 'export waveforms to spreadsheet file' subvi ?

Solved!
Go to solution

I am using "Export Waveforms To Spreadsheet File.vi" in order to export data collected by labview into a file.

The default format however is as follows:

 

waveform    [0]
t0    11/13/2009  14:54:34
delta t    0.001000

time    Y[0]
11/13/2009  14:54:34    -2.441406E-3
11/13/2009  14:54:34    -2.441406E-3
11/13/2009  14:54:34    0.000000E+0

 

 

Yet I am interested only in the actual data, without header or time and date stamp, e.g.:

 

-2.441406E-3

-2.441406E-3

0.000000E+0

 

Could someone please help me with tailoring this subvi to my needs?

0 Kudos
Message 1 of 11
(5,502 Views)

Then why don't you just use the Write To Spreadsheet File function? Use the Get Waveform Components function to get the Y array.

 

However, if you do not save some of the information (especially dt), the data is not as useful as it could be.

Message 2 of 11
(5,498 Views)

>Then why don't you just use the Write To Spreadsheet File function? Use the Get Waveform Components function to get the Y array.

>

>However, if you do not save some of the information (especially dt), the data is not as useful as it could be.

 

I do not need dt, because I already know what interval between data points is.

Could you elaborate please on this method, especially the Get Waveform Components function? I can't seem to find it.

0 Kudos
Message 3 of 11
(5,484 Views)

Its on the Waveform palette surprisingly enough. You can also use the 'Search' button on the top right of the functions palette.

 

You may know the dt now but if someone were to take the files and do some analysis, they would have no idea. It's also a possibility that you could forget.

Message 4 of 11
(5,474 Views)

We have a function that expresses dt independently, and we're only interested in the raw data.

How do you get the Write To Spreadsheet File function to display the information in columns instead of rows?

0 Kudos
Message 5 of 11
(5,468 Views)
Solution
Accepted by topic author nfraiman
Set transpose to true.
Message 6 of 11
(5,464 Views)

Yes, I discovered that one but it wasn't doing it when I was running the file.

However, I chose to make the setting default and that got transpose to stay in the correct setting.

Thank you dearly, o Knight of NI.  Now excuse me, I shall go chop down the largest tree in the forest with..... a herring !

0 Kudos
Message 7 of 11
(5,459 Views)
Please don't say that you changed the Write to Spreadsheet function instead of wiring a True constant in the main VI. If you did - UNDO that. Modifying the VIs that ship with LabVIEW in such a manner is a very unwise thing to do.
Message 8 of 11
(5,456 Views)

>Please don't say that you changed the Write to Spreadsheet function instead of wiring a True constant in the main VI. If you did - UNDO that. Modifying the >VIs that ship with LabVIEW in such a manner is a very unwise thing to do.

 

Ugh.. I'll change it back if i succeed in wiring a true constant in the main VI, which I have no clue how to do, but I'll give it a shot if you could explain how exactly this is done.

I think it should be noted that despite my traditional programming experience, I am a complete LabVIEW novice.

0 Kudos
Message 9 of 11
(5,453 Views)

Right click on the input and select 'Create Constant'. Click on the constant to change the value (i.e. From False to True).

 

 

Message 10 of 11
(5,445 Views)