3.17 Waveform Envelope

This example shows you how to access waveform data (.wdt file) and to find an upper envelope with an Analysis Template.

Note: If you want to try this example in Windows 10, please run Labview as administrator at the first time. You should:
  1. Right-click on the Labview program icon and select Run As Administrator in the context menu.
  2. Click Open Existing to open the Waveform Envelope.vi
  3. Click Convert button in the pop-up message box after clicking run button Waveform Envelope Run Button.png.

It is to demonstrate the following:

  1. Connect to Origin with OA_ConnectToOrigin.vi which maps to the ApplicationSI method in Origin.
  2. Load an Origin Analysis Template (an OGW file) under Origin program folder.
  3. Specify a path to load wave1.wdt, which is under <Origin Program Folder>\Samples\COM Server and Client\.
  4. Send the data to a sheet named "WaveformEnvelope" in the Analysis Template.
  5. Trigger Recalculate in Origin. The Analysis Template will automatically update the "WaveformEnvelope" sheet.
  6. Send the found upper envelope and the original data from Origin to LabVIEW, and then plot them.

This example is composed of two parts.

  • The figure below is to read data from an ASCII file and send the data to the Origin worksheet
  • The figure below is to perform the envelope finding in Origin, and then plot the envelope and original data in LabView.