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.
Fig1. Labview Vi where com port are detected.
Fig 2. EXE where com port is not detected.
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:
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.
Fig1. LabVIEW VI
Whereas, when exe is created and executed the array of string is empty.
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.
Fig 1. VI mode.
Whereas in exe mode the find instrument is empty.
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'
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.