From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
First of all: I'm new to this group. Please refer me to a website or a faq if my questions are already answered.
I want to write wafeform data (multiple channels) into a text file. My problem is: I want to create a header that contains the channelnames, the units and the stuff that the VI "export waveforms to spreadsheet file" provides (t0, dt, etc.). I tried the VI "read waveform attribute" but failed while trying to format the output (1-d array of variant) so that it fits into a *.txt file. Converting the output with the VI "variant to flattened string" only gives me some "binary stuff".
The "Read Waveform Attributes.vi" probably isn't what you are looking for. There are no predefined attributes in LabVIEW 6.0, although there are future plans to create some, such as channel name and channel unit. Currently, all you do is set properties and then read them back.
I would recommend just using the "Export Waveforms to Spreadsheet File.vi" if you are wanting to write waveform data to a text file. If it isn't quite what you are looking for, you can always modify it but it would be a great starting point. Let me know if you have any specific questions on modifying it.
Thanks.
Matt Kisler Applications Engineer National Instruments http://www.ni.com/ask