Example Code

CompactRIO Control Design and Simulation Tutorial

Overview


This is a comprehensive set of examples that demonstrate the control design process with LabVIEW, CompactRIO and a MicroMo Electronics 3242 precision DC servo motor (http://www.micromo.com).

Currently all of the CompactRIO Control Design and Simulation applications are designed as open and run examples.

After extracting the zip file, to open the examples, navigate to:

CompactRIO Control Design and Simulation Tutorial\cRIO-9103 Chassis (4-slot, 3M gates)\Exercises, then open the project named:

Control Design with CompactRIO.lvproj

See the Word document in the Documentation folder (DC Servo Motor Control Design vXX.doc) for details on the electrical and physical model of a DC motor.

Highlights:

  • RT code for CompactRIO controller (stimulus/response, closed loop control, etc.)
  • Word document detailing the theoretical model for the motor (plan to add documentation for control design process to this)
  • Signal Express applications for control design based on theoretical TF model, and also based on SysID model
  • LabVIEW simulation diagram examples using control design models (stimulus/response, closed loop control)
  • RT code for motor frequency response (obtain Bode plots experimentally)
  • RT code for measuring AC steady state power measurements (RMS voltage, current, power factor, active/reactive power, etc.)

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