Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Example Program
NI Supported: Yes
Publish Date: Aug 29, 2007

Improving Execution Speed in LabVIEW Using Reentrant VI Properties

2 ratings | 5.00 out of 5
Print

Overview

This example shows how reentrant subVIs can affect the execution speed of LabVIEW applications.

Downloads

Filename: re-entrant_vi_properties.zip
Requirements: View

You can significantly improve the execution speed of LabVIEW applications by properly setting the reentrancy of subVIs.  Non-reentrant VIs do not allow parallel exection. Reentrant VIs that share clones between instances allow parallel execution and dynamically allocate VI clones for each instance. However, National Instruments does not recommend these VIs for real-time applications due to the possibility of jitter. Reentrant VIs that preallocate clones for each instance allow true parallel execution and typically result in faster execution times than sharing allocation, but these VIs require greater memory use.

To run this example, unzip the attached re-entrant_vi_properties.zip file. Make sure all VIs are in the same directory and then open the Reentrant VI Properties (Example) VI. To see the benefits of reentrancy for parallel code execution demonstrated in this example, you must run this example VI on a multicore computer.

Refer to the following resources for more information about multicore programming:

 

Requirements


Filename: re-entrant_vi_properties.zip

Software Requirements


Application Software: LabVIEW Base Development System 8.5
Language(s): LabVIEW

 
2 ratings | 5.00 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This example program (this "program") was developed by a National Instruments ("NI") Applications Engineer. Although technical support of this program may be made available by National Instruments, this program may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this program with each new revision of related products and drivers. THIS EXAMPLE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).