Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
1 ratings:
 2 out of 5     Rate this Document

Error 7 When Deploying TestStand Systems that Use the LabVIEW Report Generation Toolkit

Primary Software: TestStand
Primary Software Version: 3.5
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Report Generation Toolkit for Microsoft Office

Problem:
When I build a TestStand Deployment that includes VIs from the LabVIEW Report Generation Toolkit, the sequence file does not run properly on the deployed system. I receive error 7 when I try to run the sequence file.

Solution:
The error 7 code usually occurs because a  dynamically called VI is missing from the TestStand deployment. Any VI that is called dynamically must be included in the deployment of a TestStand system. The LabVIEW Report Generation Toolkit calls several VIs dynamically from its llb files. The solution is to create a deployment that has the support files included for the LabVIEW Report Generation Toolkit. The support file for Microsoft Word is _wordsub.llb and the support file for Microsoft Excel is _exclsub.llb. They can be found in the
<LabVIEW x.x>\vi.lib\addons\_office\
.

If error 7 is still thrown, then _wordsub.llb and _exclsub.llb need to be mass compiled from within LabVIEW to relink all their VIs. Mass compiling can be done by selecting Tools » Advanced » Mass Compile.

If you get the error below:
Could not load (C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\_office\_exclsub.llb\font.ctl) because
(C:\Program Files\National Instruments\LabVIEW 8.5\vi.lib\addons\_office\_wordsub.llb\font.ctl) in memory


You will need to perform a Mass Compile on just <vi.lib>\addons\_office\_exclsub.llb with the Cache VIs option de-selected.  See the screen shot below.

Cache VI Option



Also, if you are using the MS Office Report Express VI, then you should include the template the Express VI is using along with your application. In the configuration of the MS Office Report Express VI, the Express VI relies on a report template; either a basic one provided in the LabVIEW templates directory or a custom one provided by the user.

In addition, you should exclude the font.ctl file from the _exclsub.llb library. The reason is that font.ctl is statically linked in the Express VI. Thus, including the _exclsub.llb will cause a duplicated copy.

Related Links:


Attachments:





Report Date: 01/17/2006
Last Updated: 12/10/2007
Document ID: 3TGEO2RM

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