Developer Center Resources

cancel
Showing results for 
Search instead for 
Did you mean: 

Example Style VI Analyzer Test Suite - LV Add-ons

Follow the steps below to install the VI Analyzer Example Style Test Suite, which you can use to ensure the examples for your LabVIEW Add-on follow the Add-on Example Style Guidelines.

  1. Install and activate the VI Analyzer Toolkit. Note that you can use the example style test suite without the VI Analyzer Toolkit installed, but only the tests in the attached ZIP file will be run.
  2. Unzip the file below to your [LabVIEW Data] folder. On Windows, this is usually at:
    C:\Users\[username]\Documents\LabVIEW Data.
    • NOTE: It is *very important* to unzip the files to this location. Otherwise, a hang may occur when loading the .cfg file in the VI Analyzer. After unzipping the files, they should be in your LabVIEW Data folder and appear as so:

      lvdata.png
  3. Launch LabVIEW and select Tools > VI Analyzer > Analyze VIs... .
  4. Choose Load a previously saved analysis configuration file.
  5. In the resulting file dialog, select [LabVIEW Data]\Example Checklist (add-ons).cfg.
  6. Use the Add Top-level Item button to add all the folders you wish to test to the "Items to Analyze" list.  NoteYou must select the folders that contain your examples.  Selecting only the top-level VI of your example will only analyze that VI, and none of its subVIs.
  7. Click Next.
  8. On the Select Tests page, all the appropriate tests should already be selected for you. (Note: If you happen to already have your own custom VI Analyzer tests installed in the [LabVIEW Data] folder, you may need to deselect them under the <User-Specified> > VI Analyzer Tests category.)
  9. Click Next.
  10. Click Analyze. Select No when prompted to save your changes.
  11. Once the analysis is complete, browse through all the failure results and correct the issues shown.
Comments
FabiolaDelaCueva
Active Participant Active Participant
Active Participant
on
  1. Install and activate the VI Analyzer Toolkit. Note that you can use the example style test suite without the VI Analyzer Toolkit installed, but only the tests in the attached ZIP file will be run.
  2. Unzip the file below to your [LabVIEW Data] folder. On Windows, this is usually at:
    C:\Users\[username]\Documents\LabVIEW Data.

Pay attention that if you have custom tests in your C:\Users\[username]\Documents \LabVIEW Data you will get the VI Analyzer menu option in the Tools menu in LabVIEW, even though you might not have the VI Analyzer Toolkit installed!!! (yes, there is a difference between VI Analyzer and VI Analyzer Toolkit).

One way to know if you have the VI Analyzer Toolkit installed is to see if you have access to Tools>>VI Analyzer>>Create New Test..., if that option is not in your menu, then you don't have the VI Analyzer Toolkit installed.

Another option is to go to NI MAX and under software>>your LabVIEW version see if VI Analyzer Toolkit is listed.

[Edit] Edited to emphasize difference between VI Analyzer and the VI Analyzer Toolkit

For an opportunity to learn from experienced developers / entrepeneurs (Steve, Joerg, and Brian amongst them):
Check out DSH Pragmatic Software Development Workshop!

DQMH Lead Architect * DQMH Trusted Advisor * Certified LabVIEW Architect * Certified LabVIEW Embedded Developer * Certified Professional Instructor * LabVIEW Champion * Code Janitor

Have you been nice to future you?
Contributors