Example Code

Graphically Create Arbitrary Waveform Using LabVIEW

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 example shows you how to graphically draw an arbitrary waveform.

 
Description

If for any reason you need to graphically draw an arbitrary waveform that can write to AO and is modifiable during run-time there is this solution. Note that the example is not perfect but allows a user to draw a waveform which can be output to hardware, for instance with DAQmx.


Requirements

  • LabVIEW 2012 (or compatible)

 

Steps to Implement or Execute Code

  1. Download vi
  2. Set the time interval dt and number of samples
  3. Run the code

 

Additional Information or References

Define the number of samples the waveform will contain and the dt of the waveform before drawing the waveform.
VI Snippet

352.png

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

Ben J.
National Instruments
Applications Engineer

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

Comments
Tamhleten
Member
Member
on

Could I ask you to attach a version for LV 2009?

Thank you in advance.

TroyK
Active Participant
Active Participant
on

There is also this example here.

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument