Example Code

Execute String/Numeric Querry Using Data Finder Toolkit in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This example shows how to build a simple String and Numeric Query using the DataFinder APIs in LabVIEW.


Description
This example shows how to build a simple String and Numeric Querry. Note: Data Finder toolkit will only search through the File, Group and Channel properties within a file (not the actual channel data). The current configuration allows you to search for files where the Operator Name is "Steve" or check for channels with a "Max Value" greater than 50 property (you would have to calculate and create this property when you write the file).


Requirements

  • LabVIEW 2012 (or compatible)
  • DataFinder Toolkit


Steps to Implement or Execute Code

  1. Download the attached files to your computer
  2. Open the VI "Simple Data Finder Query LV2012 NI Verified.vi"
  3. Select the DataFinder reference
  4. Select the query options from String Query and Numeric Query boxes
  5. Run the program

Additional Notes

If you run this example on your computer it will not likely find any files if you have not created files with these specific properties.

 

Additional Information or References

VI Block Diagram

Simple Data Finder Query LV2012 NI Verified.png

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.