Occurs when a sensor port state changes.
>| Property Name | Type | Read/Write | Description |
| State | Boolean | Read Only | Gets the new state of the sensor. |
| ModuleID | Number | Read Only | Gets the module id that the sensor belongs to. |
| PortIndex | Number | Read Only | Gets the port index of the sensor (1-3). |
Instance Properties
| Property Name | Type | Read/Write | Description |
| Firmware | String | Read Only | Gets the firmware version. |
| OutputNames | Array of String elements | Array: Read Only Elements: Read Only | Gets an array of output/relay names. |
| OutputStates | Array of Boolean elements | Array: Read Only Elements: Read/Write | Gets an array output/relay states. |
| ModuleCount | Number | Read Only | Gets the # of modules. |
| OutputCount | Number | Read Only | Gets the # of output/relays. |
| SerialPortCount | Number | Read Only | Gets the # of serial ports. |
| IRPortCount | Number | Read Only | Gets the # of ir/sensor ports. |
| Connected | Boolean | Read Only | Gets a value indicating if a the driver is connected to the Global Cache hardware. |
Dynamic Instance Properties
During configuration infrared devices can be associated with the Global Caché GC-100. Each infrared device associated with the Global Caché Device can be referenced as a property and used to send IR code sequences. This is a
simpler alternative to using the Send..IR instance methods.
For example if you have assigned a Sony XB1 TV to the Global Caché device and named it "SonyTV", you can reference it as a property of the Global Caché device as follows:
gc100.SonyTV
Each IR Device also contains a method for each IR Code Sequence. So for example the "SonyTV" may contain "PowerOn" and "ChannelUp" IR Code sequences. To send IR code sequence for the "SonyTV" "PowerOn", run the following script:
gc100.SonyTV.PowerOn();
More Examples:
gc100.SonyTV.PowerOn();
gc100.SonyTV.ChannelUp();
gc100.SonyTV.Menu();
gc100.CDPlayer.PowerOn();
gc100.CDPlayer.Next();
Instance Methods
SendNativeIR(Number, String)
Sends a native Global Caché IR command to the Nth IR/Sensor port.
It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.Syntax:Parameters:irPortIndex: The index of th IR/Sensor port (base 1).
irCommandData: The IR command data to send. <frequency>,<count>,<offset>,<on1>,<off1>,<on2>,<off2>,...,onN,offN. (where N is less than 128 or a total of 256 numbers)
Example:
gc100.SendNativeIR(1, "...");
SendNativeIR(Number, Number, String)
Sends a native Global Caché IR command to the Nth IR/Sensor port.
It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.Syntax:Parameters:moduleID: The index of the moduleID.
moduleIRPortID: The index of th IR/Sensor port in the specified module. 1-N
irCommandData: The IR command data to send. <frequency>,<count>,<offset>,<on1>,<off1>,<on2>,<off2>,...,onN,offN. (where N is less than 128 or a total of 256 numbers)
Example:
gc100.SendNativeIR(1, 1, "...");
SendProntoIR(Number, String)
Sends a Pronto CCF IR code sequence to the Nth IR/Sensor port.
It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.Syntax:Parameters:irPortIndex: The index of th IR/Sensor port (base 1).
prontoCcfIRCodeSequence: The Pronto CCF IR code sequence to send. This should be in the format XXXX XXXX XXXX...
Example:
gc100.SendProntoIR(1, "...");
SendProntoIR(Number, Number, String)
Sends a Pronto CCF IR code sequence.
It is recommended that the Dynamic Instance Properties which take advantage of the IR Library be used to send infrared commands, as opposed to this function.Syntax:Parameters:moduleID: The index of the moduleID.
moduleIRPortID: The index of th IR/Sensor port in the specified module. 1-N
prontoCcfIRCodeSequence: The Pronto CCF IR code sequence to send. This should be in the format XXXX XXXX XXXX...
Example:
gc100.SendProntoIR(1, 1, "...");
SendRawCommand
Sends a command that may otherwise not be supported by the driver.
Syntax:Parameters:command: The command data to send (without the <cr> terminator.)
Example:
gc100.SendRawCommand("...");SendRawSerialCommand
Sends a command that may otherwise not be supported by the driver to a serial port on the GC-100.
Syntax:Parameters:command: The command data to send (without the <cr> terminator.)
serialPortIndex: The index of the serial port. Base 1 index.
Example:
gc100.SendRawSerialCommand("gv", 1); // get GR-IRE versionTurnOnOutput
Turns on an output/relay.
Syntax:Parameters:outputID: The ID of the output/relay to turn on.
Example:
gc100.TurnOnOutput(1);
TurnOffOutput
Turns off an output/relay.
Syntax:Parameters:outputID: The ID of the output/relay to turn off.
Example:
gc100.TurnOffOutput(1);
TurnOnBlink
Starts blinking the power LED. This is especially helpful in a rack mount situation where the installer may need to positively identify a particular GC-100.
Syntax:Example:
gc100.TurnOnBlink();
TurnOffBlink
Stops blinking the power LED.
Syntax:Example:
gc100.TurnOffBlink();