Example Code

Write Digital Output of 9512 using SoftMotion and 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 Softmotion
  • LabVIEW

Code and Documents

Attachment

Overview

This example demonstrates how to write a digital output line using NI SoftMotion Module.

 

Description

With this example you can change the value of the digital output using softmotion. The write methode is modified to "write digital line" by right click on the function block.
The digital line 0 represents the DO0.

 

Requirements

 Software

  • LabVIEW Full Development System 2012 (or compatible)
  • LabVIEW Real-Time Module 2012 (or compatible)
  • NI SoftMotion Module 2012 (or compatible)
  • NI-CompactRIO 12.0 (or compatible)

 Hardware

  • NI Real-Time cRIO
  • NI-9512

Steps to Implement or Execute Code

  1. Run the VI.

Additional Information or References

 

Write Digital Output Line Softmotion.vi - Front Panel.png

 

Write Digital Output Line Softmotion.vi - Block Diagram.png 
 

**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**

--Michelle

National Instruments

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