NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

NI-272x reference VI not executable in LabVIEW runtime engine but it is ok in development environment

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,

 

0 Kudos
Message 1 of 5
(2,435 Views)

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(2,389 Views)

Hi Jiggawax,

Thanks for teaching me some good practices on deploying dependencies for TestStand

0 Kudos
Message 3 of 5
(2,381 Views)

Is there any error?What is the error?

0 Kudos
Message 4 of 5
(2,347 Views)

LabVIEW and TestStand should run in same bit Operation (32/64) when running in LVRTE.

----------------------------------------------------------------------------------------------------------------
Palanivel Thiruvenkadam | பழனிவேல் திருவெங்கடம்
LabVIEW™ Champion |Certified LabVIEW™ Architect |Certified TestStand Developer

Kidlin's Law -If you can write the problem down clearly then the matter is half solved.
-----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 5 of 5
(2,324 Views)