Example Code

Creating Dynamic Probe in LabVIEW

Code and Documents

Attachment

Overview

This example uses a custom probe that allows the user to quickly analyze their model.  This probe will allow you to view your transfer function during execution.

Description

For closed loop control and model simulation, it is helpful to see your transfer function as it is executing.  The normal LabVIEW probe shows numerical values on wires but not transfer functions.  This example contains 2 parts: a custom probe and a demo VI using the probe.  To view the probe, open "TF Probe.vi"; open "Dynamic Probe Main VI.vi" to view the implemented probe.

You can create your own custom probes similar to this one.  Please look through the "TF Probe.vi" to understand how to develop your own probes.  While this example has a custom probe for transfer functions, you can develop a custom probe for any application.  Because this example is targeted at Transfer Function Models, you will need the LabVIEW Control Design and Simulation Module to run this code.

Note: This particular custom probe only supports Transfer Function Model


Steps to Execute Code

  1. Download and Extract all Files
  2. Manually place "TF Probe VI.vi" in the C:\Users\...\Documents\LabVIEW Data\Probes folder.
  3. Open "Dynamic Probe Project.lvproj"
  4. Open "Dynamic Probe Main VI.vi"
  5. Add the custom probe to a wire by right-clicking on the wire, then select "Custom Probe > TF Probe.vi"
  6. Run "Dynamic Probe Main VI.vi" and view the block diagram to view the probe.

Requirements

Software

LabVIEW 2009 or later

LabVIEW Control Design and Simulation Module

Additional Images

Untitled.png

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.

Contributors