Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Exe File made from VBAI doesn't access Serial Port

Here is a query:

 

1- Script generated in VBAI 2009 (Serial port access works)

 

2- Code exported from VBAI 2009 to LV 2009 (Serial port access works in the Main VI)

 

3- Exe file made with LV2009 application builder (Serial port access does NOT work)

 

All this is happening on the same PC. Any comments / suggestions / help shall be highly appreciated.

0 Kudos
Message 1 of 2
(3,212 Views)

I just tried this and didn't have any problems using the exe. I would recommend making sure no other application is using the serial port because the serial step will fail to initialize if the serial port is already in use. So close LV and VBAI and make sure nothing else could be using the serial port before running the exe you built.

 

If there are still problems, you could put a Simple Error Handler.vi in the Setup of the Serial step to see why it's failing.

 

Hope this helps,

Brad

0 Kudos
Message 2 of 2
(3,195 Views)