Example Code

Iterate Transfer Function of a Mass-Spring-Damper model 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

Code and Documents

Attachment

Description

 

1. Overview

This example shows how you can iterate the transfer function of a mass-spring-damper system.

 

2. Description

With the NI LabVIEW Control Design and Simulation Module, you can analyze open-loop model behavior, design
closed-loop controllers, simulate online and offline systems, and conduct physical implementations.
Create models from first principles using transfer function, state-space, or zero-pole-gain representation. With
time and frequency analysis tools, such as time step response or Bode plot, you can interactively analyze open- and
closed-loop behavior. Use built-in tools for both multiple input, multiple output (MIMO) and single input, single
output (SISO) systems and take advantage of simulation capabilities to verify linear and nonlinear system dynamics.
You can also use built-in tools to convert your models developed in The MathWorks, Inc. Simulink® software to work
with LabVIEW.
In addition, you can expand LabVIEW Control Design and Simulation usability with other NI software tools. For
example, you can use the LabVIEW MathScript RT Module to implement .m syntax-based simulation.

 

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. Run the VI.
  3. Explore the Results and how the model is built and executed in the block diagram.

 

5. Additional Information or References

Iterate Transfer Function 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.