LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

COM port not detected in exe

Solved!
Go to solution

For this expression "ASRL[0-9]*::?*INSTR" also the list is empty in exe.

0 Kudos
Message 11 of 20
(999 Views)

Just drop a VISA resource on the front panel and use its properties instead.

Yamaeda_0-1681461378489.png

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 12 of 20
(994 Views)

I had used the visa resource name, it has com ports in drop down in development vi, but in exe the drop down is empty.

sabah_TASL_0-1681463001260.png

 

Fig1. Development VI

sabah_TASL_1-1681462720692.png

Fig 2. Filtering property

sabah_TASL_2-1681462851296.png

Fig 3. EXE (No com ports in drop down)

 

0 Kudos
Message 13 of 20
(987 Views)

Could it be that you are using the Exe on a virtual machine and the Development vi on your standard session ?

 

Strange that you cannot see a port in Exe when working on development, moreover COM 1 is (most of time) a RS232 port so it is always there.

0 Kudos
Message 14 of 20
(979 Views)

Both exe and vi are in the same computer 

0 Kudos
Message 15 of 20
(968 Views)

What if you run the exe as administrator? 

 

Have you tried to change the search mode for VISA Find ?

 

0 Kudos
Message 16 of 20
(942 Views)
Solution
Accepted by topic author sabah_TASL

The issue is resolved after the antivirus firewall security was disabled, now the exe is able to find the com port. Thanks all for helping me out.

Message 17 of 20
(936 Views)

@sabah_TASL wrote:

The issue is resolved after the antivirus firewall security was disabled, now the exe is able to find the com port. Thanks all for helping me out.


And thanks for coming back and telling us what the solution was.  Undoubtedly someone will find this very useful one day.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 18 of 20
(932 Views)

It was my belief that COM ports (Serial) are exemption when it comes to antivirus restrictions, good to know one more troubleshooting technique.
But still how did it was allowing when run from development system? (Application was allowed in exemption list !!!?)

bp
0 Kudos
Message 19 of 20
(916 Views)

I think the enterprise antivirus system is more cautious whenever a exe is run. 

0 Kudos
Message 20 of 20
(910 Views)