LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

open vi Reference

Hi All,

 

    I want to run number of different VIs in my application, but i am getting error in Open VI reference to run the VIs,

 

error is below:

Possible reason(s):

LabVIEW:  VI Reference type does not match VI connector pane.

 

What should I do to make that VI reference type as generic.

Please help me ASAP

 

Thanks

Ram

 

0 Kudos
Message 1 of 5
(2,940 Views)

Hi Ram,

 

do you have a type specifier reference wired to the corresponding input of the open VI reference function? Leave the type specifier VI Refnum input unwired to open a generic VI reference.

 

Hope this helps,

Daniel

 

0 Kudos
Message 2 of 5
(2,932 Views)

Hi Daniel, thanks for ur reply.

 

if i removed the VI type reference , then the corresponding VI becomes not-executable.

what should i do for that ?

 

Ram

 

0 Kudos
Message 3 of 5
(2,903 Views)
Did you wire a path to Open VI Reference? This needs a path to the VI if the VI is not in memory.
0 Kudos
Message 4 of 5
(2,886 Views)

I guess you're using the "Call by reference" node then. This is only possible if you open the VI reference with a type specifier.

If you want to do this, then all the VIs that you're going to call dynamically must have exactly the same connector (matching the type specifier connector).

If this is not the case you either have to make all connectors the same or you can't use "Call by reference".

You can still call your VIs dynamically using the methods "Set control value" and "Run VI".

 

Daniel

 

0 Kudos
Message 5 of 5
(2,862 Views)