Download Instrument Control Toolbox User`s Guide

Transcript
Writing a Generic Driver
Using the Same Name for a Property
The position of the IE browser window is determined by the Top and Left properties
of its COM object. In the following steps, you make the Top property available to your
device object through your generic driver. For this property, the name of the property is
the same in both the COM object and in your device object.
1
2
3
4
5
6
Select the Properties node in the driver editor tree.
In the Add property field, enter the text Top, and click Add.
Expand the Properties node in the tree, and select the new node Top.
Click the Property Values tab. Your property can have a numeric value
corresponding to screen pixels. For this example, you can limit the value of the
property from 0 to 200.
Make sure the Data Type field indicates Double. In the Constraint field, click the
pull-down menu and select Bounded.
Keep the Minimum value of 0.0, and enter a Maximum value of 200.
Your driver editor window should look like the following figure.
15-5