Jump to content

Functional Global Variable in VI template


Recommended Posts

Hi all.

In the development of my application, I include a vi template for certain visualization window, so I can open unlimited number of instances of that window.

Now, I would like to use a Functional Global Variable inside this window, but not share it through all of them.

Now, from my tests, I found no way (execution options) to do this.

Any suggestions?

Daniel R

Link to post
Share on other sites

Make the functional global itself be a template VI. Then drop the *template* on the block diagram of your other template. The subVI node will be decorated with a large black capital T, indicating that when the top level template is instantiated, this subVI will also be independently instantiated. Now you'll have a separate functional global instance for each of your top level template instances.

Link to post
Share on other sites

Perfect. Thank you for your fast answer.

See you,

Daniel R.

QUOTE(Aristos Queue @ Jan 22 2008, 02:41 PM)

Make the functional global itself be a template VI. Then drop the *template* on the block diagram of your other template. The subVI node will be decorated with a large black capital T, indicating that when the top level template is instantiated, this subVI will also be independently instantiated. Now you'll have a separate functional global instance for each of your top level template instances.
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.