02-26-2020 08:05 PM
Hello everyone,
I am using a TestStand action step to call a NI-272x reference VI (attached). TestStand complained that the VI is not executable when I configure the LabVIEW adapter to use the LabVIEW runtime engine. The issue goes away if I configure the adapter to the LabVIEW development environment. The VI runs just fine in LabVIEW. This is a deployment machine and I am trying to use the LabVIEW runtime engine, not the development license. I attached the MAX report. Would anyone please tell me what is going on and how to solve it?
Thank you,
02-27-2020 08:50 AM
I don't see an attached VI.
However, I can give you some insight into the difference between run-time engine (rte) and development engine (dev). Generally VIs have a lot of subVIs and hierarchy that are linked internally inside the VI. Meaning that the VI knows how to find the subVIs based on relative paths or search directories that the LabVIEW dev environment knows where to look. When you switch it to rte the search directories are no longer used and in a lot of cases the relative paths become messed up, especially if you copy or move the VI to a different location.
You need to "deploy" the VI so that it brings all of its dependencies along with it. There are several options. You can use the TestStand deployment utility to deploy the VI. This will bring all of the dependencies and relink the VI to the new relative locations. You need to make sure that you move the VI and all of its dependencies to the proper location on the deployment machine. If you use the TestStand deployment utility creating an installer will take care of this for you.
Another option is to create a source distribution from LabVIEW. I've had success with that but it is not a great option.
Even another option is to put the VI into a packed project library and call it from there. PPLs will bring all of the dependencies along and put them in a single application space. This is how I do all of my TestStand deployments nowadays. You can run with both rte and dev in this scenario.
Another thing to consider is that if you are moving the VI to another machine sometimes it relys on drivers. Those drivers need to be installed on the new machine as well. Even if it is VISA or DAQmx they need to be installed on the new machine. Those don't just get installed with LabVIEW.
Hope this helps,
02-27-2020 12:37 PM
Hi Jiggawax,
Thanks for teaching me some good practices on deploying dependencies for TestStand
03-06-2020 01:37 AM
Is there any error?What is the error?
03-10-2020 06:35 AM
LabVIEW and TestStand should run in same bit Operation (32/64) when running in LVRTE.