LabVIEW

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

open via reference in executable

Use the VI Name property instead.  Open VI reference will use the string and load the VI in memory, which is the the one used by the static VI reference.

0 Kudos
Message 11 of 16
(867 Views)

 

I tried both Strict Reference and  not strict reference - see attachment. In both cases the vi's are not loaded because the return file path is not accurate.

 

On a separate not, please can I see an example of with VI Name property? Thanks.

0 Kudos
Message 12 of 16
(847 Views)

Again, use Name, not Path.  It will return a string, which Open VI Ref will take, and open the VI in memory, regardless of where it is on disk.

0 Kudos
Message 13 of 16
(840 Views)

Can you please post the entire VI, not just tiny screenshots of it?

 

Also  can you tell us the error number and text that come out of the "Open VI" node when it fails?

0 Kudos
Message 14 of 16
(825 Views)

Can you also tell us what you want to do?  Why are you jumping through these hoops rather than simply calling the sub-VI itself?  Are any of these scenarios correct?

  • The sub-VI resides on another platform, such as a remote LabVIEW RT system.
  • You don't know the name of the VI that you want to run until run-time, and don't want to simply have them all loaded in memory, waiting to go.
  • You want to start a named VI running asynchronously, completely detached from the existing code (but perhaps passing in some Controls as "arguments").

Seeing the existing code (attach the VI, or if it is part of a Project, compress the folder containing the Project files and attach the resulting .ZIP file) would really help.

 

Bob Schor

0 Kudos
Message 15 of 16
(816 Views)

There are multiple ways to approach this however if you are trying to access an executable or VI on a different machine you will need to use a relative file path to access the file. This will allow you to search the other computer's directory for the file, one example of how this can be done is in the code snippet below. You will need to build the file bath, open the reference, perform an action, and then lastly close the reference. 

 

 

0 Kudos
Message 16 of 16
(794 Views)