Example Code

Multiple Boolean Custom Probe using 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

Code and Documents

Attachment

Overview
This example VI demonstrates how to create a custom probe for displaying multiple Boolean values on one probe only.


Description
Custom probes are a very handy little known feature of labview.  You can create a custom probe to handle many very interesting issues when troubleshooting your VI.  Custom probes are essentially VI's that are used solely for debugging. Custom probes can be created by clicking on any wire then going to Custom Probe»New... then either choosing to creat a brand new probe or modify an existing probe. I recommend modifying an existing probe as a probe close to what you are looking will give you a good starting point for creating your own probe.  Another thing of note is the "stop?" boolean which indicates a specific set of conditions that allow you to pause the running program.  After finishing this custom probe you can select it by right clicking on a wire going to Custom Probe»<Probe Name> which if coded correctly should be listed towards the top of this list.


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Multiple Boolean Probe LV2012 NI Verified.vi"
  3. Place it in: "C:\Documents and Settings\Administrator\My Documents\LabVIEW Data\Probes" or similar location

  4. Add a custom probe to your VI

 

Additional Information or References

VI Block Diagram

 

Multiple Boolean Probe LV2012 NI Verified.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Sincerely,
Jason Daming
Applications Engineer
National Instruments
http://www.ni.com/support

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

Comments
Todd S.
NI Employee (retired)
on

Thanks for posting.  Could you please add an image of the code so we have an idea of what it looks like prior to download?

Todd S.
LabVIEW Community Manager
National Instruments