LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Device cannot be found in VI, but can be found in .exe

Hi everyone,

 

I'm trying to use Labview to control Newport Agilis Controller. The device uses a virtual COM-port via USB port. There's a example.vi comes with the driver from the company, which just connect the device, ask for system information and disconnect it. Also, there's a example.exe from the company doing the same job, which is just converted from the example.vi. 

 

I tried this VI but it cannot find the instrument (it returns an empty instrument list for pick). However, when I try the executable version of it, it works properly, see screenshots attached. The device shows up correctly in MAX also, but communication cannot be completed in VISA test panel. see attachment.

 

Does anyone have similar experience? How can I solve this problem. Any suggestion will be appreciated.

 

Jie

0 Kudos
Message 1 of 4
(2,472 Views)

Just to check the obvious, did you follow the instructions visible in your screenshot about what to do if an instrument is connected but not listed?

Message 2 of 4
(2,443 Views)

Hi nathand,

 

Yes, the dll file is linked to the program. I tried to remove this dll file from its location, the program gives a different result--it still returns a blank instrument list, but this time with an error code 1172.

 

 

0 Kudos
Message 3 of 4
(2,437 Views)

A company technician called me and he worked out the problem.

It turns out that I need to open the project first, then open this vi inside the project, otherwise the vi cannot find dll files appropriately.

 

Thank you nathand for replying.

0 Kudos
Message 4 of 4
(2,413 Views)