Module: OPCItems

Includes:
WIN32OLE::VARIANT
Defined in:
lib/picopc/olegen_opc_automation.rb

Overview

Collection of OPC Item objects

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#lastargsObject (readonly)

Returns the value of attribute lastargs.



1143
1144
1145
# File 'lib/picopc/olegen_opc_automation.rb', line 1143

def lastargs
  @lastargs
end

Instance Method Details

#AddItem(arg0, arg1) ⇒ Object

OPCItem AddItem Adds an OPCItem object to the collection

BSTR arg0 --- ItemID [IN]
I4 arg1 --- ClientHandle [IN]


1225
1226
1227
1228
1229
# File 'lib/picopc/olegen_opc_automation.rb', line 1225

def AddItem(arg0, arg1)
  ret = _invoke(1610743819, [arg0, arg1], [VT_BSTR, VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#AddItems(arg0, arg1, arg2, arg3, arg4, arg5 = nil, arg6 = nil) ⇒ Object

VOID AddItems Adds OPCItem objects to the collection

I4 arg0 --- NumItems [IN]
BSTR arg1 --- ItemIDs [IN]
I4 arg2 --- ClientHandles [IN]
I4 arg3 --- ServerHandles [OUT]
I4 arg4 --- Errors [OUT]
VARIANT arg5 --- RequestedDataTypes [IN]
VARIANT arg6 --- AccessPaths [IN]


1240
1241
1242
1243
1244
# File 'lib/picopc/olegen_opc_automation.rb', line 1240

def AddItems(arg0, arg1, arg2, arg3, arg4, arg5=nil, arg6=nil)
  ret = _invoke(1610743820, [arg0, arg1, arg2, arg3, arg4, arg5, arg6], [VT_I4, VT_BYREF|VT_ARRAY|VT_BSTR, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_VARIANT, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#CountObject

I4 Count Number of items in the Collection



1176
1177
1178
1179
1180
# File 'lib/picopc/olegen_opc_automation.rb', line 1176

def Count()
  ret = _getproperty(1610743815, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#DefaultAccessPathObject

BSTR DefaultAccessPath



1161
1162
1163
1164
1165
# File 'lib/picopc/olegen_opc_automation.rb', line 1161

def DefaultAccessPath()
  ret = _getproperty(1610743811, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#DefaultAccessPath=(arg0) ⇒ Object

VOID DefaultAccessPath



1190
1191
1192
1193
1194
# File 'lib/picopc/olegen_opc_automation.rb', line 1190

def DefaultAccessPath=(arg0)
  ret = _setproperty(1610743811, [arg0], [VT_BSTR])
  @lastargs = WIN32OLE::ARGV
  ret
end

#DefaultIsActiveObject

BOOL DefaultIsActive



1168
1169
1170
1171
1172
# File 'lib/picopc/olegen_opc_automation.rb', line 1168

def DefaultIsActive()
  ret = _getproperty(1610743813, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#DefaultIsActive=(arg0) ⇒ Object

VOID DefaultIsActive



1197
1198
1199
1200
1201
# File 'lib/picopc/olegen_opc_automation.rb', line 1197

def DefaultIsActive=(arg0)
  ret = _setproperty(1610743813, [arg0], [VT_BOOL])
  @lastargs = WIN32OLE::ARGV
  ret
end

#DefaultRequestedDataTypeObject

I2 DefaultRequestedDataType



1154
1155
1156
1157
1158
# File 'lib/picopc/olegen_opc_automation.rb', line 1154

def DefaultRequestedDataType()
  ret = _getproperty(1610743809, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#DefaultRequestedDataType=(arg0) ⇒ Object

VOID DefaultRequestedDataType



1183
1184
1185
1186
1187
# File 'lib/picopc/olegen_opc_automation.rb', line 1183

def DefaultRequestedDataType=(arg0)
  ret = _setproperty(1610743809, [arg0], [VT_I2])
  @lastargs = WIN32OLE::ARGV
  ret
end

#GetOPCItem(arg0) ⇒ Object

OPCItem GetOPCItem Returns an OPCItem specified by server handle

I4 arg0 --- ServerHandle [IN]


1215
1216
1217
1218
1219
# File 'lib/picopc/olegen_opc_automation.rb', line 1215

def GetOPCItem(arg0)
  ret = _invoke(1610743818, [arg0], [VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#Item(arg0) ⇒ Object

OPCItem Item Returns an OPCItem by index (starts at 1)

VARIANT arg0 --- ItemSpecifier [IN]


1206
1207
1208
1209
1210
# File 'lib/picopc/olegen_opc_automation.rb', line 1206

def Item(arg0)
  ret = _invoke(0, [arg0], [VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end

#ParentObject

OPCGroup Parent Returns the parent OPCGroup



1147
1148
1149
1150
1151
# File 'lib/picopc/olegen_opc_automation.rb', line 1147

def Parent()
  ret = _getproperty(1610743808, [], [])
  @lastargs = WIN32OLE::ARGV
  ret
end

#Remove(arg0, arg1, arg2) ⇒ Object

VOID Remove Removes OPCItem objects from the collection

I4 arg0 --- NumItems [IN]
I4 arg1 --- ServerHandles [IN]
I4 arg2 --- Errors [OUT]


1251
1252
1253
1254
1255
# File 'lib/picopc/olegen_opc_automation.rb', line 1251

def Remove(arg0, arg1, arg2)
  ret = _invoke(1610743821, [arg0, arg1, arg2], [VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#SetActive(arg0, arg1, arg2, arg3) ⇒ Object

VOID SetActive Set the active state of OPCItem objects

I4 arg0 --- NumItems [IN]
I4 arg1 --- ServerHandles [IN]
BOOL arg2 --- ActiveState [IN]
I4 arg3 --- Errors [OUT]


1276
1277
1278
1279
1280
# File 'lib/picopc/olegen_opc_automation.rb', line 1276

def SetActive(arg0, arg1, arg2, arg3)
  ret = _invoke(1610743823, [arg0, arg1, arg2, arg3], [VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BOOL, VT_BYREF|VT_ARRAY|VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#SetClientHandles(arg0, arg1, arg2, arg3) ⇒ Object

VOID SetClientHandles Set the Client handles of OPCItem objects

I4 arg0 --- NumItems [IN]
I4 arg1 --- ServerHandles [IN]
I4 arg2 --- ClientHandles [IN]
I4 arg3 --- Errors [OUT]


1288
1289
1290
1291
1292
# File 'lib/picopc/olegen_opc_automation.rb', line 1288

def SetClientHandles(arg0, arg1, arg2, arg3)
  ret = _invoke(1610743824, [arg0, arg1, arg2, arg3], [VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#SetDataTypes(arg0, arg1, arg2, arg3) ⇒ Object

VOID SetDataTypes Set the Data Types of OPCItem objects

I4 arg0 --- NumItems [IN]
I4 arg1 --- ServerHandles [IN]
I4 arg2 --- RequestedDataTypes [IN]
I4 arg3 --- Errors [OUT]


1300
1301
1302
1303
1304
# File 'lib/picopc/olegen_opc_automation.rb', line 1300

def SetDataTypes(arg0, arg1, arg2, arg3)
  ret = _invoke(1610743825, [arg0, arg1, arg2, arg3], [VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4, VT_BYREF|VT_ARRAY|VT_I4])
  @lastargs = WIN32OLE::ARGV
  ret
end

#Validate(arg0, arg1, arg2, arg3 = nil, arg4 = nil) ⇒ Object

VOID Validate ?

I4 arg0 --- NumItems [IN]
BSTR arg1 --- ItemIDs [IN]
I4 arg2 --- Errors [OUT]
VARIANT arg3 --- RequestedDataTypes [IN]
VARIANT arg4 --- AccessPaths [IN]


1264
1265
1266
1267
1268
# File 'lib/picopc/olegen_opc_automation.rb', line 1264

def Validate(arg0, arg1, arg2, arg3=nil, arg4=nil)
  ret = _invoke(1610743822, [arg0, arg1, arg2, arg3, arg4], [VT_I4, VT_BYREF|VT_ARRAY|VT_BSTR, VT_BYREF|VT_ARRAY|VT_I4, VT_VARIANT, VT_VARIANT])
  @lastargs = WIN32OLE::ARGV
  ret
end