Example Code

Waveform to spreadsheet string

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview: This VI will take a waveform in and convert into a string that keeps the time format.


Description:

I found myself wanting to save my waveform data to a file without having to use an express VI.  This VI is purely meant to be used as a subVI (although it does have a kicking front panel). It will take a waveform in and convert into a string that keeps the time format.  Currently, it will format it with the full time and two decimal points after the second.


Requirements: LabVIEW 2012 (or compatible), Hardware: none.


Steps to Implement or Execute Code:

1. Using as a subVI, wire a waveform in.
2. Get a spreadsheet string out.


Additional Information or References:  

 

Waveform to spreadsheet string FP def.png

 

Waveform to spreadsheet string sn.png

 

Edit: *6/25/2010* Added a second VI that will accept an array of waveforms to create a spreadsheet string.  Please let me know if I'm doing anything that is not the most efficient.


**This document has been updated to meet the current required format for the NI Code Exchange.**  

ColeR
Field Engineer

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
KrisnaWisnu
Member
Member
on

this is indeed, helpful, save my time thx!

Certified LabVIEW Developer (CLD)
Certified TestStand Developer (CTD)
Using LabVIEW 8.5.1 (2008) to LabVIEW 2024
ColeTrain
NI Employee (retired)
on

It was recently brought up to me that the array one didn't work.  Guess I should do a little more testing next time. New version is good to go.

ColeR
Field Engineer