Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Call a LabVIEW VI That Contains Shared Variables From TestStand

Primary Software: TestStand
Primary Software Version: 3.5
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Development Systems

Problem:
I have built a project in LabVIEW that contains shared variables. My VIs are referencing these shared variables. When I call these VIs from TestStand my shared variables do not update correctly. What is the proper way to call VIs with shared variables from TestStand?

Solution:
Shared variables are stored in a Project Library (*.lvlib). You have to deploy the Project Library (*.lvlib) before you can use the shared variables. If you run your VI directly in LabVIEW the LabVIEW Runtime engine deploys the Project Library (*.lvlib) file automatically. When you call the VI from TestStand this Project Library (*.lvlib) does not get deployed.

The proper way to deploy a Project Library (*.lvlib) from TestStand is to insert a Deploy Library step before you call the VI with the shared variables. To get the Deploy Library step you right click in your sequence and go to Insert Step » LabVIEW Utility » Deploy Library. Right click on this step and go to Configure Deploy Library... Change the Library Path to the Project Library (*.lvlib) that contains your shared variables. Set the Operation to Deploy. When you are done calling the VIs with the shared variables you need to Undeploy using the same step. Set the Operation to Undeploy.

Attached is a simple example that demonstrates this behavior.

Related Links:
Developer Zone Tutorial: NI TestStand 3.5 – Designing Custom Automated Test Solutions with Industry-Standard Tools and Protocols


Attachments:


SharedVariablesFromTestStand.zip


Report Date: 08/30/2006
Last Updated: 02/15/2008
Document ID: 40T92JDR

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit