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

Creating an Executable Version of the LabVIEW Test Executive Toolkit

Primary Software: LabVIEW Toolkits>>Test Executive
Primary Software Version: 5.1
Primary Software Fixed Version: N/A
Secondary Software: LabVIEW Toolkits>>Application Builder

Problem: How do I create an executable version of the LabVIEW Test Executive Toolkit?

Solution: In order to distribute Test Executive 5.1.1 with LabVIEW, you will need to rebuild the Operator Interface.

  1. Launch LabVIEW and creat a new VI.

  2. Go to the block diagram and insert as SubVIs the following VIs:
    1. From Callback.llb
      1. Close Sequence Callback.vi
      2. Configure Test Vi Callback.vi
      3. Exit Callback.vi
      4. Login Callback.vi
      5. Open Sequence Callback.vi
      6. Open Test VI Callback.vi
      7. Per-UUT Logger Callback.vi
      8. Post Run-Loop Test Callback.vi
      9. Post-Step Callback.vi
      10. Post-UUT Callback.vi
      11. Post-UUT loop Callback.vi
      12. Pre-Step Callback.vi
      13. Pre-UUT Callback.vi
      14. Pre-UUT Loop Callback.vi
      15. Save Sequence Callback.vi
      16. Select Sequence Callback.vi
      17. Sequence Report Callback.vi
      18. Test Failure Callback.vi
      19. Test Report Callback.vi
      20. Test String Callback.vi
    2. From Operator.llb
      1. Test Executive.vi

    **at this point, if you are using Database Logging, use all of the VIs from step a) above and instead of b) include from LabVIEW Folder\LVEXEC51\DATABASE\Operator.llb:
    1. Test Executive.vi

    **and from LabVIEW Folder\LVEXEC51\DATABASE\Callback.llb add:
    1. Create DB Tables Callback.vi
    2. Per-UUT DB Logger Callback.vi

  3. Click on the File » Save With Options and select Development Distribution. Be sure to check include vi.lib files. Click OK and name your library. (Suggestion: name it hierarchy.llb, since the INI file attached refers to this file.)

  4. Launch the Application Builder in LabVIEW 5.1.x.

  5. Name and specify the File Path. In the Source Files tab, Choose Test Executive.vi as the top level VI (located in the C:\Program Files\National Instruments\LabVIEW\LVEXEC51\operator.llb, or if you are using the Database Logging option from C:\Program Files\National Instruments\LabVIEW\LVEXEC51\DATABASE\operator.llb).

  6. Choose Sequence Editor.vi as a dynamic VI (located in the C:\Program Files\National Instruments\LabVIEW\LVEXEC51\engine.llb).

  7. Choose Please Wait.vi as a dynamic VI (located in the C:\Program Files\National Instruments\LabVIEW\LVEXEC51\engine.llb).

  8. Choose the library created in step 3 (hierarchy.llb) as a support file.

  9. serpdrv and daqdrv (new NI-DAQ driver doesn’t need the daqdrv) are loaded as default support files by the application builder.


Notes:
  1. If after building and launching the executable, it asks you to find any VIs, browse to the hierarchy.llb to find the VIs it is prompting you for.
  2. It is very important that all of your VIs are in the same version. To ensure that, mass compile the LabVIEW folder and also your Test VIs.
  3. You will also need to repeat the procedure on steps 1,2 and 3 with your test VIs. In other words, creating a new VI, placing in the block diagram all your Test VIs and creating a Library.
  4. You may also need to copy VIs from vi.lib and instr.lib to the installation directory of your executable.

    Example: If you are using DAQ VIs, and let’s say you installed the Test Executive.exe (you created using the steps above) in the folder C:\Program Files\TestExec\. You may need to copy the folder C:\Program Files\National Instruments\LabVIEW\VI.LIB\DAQ\ to C:\ProgramFiles\TestExec\VI.LIB\DAQ.


Attached Files (below):

DBHierarchy.vi - With all the VIs needed to create the Hierarchy.llb for Database logging.
DB Test Exec.ini - For database logging, rename to testexec.ini and place it in the same folder you have placed the executable.

NODBHierarchy.vi - Includes all the VIs needed to creat Hierarchy.llb without Database logging.
NODBHierarchy.ini - For non-database logging, rename to testexec.ini and place it in the same folder you have placed the executable.




Related Links:

Attachments:


DBtestexec.iniDBHierarchy.viNODBtestexec.iniNODBHierarchy.vi


Report Date: 06/05/2001
Last Updated: 06/14/2004
Document ID: 2A49BQ6F

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