Applies To:
  • CitectSCADA 5.20

Summary:
I have an ActiveX control that returns a value via a parameter, but whenever I call the method I get an "Automation Error" hardware alarm. 

Solution:
You will be affected by this problem if your ActiveX control has a method similar to:

BOOL GiveMeAValue(INT* pValue)

Generally, you would attempt to call the method with Cicode resembling this:

INT
FUNCTION
GetTheValue
INT iError;
INT iTheValue;
iTheValue = 0;
iReadNumber = _ObjectCallMethod(hObject, "GiveMeAValue", iTheValue);
iError = IsError();
IF (iError = 1) THEN
Message("Error","Get did not work",0);
END
RETURN iTheValue;
END

CIT has confirmed this to be a problem in Citect for Windows version 5.20. This problem has been fixed in version 5.21

 

Keywords:
 

Attachments