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

Why Do Many VIs Break in a TestStand Distribution Image After I Mass Compile the VIs to a Newer Version of LabVIEW?

Primary Software: LabVIEW Development Systems>>LabVIEW Base Package
Primary Software Version: 7.0
Primary Software Fixed Version: N/A
Secondary Software: TestStand

Problem:
I have created packaged VIs using the TestStand Deployment Utility and I mass compiled these VIs. After mass compiling, many of my VIs are now broken.

Solution:
This is happenening because the VIs were mass-compiled after using the Deployment Utility.

The TestStand Deployment Utility packages type definitions and controls from the vi.lib folder in order for your VIs to deploy successfully. When you attempt to mass compile the VI package, the Mass Compiler Utility loads all of your packaged support VIs into memory, including the type definitions. Since the mass compiler was written in LabVIEW, it will also use many type definitions in its functionality. Some of these type definitions used by the mass compiler may be the same name as those found in your packaged VIs, but a newer version. If a subVI of the mass compiler attempts to use one of these type definitions, it will find that a copy is already loaded into memory. It will then relink to the copy found in memory. However, the copy in memory is not the version needed by the subVI. Thus, the mass compiler subVI will break.

If this circumstance happens, the mass compiler will prompt you to save the changes to the subVI used by the mass compiler. If saved, the functional VI will be overwritten with the broken VI.

It is highly recommended to update the source VIs used by your application to the newer version of LabVIEW before using the deployment utility. To do this, simply mass compile the VI's you use as Code Modules in your TestStand application before deploying the VIs.

Related Links:
KnowledgeBase 3QOCE1YV: Deploying TestStand Systems
KnoeledgeBase 1Q0CGHSR: -18002 Errors in TestStand
KnowledgeBase 2SJDAH2Q: What Does Mass Compile Do in LabVIEW?
KnowledgeBase 214A2JPH: How Do I Mass Compile VIs, LLBs, or Folders in LabVIEW?

Attachments:





Report Date: 11/02/2005
Last Updated: 05/06/2009
Document ID: 3R1J36EQ

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