Click or drag to resize

Adding a Property

To add a property to a driver

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

  2. The IVI.NET Driver Designer tree view opens.

  3. Expand the root node, which will be named after the driver assembly (e.g.: Acme.Acme4321).

  4. Locate and then select the desired class, struct, or interface where the new property is desired.

  5. Right-click on the selected node and choose Add Property.

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

  7. With the property 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

    Refer to the help topic Understanding Type Name Resolution in Nimbus for more information regarding how Nimbus resolves type names entered into the designer.

    When choosing a property name, the following naming rules apply:

    • The name must be unique within its containing type. It need not be unique across the entire driver.

    • The name must contain only alphanumeric characters.

    • Spaces are not allowed.

    • The name must begin with an alphabetic character.

  8. After the property is added, the IVI.NET Property General Editor appears in the right portion of the IVI.NET Driver Designer. See the help topic for that Item Editor for details on defining the property further.

  9. If an IVI-C driver is currently linked to the IVI.NET driver via the IVI-C Page of the Driver Settings Editor, then an IVI-C attribute is automatically created at this time and linked to the IVI.NET property.

    To view the linked IVI-C attribute, right-click the IVI.NET property, and choose Go to IVI-C Attribute.

    To remove the linked IVI-C attribute, thereby creating an IVI.NET-only property, right-click the IVI.NET property, and choose Delete IVI-C Attribute.

    For a detailed discussion of the associations between IVI.NET methods and IVI-C functions, see the topics Managing IVI-C Driver Functionality and Linking IVI.NET and IVI-C Methods and Properties.

See Also

Download a complete CHM version of this documentation here.