Example Code

niDCPower Two Channel Measure Record with Triggers

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.

    Hardware

  • Modular Instrumentation

    Software

  • LabVIEW

    Driver

  • Other

Code and Documents

Attachment

 

Overview
This example demonstrates how to configure two channels on a PXIe-4154 to output a signal. A measure record length is defined for each channel based on a trigger or signal source.


Description
This VI is an example that is configured for a PXIe-4154 Battery Simulator using the NI DC-Power 1.5 driver or later. The VI configures 2 channels to output a configurable voltage with a current limit. A measure record is defined for each channel and can begin based on a trigger or immediately after the Source Complete signal is received. The size of that record can be defined by the user. The voltage and current data from each channel is displayed on a corresponding voltage or current plot.

 
Requirements

  1. LabVIEW 2012 (or compatible)
  2. NI DCPower


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "niDCPower Two Channel Measure Record with Triggers 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References
VI Snippet

 1111.png

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

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