Example Code

Static and Dynamic HSDIO Generation

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

    Driver

  • Other

Code and Documents

Attachment

Overview
    This example demonstrates how to use the HSDIO API to configure some channels for dynamic generation while simultaneously configuring other channels for static generation.

 

Description

    Use the resource name control to select the module you are going to use before you run the VI.  Use the Static Generation Line button to select whether the line configured for static generation is in a high or low state.  Use the stop button to stop running the VI.

    This VI was written using LabVIEW 2010 and NI-HSDIO 1.6.  The zip file contains the VI as well as the hws file that is used for the dynamic generation.  The hws file was created using the NI Digital Waveform Editor and should reside in the same folder as the VI.


Requirements
    Software
        LabVIEW 2012 (or compatible)
        NI-HSDIO driver which is compatible with your hardware and version of LabVIEW
    Hardware
        no hardware

 

Instructions

1. Use the resource name control to select the module you are going to use before you run the VI.
2. Use the Static Generation Line button to select whether the line configured for static generation is in a high or low state.

3. Use the stop button to stop running the VI.

 

 

Additional Information or References

Static and Dymanic HSDIO Generation Block Diagram.png

 

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

Josh B
Applications Engineer
National Instruments

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