Developer Center Resources

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding Example VIs to the NI Example Finder

» Developing a VI-Based API » Adding Example VIs to the NI Example Finder

 

This example documents the process for adding Example VIs to the NI Example Finder. To prepare for this example, please download the .zip archive linked to at the bottom of this document and copy the contents to your LabVIEW directory (the 'examples' folder in the .zip should be merged with the existing examples folder in the LabVIEW directory in order for the examples\ATX\SimpleMath\Simple Math Example.vi file to be in the correct location).

  1. Open LabVIEW

  2. Open the 'Prepare Example VIs for NI Example Finder utility (Tools > Prepare Example VIs for NI Example Finder)
    1.png
  3. Change the 'Start directory for examples' to the directory where your API examples are located (LabVIEW\examples\Company\Product\ or for this example, LabVIEW\examples\ATX\Simple Math).

  4. Double-click the example VI (.vi) or LabVIEW Project file (.lvproj) you wish to document in the first pane on the left (Simple Math Example.vi).

  5. Navigate to your desired browse path and double-click on the grey icon designating the bucket you've chosen for the example (you can add multiple paths); this is the path users will use with the 'List' view of the NI Example Finder.  Currently, this list is not open to adding new browse paths.

  6. Double-click on Keywords in the third pane to compile a list of tags for users to use when searching for examples in the NI Example Finder. If you would like to add keywords, enter your new keywords in the box below this pane and select 'Add New Keyword'.

  7. The Documentation pane in the upper right corner of the window describes the settings you've chosen for a particular example.

  8. The pane below the Documentation pane contains the example description, this is the description which appears in the Description text box of the NI Example Finder.

  9. When you've completed documenting a particular example, click 'Save Documentation' at the bottom-right of the window. Then repeat steps 4-8 for additional examples.

  10. Once you've completed documenting your examples, change to the 'Build Data File' tab.

  11. For the 'Data file to create (bin3)', navigate to \LabVIEW\examples\exbins\ and save this file as Company-Product.bin3. For a list of prefixes you cannot use when naming this file, please consult the LabVIEW Help Document by clicking the Help button at the bottom-right of the window.

  12. Set the directory where the examples are stored.

  13. Click 'Build File'.

  14. Restart LabVIEW, Open the NI Example Finder and search/browse for your examples. I recommend documenting the steps to search/browse to your examples for customers.
Comments
James_McN
Active Participant Active Participant
Active Participant
on

How do you add browse paths if not here? Or does everything else just go in "Other"?

James Mc
========
Ask me about Rust & NI Hardware
My writings are at https://www.wiresmithtech.com/devs/
Plutto313
Member
Member
on

Hi.

How can I add a requirement for my example?

The only way I can see is just writing it in 'Example description' section.

 

  

Contributors