From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Wait Function with Error Wires for 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 VI exemplifies a way to use the Wait(ms) timing function with error wires.

 

Description

This VI uses the Wait(ms) function un a subVI using a case structure with error and no error case to incorporate it easily into the data flow.It can also be added to your palettes and used just like a typical Wait (ms) function.

 

Requirements

LabVIEW Base Development System.

 

Steps to Implement or Execute Code

1. Load the Wait(ms) with Error Wires LV 2012 - NI Verified.vi as subVI.
2. Set the time to wait in milliseconds
3. Run the VI

 

Additional Information or References

 Snippet.png

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

Will
CLA, CLED, CTD, CPI
LabVIEW Champion
Choose Movement Consulting
choose-mc.com

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

Comments
TheKackler
Member
Member
on

Great .vi

I recommend reducing the size of the icon to 1 square high. Wire in the actual delay in the center. The size of the icon will cause you to bend the wires around the vi's you are inserting the delay.