Click or drag to resize

Adding an Attribute

To add an attribute to a driver

  1. From Solution Explorer, double-click the Driver Designer node under the Nimbus node.

  2. The IVI-C Driver Designer tree view opens.

  3. Expand the root node and locate and then select the desired branch where the new attribute is desired.

  4. Right-click on the selected node and choose Add Attribute.

  5. A new attribute is added with a default name and the tree node enters edit mode. By default the attribute type is Double.

  6. With the attribute node still in edit mode, type the desired name of the property followed by a colon (:) followed by the name of the return type, and hit the Enter key. The colon and type can be excluded if the desired property type is Double.

    Note Note

    When adding attributes to the driver hierarchy, the name chosen is actually the display name of the attribute. This display name is used in the attribute information (.sub) file and in displaying the hierarchy of functions and attributes in the Driver Designer. The actual attribute macro name used in the generated driver header file will be created from this display name by converting whitespace to underscores. All attribute macro names are prefixed by PREFIX_ATTR_, but this portion of the macro name is never displayed in the designer for clarity.

  7. After the attribute is added, the IVI-C Attribute General Editor appears in the right portion of the IVI-C Driver Designer. See the help topic for that Item Editor for details on defining the attribute further.

See Also

Download a complete CHM version of this documentation here.