Example Code

Pole Placement for MIMO System in 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 Control Design and Simulation Module
  • LabVIEW
  • LabVIEW Control Design and Simulation Module

Code and Documents

Attachment

Description

 1. Overview

This example creates, analyzes and modifies a State-Space MIMO model using the Control Design and Simulation Module in LabVIEW.

 

2. Description

In control engineering, a state-space representation is a mathematical model of a physical system as a set of input, output and state variables related by first-order differential equations. "State space" refers to the Euclidean space in which the variables on the axes are the state variables. The state of the system can be represented as a vector within that space.
The CD Pole Placement VI Determines the Gain that places the closed-loop poles at desired locations in a system with full state feedback. You can use this VI with multiple-input multiple-output (MIMO) systems.

 

3. Requirements

  • NI LabVIEW Professional Development System 2012 or compatible.
  • NI Control Design and Simulation Module 2012 or compatible.

 

4. Steps to Implement or Execute Code

  1. Download and open the example VI.
  2. Write the Desired Pole Locations for the model. You can find the model's information in the block diagram.
  3. Run the VI.

 

5. Additional Information or References

  • NI Control Design and Simulation Module
  • Introduction to LabVIEW Control Design Toolkit 1.0 by Finn Haugen: http://www.techteach.no/publications/labview_control_design/
  • The CD Construct State-Space Model function has an input parameter called Sampling Time. When creating continuous-time models this input must be either unwired or wired with value zero. If a non-zero sampling time is connected, a discrete-time state-space model will be created (with the system matrices as defined by the 2-dimensional arrays A, B, C, and D).

MIMO Pole Placement Screenshot.PNG

 

 

**The code for this example has been edited to meet the new Community Example Style Guidelines.**

Andy Chang
National Instruments
LabVIEW Control Design and Simulation

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