04-12-2023 11:28 PM
In my development vi COM port are visible in the drop down, whereas when exe is created, COM ports are not visible. I have labview 2019 and installed NI VISA 19.5, NI Serial 2019 and NI VISA run time 2019. I have attached the sample project for your reference.
sabah_TASL_0-1681359621830.png
Fig1. Labview Vi where com port are detected.
sabah_TASL_1-1681359702059.png
Fig 2. EXE where com port is not detected.
sabah_TASL_2-1681359806589.png
Fig 3. NI MAX software list
Solved! Go to Solution.
04-13-2023 07:16 AM
Can anyone help regarding this issue.
04-13-2023 09:32 AM
Try something like this:
SelectComPort.png
04-13-2023 10:54 PM
Hi RTSLVU,
Your snippet is LV2023, while I am using LV2019. I have tried to replicate your VI and here are the results.
I tried your VI, in development mode COM ports are detected in array.
sabah_TASL_0-1681444181409.png
Fig1. LabVIEW VI
Whereas, when exe is created and executed the array of string is empty.
sabah_TASL_1-1681444400151.png
Fig 2. In exe mode the array is empty.
04-13-2023 11:03 PM
The problem is in first block itself, In VI I get the list of resources.
sabah_TASL_0-1681444911730.png
Fig 1. VI mode.
Whereas in exe mode the find instrument is empty.
sabah_TASL_1-1681445019422.png
Fig 2. Exe
04-14-2023 12:52 AM
Hi,
I tried with the following expression which was mentioned in the help, and it is working in exe as well, I'm using 2021 64 bit.
"ASRL[0-9]*::?*INSTR'
bharathp10_0-1681451387712.png
04-14-2023 01:11 AM
Silly question,
Is the Exe used on the same computer as the development VI?
04-14-2023 01:28 AM
Yes, exe and development vi is in same pc.
04-14-2023 01:36 AM
This is nearly unexplainable. What if you uncheck "Allow future versions of the LabVIEW Runtime etc..." in the program build specifications? (Just a shot in the dark).
04-14-2023 02:32 AM
I have unchecked " Allow future version..." but still facing same issue in exe.
sabah_TASL_1-1681457383634.png
sabah_TASL_2-1681457538709.png