LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW VI controls hardware, but compiled Project does not

We have an Advantech USB-4702-AE multi-function USB module we're controlling with LabVIEW 2019, 32-bit.  This is running on a PC with Windows 10 32-bit.  I've installed the Advantech drivers, and based on some of their examples, created a .VI with a few buttons to toggle some of the DO channels on and off.  Running the .VI works fine.  It connects to the hardware and controls it as expected.

 

When I build the project to a .EXE, it compiles okay, and it starts up and runs, except toggling my binary buttons doesn't control the hardware.  The buttons switch state okay, but there's no indication of activity on the Advantech module.

 

I've attached H1_Discrete_Relays.vi, and DO_StaticDO.vi.  The latter is a slightly modified version of what comes with the Advantech examples.

 

Any suggestions would be appreciated.

 

--

Dave

Download All
0 Kudos
Message 1 of 2
(865 Views)

Hi Dave,

Did you try to follow this article's aspects? Steps for creating an .EXE file are well described there. Try to follow and consider on that. 

 

The problem might be connected with Support files.

I suggest you to check and rebuild your .EXE file again with appropriate Support files

 

I am also attaching a link that describes how to include supporting files.

Including Supporting Files in the Same Directory as the .exe File When Building an Executable? - NI

 

 

____________________________

Best regards Lyudvig Hovsepyan

Message 2 of 2
(783 Views)