Knowledge Base

# 4D_WriteObj(ObjType, ObjIndex, Value) hash function

Sends the number Value to the nominated 4D object. Value is converted to the 16-bit integer data expected by ViSi-Genie, so possible values lie between 0 and 65,535.

ObjType is the 4D systems Object. These are defined in the ViSi-Genie reference manual. ObjIndex is the object number of that particular type.

Executing this hash function will always result in one YieldTask.

Example:

k4D_Led   EQU 14	;4D's LED object type
...
# 4D_ViSi  4D_WriteObj(k4D_Led, 6, 1)	;Turn on LED number 6
# 4D_ViSi  4D_WriteObj(k4D_Led, 3, 0)	;Turn off LED number 3