Example Code

Calling a Reentrant VI Through VI Server

Code and Documents

Attachment

Download All

Introduction

Often times you will want to call the same front panel, but pass it different parameters so that it displays different information.  VI Server makes the most sense to use so that you can call the same VI, but if you do not configure everything properly, it will not work as expected.

Description

To do this you need to save your "daughter" VI as reentrant in the VI properties

vi properties.png

You then need to set the Options input on the Open VI Reference subVI to 8, which allows for reentrant execution.  This VI is the "mother" VI code that will call multiple instances of a "daughter" VI specified by the VI Path.

CodeSnippet.png.

ColeR
Field Engineer

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

Contributors