LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

CALL BY REFERENCE VI

i tried to use dynmic loading to achieve my goal now.
I found the example in LABVIEW and mimic what they did.
I read the help for CALL BY REFERNCE vi. It's said that I should change the connector pane to be the same as my sub vi called. I right click the node as propmted by help. bUt "ADAPT TO REFERENCE INPUT" is always grey(it happened either i disconnect or connect all the pane terminals). I jsut don't know what is wrong. The illustration of the help is so vague for me. and the strictly typed Vi pane has only three types. how can I make changes to this "call by reference NODE" vi to suite my requirement.
0 Kudos
Message 1 of 11
(4,273 Views)
First, on the VI reference open vi you have to wire a vi reference for a vi with the same connector pane as the one you are wanting to call. To do this right click on the "type specifier VI refnum" input on the open VI reference function, and select create>>control.

Next, go to the front panel and right click on the VI reference control you just created. Select :Select VI Server Class>>Browse...

In the resulting dialog box select any VI that has the same connector pane as the VI you are wanting to call.

The connector pane on the call by reference node connected to the open function should now show a graphical representation of the connector pane of the target VI.

The Adapt to Reference Input selection only becomes an issue if you change the conne
ctor pane of the referenced VI.

Mike...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 2 of 11
(4,273 Views)
Thank you so much
!!!


I have understood why the training program of NI is so expensive. Hiding some important facts and information on how to use certain VI's and making users confused brings them money!!!! ha?
0 Kudos
Message 3 of 11
(4,273 Views)
So Mike, Your saying the grayed out "adapt to connector pane" from Call by Reference BD menu is there to adapt when the strictly type connector is only changed during development and NOT during runtime programmatically. The feature is not grayed once a new static connector pane is used to replace an old connector pane. Correct?
0 Kudos
Message 4 of 11
(3,580 Views)

@fenny wrote:
Thank you so much
!!!


I have understood why the training program of NI is so expensive. Hiding some important facts and information on how to use certain VI's and making users confused brings them money!!!! ha?

Actually, this is all covered in labVIEW's extensive help file.  Here's a link to the online version of what is in your help file.  It tells you exactly how to set up the call.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 5 of 11
(3,570 Views)

Actually this is a 13 years old thread…

😄

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 11
(3,560 Views)
I was reading the help file on this prior to posting, the wording is of no use since it does mention "static" use of the changing connector pane. No hint or implication its used at development not run time. This 13 year old topic is still relevant since I read the more in depth response. Here's a paste from help - ""To force the Call By Reference node to display a different connector pane after you change the reference input, right-click the node and select Adapt To Reference Input from the shortcut menu. """ No mention of if its disabled or grey-out.... Rich J
0 Kudos
Message 7 of 11
(3,551 Views)

@richjoh wrote:
I was reading the help file on this prior to posting, the wording is of no use since it does mention "static" use of the changing connector pane. No hint or implication its used at development not run time. This 13 year old topic is still relevant since I read the more in depth response. Here's a paste from help - ""To force the Call By Reference node to display a different connector pane after you change the reference input, right-click the node and select Adapt To Reference Input from the shortcut menu. """ No mention of if its disabled or grey-out.... Rich J

First you should start a new thread.  I asked my magic 8-Ball what could be causing you such confusion.  It suggested that you are using an unknown version of LabVIEW Smiley Surprised  I suspect you dealing with a version prior to the introduction of the ACBR node.  What version are you using?


"Should be" isn't "Is" -Jay
0 Kudos
Message 8 of 11
(3,546 Views)
Not sure what your talking about regarding a new thread. This thread matches my issue, I saw a grey-out disabled "Adapt To Reference" while creating strictly type LV references and noticed the disabled feature in the context menu. Then thought, oh cool, can I dynamically change connector pane? Well no according to this thread, not the Help menu that I read prior to finding this thread. Currently running Labview 2015. What confusion?
0 Kudos
Message 9 of 11
(3,505 Views)

A link to a prior thread would do to help us understand the background of your question

 

Revisiting a thread that has been idle for over a decade does not help much since, the language has newer features that might change the answer.

 

Posting an example of code you tried would also help.  I guess my confussion is a result of not being able to see the code you are having trouble with!

 

Spoiler
That's not ment to sound "Snipy" just, well, can you understand how many ways you are confussing us?

"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 11
(3,494 Views)