infinitbelt Posted July 31, 2009 Report Share Posted July 31, 2009 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! Quote Link to comment
jcarmody Posted July 31, 2009 Report Share Posted July 31, 2009 (edited) 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 July 31, 2009 by jcarmody Quote Link to comment
PaulL Posted July 31, 2009 Report Share Posted July 31, 2009 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.) Quote Link to comment
infinitbelt Posted August 2, 2009 Author Report Share Posted August 2, 2009 Thanks for the help! I will give the notifier a shot. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.