LabWindows/CVI

Table of Contents
  • LabWindows/CVI Fundamentals
  • Creating Applications
  • Distributing Applications
  • Library Reference
  • Programmer Reference
  • Hardware Information

Finding Text in Source Windows

Use the Find command to locate specified text in your files. When you select the Find command in the Source window, the Find dialog box opens.

Enter the text you want to find in Find what. If you select text on a single line before you open the Find dialog box, the selected text appears in Find what. Otherwise, the text you last searched for appears in the box. To access a history of selections for Find what, click the arrow to the right of Find what or use the up or down arrow keys on your keyboard.

Use the following options to define parameters for your search:

  • Case sensitive—Finds only exact matches of the specified text. For example, if you specify CHR, the Case sensitive option finds CHR but not Chr.
  • Whole word—Finds the specified text only when the characters that surround it are spaces, punctuation marks, or other characters not considered part of a word. LabWindows/CVI treats the characters A through Z, a through z, 0 through 9, and underscore (_) as part of a word.
  • Regular expression—Uses certain characters in Find what as regular expression characters instead of literal characters.
  • Multiple files—Includes multiple files in the search.

    When you enable the Multiple files option, you can specify the following additional options to search through multiple files:
    • Search in folders—Searches for text in the directory you specify in the Directory option.
    • File types—Specifies the file extension(s) of the file types you want to search. LabWindows/CVI keeps a history of the files types you select. To access the history, click the arrow to the right of File types or use the keyboard arrow keys.
    • Directory—Specifies the directory to search. The search includes all files with the specified extension in this directory and its subfolders. LabWindows/CVI keeps a history of previously specified directories, including the current project directory. To access the history, use the keyboard arrow keys.
    • Don't search subfolders—Searches only the top-level folder you specify. By default, the multiple files search includes subfolders.
    • Additional files—Lists other files you want to include in the search. Additional files lists files related to the current workspace. The files listed in this section are not filtered by the file extension you specify in the File types option.

      Use the following buttons to quickly select or deselect files listed in Additional files:
      • Mark Files in Project
      • Mark Files in Workspace
      • Mark All Files
      • Mark All .c
      • Mark All .h
      • Clear All
  • Selected text only—Searches only within the region of highlighted text in the Source window when the highlighted text extends beyond one line. LabWindows/CVI automatically enables this option when you open the Find dialog box after selecting multiple lines of text in the Source window.
  • Wrap—Continues searching from the beginning of the file once the search reaches the end of the file.
  • Button bar—Enables a dialog box for interactive searching. Find Prev and Find Next operate the same as they do in the Find dialog box used in other windows of the LabWindows/CVI environment. Stop terminates the search, leaving the keyboard cursor at the current position. Return terminates the search, leaving the keyboard cursor at the original position where you began the search. For multiple file searches, Next File moves the search to the next file. Selecting the Button bar option disables the Show all matches option.
  • Show all matches—Opens the Find Results window with a list of matches. The Find Results window lists the filename and line number of the matched text. Double-clicking a match in the Find Results window opens the file and highlights the matched text. If you have default shortcut keys enabled, pressing <F4> also cycles through the matches.
  • Find Prev—Searches backward for the previous match.
  • Find Next—Searches forward for the next match.
  • Cancel—Terminates the search and closes the Find dialog box.

You can bypass the Find dialog box using the keyboard commands. View a list of the keyboard commands by opening the Change Shortcut Keys dialog box.

Log in to get a better experience