LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open VI Reference to a LabVIEW executable.

Solved!
Go to solution
If you could post some code we could give better answers.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
0 Kudos
Message 11 of 15
(2,288 Views)

Here's a simple project that contains the A.exe and B.vi.  

 

1. Compile the A.exe and run it.

2. In B.vi try to "Open VI Reference", which is preceded by "Open Application Reference" to A.exe

 

Can't find a way to do so, I'm missing something here.

 

Michel

 

 

0 Kudos
Message 12 of 15
(2,266 Views)
Solution
Accepted by Michel_Gauvin

Have you seen this document? 

Enabling VI Server Support for an Executable

 

I did not see you wire any values into your Open Application Reference for a port number.  (it defaults to 3363 which may already be occupied by the LabVIEW development environment).   And I did not see in you exectuable's .ini file where you enabled TCP access or defined the port like this document calls out.

Message 13 of 15
(2,251 Views)

Thanks.

 

viservercall.png

0 Kudos
Message 14 of 15
(2,227 Views)
Something to consider is that the code you included in the snippet will work regardless of where the executable is located. With the host name as you have it, you communicate with a executable on your PC. Change the string "localhost" to an IP address and now you are communicating with that executable on another PC across the room, or across the planet...

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

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

For help with grief and grieving.
Message 15 of 15
(2,212 Views)