Example Code

myRIO 3 channel PWM with delay fuction

Code and Documents

Attachment

Overview

Simple RT/FPGA  VI that creates 3 PWM channels with a delay.

 

Description

Delay is hard to implement with the default myRIO personality, this code has a custom FPGA VI that creates 3 PWM channels. A delay function is also implemented. 

 

Hardware and Software Requirements

  • LabVIEW 2017
  • myRIO toolkit
  • myRIO-1900 

Steps to Implement or Execute Code

  1. Connect myRIO over USB
  2. Confirm connection in NI MAX
  3. Open the PWM FPGA project
  4. Open RT main
  5. Set parameters
  6. Run the VI 

 

Additional Information or References

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

Contributors