Adding a Method
From Solution Explorer, double-click the Driver Designer node under the Nimbus node.
The IVI.NET Driver Designer tree view opens.
Expand the root node, which will be named after the driver assembly (e.g.: Acme.Acme4321).
Locate and then select the desired class, struct, or interface where the new method is desired.
Right-click on the selected node and choose Add Method.
A new method is added with a default name and the tree node enters edit mode. By default the method return type is Void, meaning that the method has no return type.
With the method node still in edit mode, type the desired name of the method followed by a colon (:) followed by the name of the return type, and hit the Enter key. The colon and return type can be excluded if the method has no return type (e.g. the Void return type is implied).
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 method 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.
After the method is added, the IVI.NET Method 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 method further.
Once a method has been added, parameters can be added to the method. See the topic Adding a Parameter for details on adding parameters.
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 function is automatically created at this time and linked to the IVI.NET method.
To view the linked IVI-C function, right-click the IVI.NET method, and choose Go to IVI-C Function.
To remove the linked IVI-C function, thereby creating an IVI.NET-only method, right-click the IVI.NET method, and choose Delete IVI-C Function.
Download a complete CHM version of this documentation here.