NI VeriStand Add-Ons Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveforms Generation Custom-Device

NI VeriStand Add-on: Waveforms Generation Custom-Device

Overview

The Waveforms Generation Custom-Device add-on allows users to generate 12 synchronized Waveforms.  This functionality is commonly useful for testing while setting-up NI-VeriStand based configurations and when Waveforms produced (by Hardware) are not necessarily available, yet.

Instructions for Use

Instance the custom-Device "Waveforms Generation" Custom-Device in System-Explorer. On Custom-Device, you can change the "Sampling-Period" of the Waveforms, it's called "dt". You can also change the number of Samples per Waveform. Control for that is called "Number of Samples per Waveform". All Waveforms generated share the same settings above.

Each Waveform has 5 Parameters (NI-VeriStand Channels). They can be changed while running.

1. Signal Type.

0: Sine Wave

1: Triangle Wave

2: Square Wave

3: Sawtooth Wave

2. Signal Frequency

3. Signal Amplitude

4. Signal Phase

5. Signal Offset.

Each Waveform has a dedicated section. Inside, you can find the Waveform itself plus the 05 parameters.

The Custom-Device has 2 Status Channels located in a dedicated section called "Status Channels":

  1. t0. It's initial time when first sample from first Waveform was generated.
  2. NB Samples Generated. How many Samples per Waveform have been generated so far.

Waveforms Generation CD Capture.png

Installing the Waveforms Generation Custom-Device

Build the code.

Add-on Requirements to Run the Waveforms Generation Custom-Device

All attempts have been made to provide an add-on comptible with the NI VeriStand shipping examples.  The nature of some add-ons requires additional software or hardware to function.

The Custom-Device can be executed on Windows or a RT-Target running PharLap.

Software

This device was created for use with NI VerStand 2013.  To use this custom device you must have the following software installed:

  • NI-VeriStand 2013.

Hardware

This add-on requires the following hardware.

  • NONE

Known Issues

  1. <numbered list of known issues>

Version History

2013.4.0

  • Version Creation
  • XML Modification
  • Unit Hz added for Frequency Channel Property of each Waveform
  • Created a Section per Waveform
  • Made all pages not re-nameable and not deletable
  • Added Description for Status Channels
  • Typo Mistakes Corrected

2013.3.0

  • Released. It's the first version.
  • Code is available for download here:

https://github.com/NIVeriStandAdd-Ons/Waveforms-Generation-Custom-Device

Add-on Requirements to Modify the <name of add-on>

  • You need LabVIEW-2013 SP1 to build and/or modify the code.

Support and Contact

This add-on is provided as open-source software.  If it does not meet your exact specification, you are encouraged to modify the source code to meet your needs.  It is not officially supported by National Instruments.

If you encounter a problem with this add-on, or if you have suggestions for a future revision, please post to the forum for this add-on https://decibel.ni.com/content/thread/27721.  You must use this feedback forum for support. Do not call National Instruments for support for this add-on.

National Instruments does not support this code or guarantee its quality in any way. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).

Comments
chintamani17
Member
Member
on

Dear Friends,

 

 

I want to generate a arbitrary waveform using AO from NI PXI 6361 as below

 

arbitrary waveformarbitrary waveform 

 

Can I generate the above waveform using NI PXI 6361 AO ?

 

Also I have to acquire the generated waveform voltage on AI of NI PXI 6341 , can I acquire the waveform on NI PXI 6341.

SteevJobbs
Member
Member
on

@chintamani17 - It looks like the scope of this custom device is not tailored to designing arbitrary waveforms like the one you mentioned, but there is a creative solution I can see. 

You could acomplish the generation of that waveform with a superposition of 2 square waves at different frequencies. For example, a 0-3V square wave at XX% duty cycle and a 0-2V square wave at YY% duty cycle. 

The addition of waves like this could create the pattern you're looking for. 

Contributors