Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Changing the Default View of Variables and Constants in LabWindows/CVI Tooltips

Primary Software: LabWindows/CVI Development Systems>>Full Development System
Primary Software Version: 7.1
Primary Software Fixed Version: N/A
Secondary Software: LabWindows/CVI Development Systems>>Base Package

Problem:
How do I change the default way variables and constants are displayed in tooltips when I hover over them?

Solution:
There are various ways you can display integers, characters and longs in the Variables and Watch Windows. For instance, if you want to set the default display for an integer to hexadecimal, you can add an integer variable to your Watch Window, right click on the variable in your Watch Window, select Format » Preferences, and in the first ring control, select Hexadecimal. This will set the default display format for all characters, integers and longs to hexadecimal.

  • Changing the setting in the Watch Window Preferences dialog modifies the tooltip for constants.
    For instance, let's take the example: TestVariable = 12345;

    Imagine that this declaration was included in a project. If you were to hover over the 12345 constant when the application was running, you would see the hex representation of 12345 displayed in the tooltip. On the other hand, if you were to hover over TestVariable, you would see the integer representation of its value. The tooltips that appear when you hover over a variable is not tied to the display preference set in the Watch Window. Instead, the display setting is read from the Variables Window.

  • Changing the setting in the Variables Window Preferences dialog modifies the tooltip for variables.

    In order to change the default view of variables in CVI, navigate to the Preferences dialog in the Variables Window. If you were to set the default view to hexadecimal you would now see the hexadecimal value of TestVariable when you hovered over it during execution.

    Related Links:
    How to Use ToolTip Functionality with the CVI Operator Interface

    Attachments:





    Report Date: 07/05/2005
    Last Updated: 10/24/2005
    Document ID: 3N4L4UK7

    Your Feedback! poor Poor  |  Excellent excellent   Yes No
     Document Quality? 
     Answered Your Question? 
      1 2 3 4 5
    Please Contact NI for all product and support inquiries.submit
  •