LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot reconnect and use joystick after reconnecting USB cable without restarting LabVIEW

What you are doing should, in principle, work.  The tricky part lies in the "path" name, which is different if called from the Development side as opposed to from the Executable side.

 

There's a way, however, to get the (correct) path at Run Time (Development path if during Development, Run Time path if during Run Time).  You open a Static VI Reference (Application Control palette), browse to the Path of your VI, and click "OK".  If you are using Start Asychronous Call, you'll want to right-click the Static Reference and make sure it says "Strictly Typed" (a red Star will appear on the Icon).  Wire this to a Property Node, choose Path, wire Path to an Open VI Reference, and wire this path to the Start Asynchronous call.  Here's an example:

Detach example.png

Bob Schor

0 Kudos
Message 11 of 12
(392 Views)
Unfortunately that doesn't help, attached example how i do it.
But still a problem in a .exe
 
Tomi22_0-1666079062801.png

 

0 Kudos
Message 12 of 12
(377 Views)