Promotic

GetAttribute - method of the AtouchX object

Description:
Returns informations about the driver.
The method returns available informations about the driver and returns it in the DATA variable.
Syntax:
Integer GetAttribute(Integer AttrID, Variant DATA)
Parameters:
AttrID(Integer) Identifier of the type of information we want to read.
DATA[for read and write] (Variant) Variable where the result is stored.
Return value:
Note:
Requested attribute:
0 = attrVersion - Driver version in BCD (returns the same value as the GetKernelVersion method). Can always be called, independently on driver initialization.
1 = attrRdBufSize - Total size of the read buffer (in frames). The value can be influenced during initialization by the RQ.RdBuff.Size parameter in the HW description.
2 = attrWrBufSize - Total size of the write buffer (in frames). The value can be influenced during initialization by the RQ.WrBuff.Size parameter in the HW description.
3 = attrRdBufFree - Current number of free frames in the read buffer.
4 = attrWrBufFree - Current number of free frames in the write buffer.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var oATC = pMe.Pm("/AtouchApp").Acx;
var nAttrID = 1;
var mData = Pm.CreatePmMap();
mData.ParValue = null;
var nState = Pm.CallAxMethod("", oATC, "GetAttribute", nAttrID, mData);
var aInfo = mData.ParValue;
Pm.Debug("AtouchX.GetAttribute " + mData.ParValue);
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r.o.