Jump to content

Returning a value from a VI that was called by reference


Recommended Posts

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.

Link to comment

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

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.