LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
TrevorChristman

Make the 'To More Specific' node able to convert a VI reference into a Strict VI reference

Status: New

If you want to use the 'Call By Reference' node to call a VI, you have to provide it a strict VI reference.  Today, the only way to get a strict VI reference is to request one with the 'Open VI Reference' function:

 

ToMoreSpecificType For Strict VI References.jpg

 

But it is common to get a VI reference in some other way, like it being passed in through a control or obtained from other VI Server methods/properties.  We should be able to use the 'To More Specific' node to convert a plain VI Reference into a Strict VI Reference, like this:

 

ToMoreSpecificType For Strict VI References #2.jpg

 

If the reference does not have a matching connector pane, if the VI cannot be reserved for run, or if any of the other things that can go wrong with creating a strict reference happen, the To More Specific function would return an error on the existing error terminal.

 

 

2 Comments
AristosQueue (NI)
NI Employee (retired)

There are issues with this idea -- a strict reference has different rules for usage than a non-strict, and the VI is actually reserved when you open a strict reference. But there's a lot of interest building in making Open VI Reference take an existing VI refnum. That may well happen in 2011, which would solve this use case, only by using the Open VI Ref primitive instead of the To More Specific primitive.

TrevorChristman
NI Employee (retired)

I just want to spin a non-strict reference into a strict reference, and I'm not too attached to which function gets used to do so.  To More Specific seemed handy at the time, but I'd be satisfied with a more versitile Open VI Reference instead.