NAME

iosCreateObject - create objects

SYNOPSIS

iosCreateObject type ?-event eventlist? pv-name

DESCRIPTION

This command creates objects on the IOSYS-server. Type can be int, real, string or message. The name of the new object will be pv-name.
With the option -event you can specify, how your script will be notified, whenever changes in the value/structure/existance of the object occur. Eventlist defaults to no notifications at all.
For the valid options to event read about event processing.
Communiction to the server uses buffering, so you have to call iosFlush, if you want to see the command action immediately. Otherwise the buffer will only be flushed, if it is full.

Example:

iosCreateObject int my_new_int
iosCreateObject real -event {notify change} my_new_float
iosCreateObject string -event change my_new_string

The result is the object ID of the new point. If an error occured while creating the object, the object ID will be 0. The ID has to be kept, since all access to the new object is handled with this (unique) id.

KEYWORDS


Copyright © 1999 Gerhard Hintermayer.