beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 240

background image

Appendix B Command Syntax

Scripting Guide

240

OBJSET

Object
Manager

Populates an associative
numeric array with object

IDs from the children of a

parent object.

OBJIDARRAY(%Class,%ObjIDParent,%AssocArray)

OBJSET

Object
Manager

Sets the current value in an
object’s field.

OBJSET(%ObjID,$ObjFieldName,$NewValue)==>%ErrCode

OBJSETARRAY

Object

Manager

Sets the field values for an

object from an associative

string array.

OBJSETARRAY(%ObjID,$AssocArray)==>%Success

CPUPOWER

Physical

Interface
Control

Switches a CPU’s power ON

or OFF.

CPUPOWER(%Port,%Operation)

DIUNIT

Physical

Interface

Control

Check the status of a device

connected to a DI unit.

DIUNIT(%Port)==>%Status

DOUNIT

Physical
Interface

Control

Controls the device connected to
a DO unit.

DOUNIT(%Port[,%Operation])==>%DOSwitch

HUMID

Physical

Interface
Control

Reads the current humidity

from a sensor unit.

HUMID(%Port)==>%Humidity

TEMP

Physical
Interface

Control

Reads the current
temperature from a sensor

unit.

TEMP(%Port)==>%Temp

SCRIPTCANCEL

Scripting

Obtains the system integer

file descriptor from a file
handle

SCRIPTCANCEL($ScriptName,$Class,$Name)