Example Code

Searching Microsoft Compiled HTML Help (CHM) File

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.

    Programming Language

  • LabVIEW G

Code and Documents

Attachment

Description

This VI decompiles a CHM file using the hh.exe shipped with Windows 10, then search through each html file to identify if the specified keyword is found. It is useful when you want to search if which NI-DAQmx devices support a specific property.

ZY_Ong_0-1657689690046.png

 

 

 

How to Use

1. Specify the path of the CHM file that you want to search.
2. Specify the search keyword. Note that some characters are encoded as text reference in html, for example ">" is ">".
3. Run the VI.

 

Senior Technical Support Engineer | CLD CTA | NI


DISCLAIMER: The attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system, or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

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

Contributors