10-27-2020 06:12 PM
A hardware vendor supplied us with a UI application built in LabVIEW 2017. It worked fine until we installed LabVIEW 2020 development system on our PCs, after which the app hangs up mid-way on startup. We confirmed that cause of the problem is the the update to LV 2020. We would like to be able to run the app alongside our own LV 2020 code.
I tried installing the specific runtime 2017 version beside LV 2020 development system, but that did not fix the problem. The app in question was built with the option to allow it to run with future versions of runtime engine.
Is there a way to force the app to run with the particular version of the runtime engine, e.g. 2017 in this case?
10-27-2020 06:31 PM - edited 10-27-2020 06:32 PM
The problem is that the LV 2020 runtime will make all your executables try to use it. I think this "feature" where everything tries to run with the latest runtime was introduced in LV 2017, so you will still have a shot at fixing this. You will have to rebuild your executable with "Allow future versions of the LabVIEW runtime to run this application" unchecked.
10-27-2020 06:35 PM
billko,
Unfortunately, it is not our executable. The executable was provided by the vendor.
10-27-2020 08:19 PM - edited 10-27-2020 08:32 PM
@billko wrote:
You will have to rebuild your executable with "Allow future versions of the LabVIEW runtime to run this application" unchecked.
By default it is unchecked. Not clear why the vendor would enable this. Are you absolutely sure the application now uses the LabVIEW 2020 runtime.
The help for that option is a bit scary:
Allow future versions of the LabVIEW Runtime to run this application
I wonder what these "unexpected problems" could be. Is this one of them? 🙂
What kind of drivers does the application use? Could it be that a driver upgrade (while installing 2020) is the cause of the problem?
10-27-2020 08:25 PM
altenbach,
It can indeed be some other piece of NI 2020 software. The executable uses TCP to interact with the device, so no other NI drivers involved.
I do not know for sure what runtime engine the executable uses. Is it possible to determine?
10-27-2020 08:34 PM
@Fedor wrote:
I do not know for sure what runtime engine the executable uses. Is it possible to determine?
If you are lucky, the "help...about" popup was left in the runtime menu. See if it is there. (except that it might be broken in the 2020 runtime :()
Maybe you could also tell from the task manager somehow.
10-27-2020 09:22 PM
I've heard of definite compatibility problems related to this feature. Curiously, it was turned ON by default in my LV 2020 setup.
10-28-2020 09:33 AM
altenbach
The executable's "Help...about" is modified from the default.
The Associated Handles in the Resource Monitor point to \Program Files (x86)\National Instruments\Shared\LabVIEW Run-Time\2020\