Example: An ActiveX control for analog objects

GMS Angular Gauge ActiveX control

For testing purposes, we have bought an ActiveX control that can make numerous types of angular gauges. Nearly any attribute of the control can be changed both in Definition and in Supervise.

The control can be used with any analog object in IGSS and you can choose between a number of alternative views.

For more information about the control, visit www.globalmajic.com.

 

What we want to do

In this example, we want to show the value of the analog object, q1, which is included in the Demo configuration that comes with every IGSS license. We want to bind the current process value of q1 to the needle value of the ActiveX control. This is how we want the control to look.

images\ocx_exx.gif

How we did it

Prior to this procedure, install the ActiveX control. To achieve the result shown above, follow these simple steps.

  1. Select Objects ® Standard Descriptors ® ActiveX Control  ® Show All . The Insert ActiveX Controls (OCX) dialog box appears.
  2. Select the GMS Angular Gauge ActiveX Control in the list and click OK.

  3. The default presentation of the control appears on the diagram. Move the control to the desired position and resize it.
  4. Right-click it and select Descriptor Properties, then select ActiveX properties.
  5. Find the property NeedleValue, right-click it and select Bind events TO control in the pop-up menu.
  6. Check the Send object event to control box, click Browse and select the q1 object in the Open by Name dialog box. Click OK to return to the first dialog box.

images\ocx_bindto.gif

  1. In the Atom drop-down list, select the Actual Value atom to bind the current process value to the needle. Click OK.
  2. The value for NeedleValue will now change to the current process value of q1 and the arrow pointing to the left will be green. This arrow symbolizes an event that goes from the control into IGSS, whereas the arrow pointing to the right symbolizes an event that goes from IGSS to the control.

  1. Now we want to change a few of the static properties of the ActiveX control. Do as follows:
  2. Close the properties dialog boxes and the control should now look like the one shown at the top of this topic.