Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Finding and Replacing Text in VIs

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

You can search VIs for text in the front panel window, block diagram window, VI revision history, and VI and object descriptions and replace the existing text with another piece of text. You also can find and replace text in the configuration of a Call Library Function Node.

(Statechart) You can find text in the guard and action code of a statechart. You can find and replace text in the Statechart Editor window.

Complete the following steps to find and replace text in the VIs in an application instance.

  1. Select Edit»Find and Replace to display the Find dialog box. You also can select a piece of text in the current VI and select Edit»Find and Replace to display the Find dialog box with the text preselected for the search.
  2. Click the Text button.
  3. From the Application Instance selection menu, select the application instance in which you want to search for the text. The default application instance is the application instance from which you opened the Find dialog box.
  4. Enter the text you want to find in the Type in the word(s) to search for text box.
  5. Click the More Options button to display the Text Search Options dialog box and configure where LabVIEW searches for the text.
  6. Configure the scope of the search from the Search Scope pull-down menu.
  7. Click the Find button. The Search Results window lists all instances of the text that LabVIEW found. If only one instance is found, LabVIEW highlights the result on the front panel window or block diagram and the Search Results window in not displayed.
  8. Select an entry in the Search Results list and click the Go To button to find the text in the VI. You also can double-click the entry in the Search Results list to find the text in the VI.
  9. In the Replace with list, enter the text with which you want to replace the original text or select a previous text entry.
  10. To replace all instances of the original text with the new text, click the Replace All button. To replace only selected instances of the original text with the new text, select the instances you want to replace from the Search Results list and then click the Replace Selected button. After you replace a piece of text, you can select the corresponding entry in the Search Results list to find the new text in the VI.
Note  A strikeout icon appears next to an entry in the Search Results list if LabVIEW cannot replace that instance. For example, you cannot replace the text in a Property Node or an Invoke Node. You also cannot replace text in running VIs. If you click the Replace All or Replace Selected buttons, LabVIEW replaces all instances except those marked with a strikeout icon.

 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit