Jump to content

Passing value from one VI to another


Recommended Posts

Hi,

I want to pass an integer value from one VI to another VI. What is the best way to go about doing that? Do I want to use Open VI reference? If so, how would I do that?

Thanks!

The best way to do it is with a wire from one to the other. If you want to pass one value while both are running in parallel I'd use a Notifier. If one of them is producing data and the other is consuming/processing data at a slower rate, I'd use a Queue. You could use a Functional Global Variable and some folks might use a by-reference Class.

Jim

Edited by jcarmody
Link to comment

Or a shared variable. Make it a network shared variable and now you can run your VIs on separate computers.

(Of course if your VIs aren't running in parallel and one is subVI of the other just use wires and connectors! Likely you are considering a more complex case.)

Link to comment

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.