Click or drag to resize

Adding a Function

To add a function 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 in the hierarchy where the new function is desired.

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

  5. A new function is added with a default name and the tree node enters edit mode.

  6. With the function node still in edit mode, type the desired name of the function and hit the Enter key.

    Note Note

    When adding functions to the driver hierarchy, the name chosen is actually the display name of the function. This display name is used in the function panel (.fp) file and in displaying the hierarchy of functions and attributes in the Driver Designer. The actual function name used in the generated driver header file will be created from this display name by removing whitespace and other non-alphanumeric characters.

  7. After the function is added, the IVI-C Function 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 function further.

  8. Once a function has been added, parameters can be added to the function . See the topic Adding a Parameter for details on adding parameters.

See Also

Download a complete CHM version of this documentation here.