george seifert Posted February 22, 2008 Report Share Posted February 22, 2008 What's the proper way to return a value (Boolean in this case) from a VI that was called by reference (with an invoke node)? I suppose using a global is possible, but I've more or less shuned them. George Quote Link to comment
crelf Posted February 22, 2008 Report Share Posted February 22, 2008 QUOTE(george seifert @ Feb 21 2008, 10:04 AM) What's the proper way to return a value (Boolean in this case) from a VI that was called by reference (with an invoke node)? I suppose using a global is possible, but I've more or less shuned them. If it's a strictly-typed call, just wire it out, if it's not strictly-typed, you can get a referece to the FP node (and its' value) by name using a VI reference method. Quote Link to comment
Aristos Queue Posted February 22, 2008 Report Share Posted February 22, 2008 The queues and notifiers are the tools explicitly designed for this sort of communication. You can acquire a named queue in both VIs and have one wait for the other to enqueue the data (similar for notifier). Quote Link to comment
george seifert Posted February 22, 2008 Author Report Share Posted February 22, 2008 Thanks a lot for the suggestions. George Quote Link to comment
Norm Kirchner Posted February 22, 2008 Report Share Posted February 22, 2008 Please look into LVx http://forums.lavag.org/LVx-Exported-LV-Fu...lity-t9437.html This merges both what AQ is talking about and the flexibilty of LVOOP. For your situation, you'll have a chid of the LVx object with the needed return datatype be the data type inside of the object. When you send the command to your client VI to return the value, it will populate the object passed to it with the data and pass it back to the other VI where you can pull it out of the object. There is a example of this in it's demo -Norm Quote Link to comment
george seifert Posted February 22, 2008 Author Report Share Posted February 22, 2008 QUOTE(Norm Kirchner @ Feb 21 2008, 02:00 PM) Please look into LVxhttp://forums.lavag.org/LVx-Exported-LV-Fu...lity-t9437.html This merges both what AQ is talking about and the flexibilty of LVOOP. -Norm I haven't been brave enough to venture into LVOOP yet. I suppose I should one of these days. Quote Link to comment
Norm Kirchner Posted February 22, 2008 Report Share Posted February 22, 2008 Well this will give you the ability to see a very elegant yet simple enough to toy with and implement solution. Quote Link to comment
Tomi Maila Posted March 1, 2008 Report Share Posted March 1, 2008 QUOTE(george seifert @ Feb 21 2008, 05:04 PM) What's the proper way to return a value (Boolean in this case) from a VI that was called by reference (with an invoke node)? I suppose using a global is possible, but I've more or less shuned them. You may want to check out the new http://expressionflow.com/2008/02/29/active-vi-toolkit-public-alpha/' target="_blank">ExpressionFlow Active VI Toolkit... (alert: it's at alpha stage) Quote Link to comment
george seifert Posted March 4, 2008 Author Report Share Posted March 4, 2008 QUOTE(Tomi Maila @ Feb 29 2008, 11:39 AM) You may want to check out the new http://expressionflow.com/2008/02/29/active-vi-toolkit-public-alpha/' target="_blank">ExpressionFlow Active VI Toolkit... (alert: it's at alpha stage) Thanks. It looks very interesting. George 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.