Phidgets - PhidgetIR

Navigation:  Widget Designer > Devices > Phidgets >

Phidgets - PhidgetIR

prev main next

Navigation:  Widget Designer > Devices > Phidgets >

Phidgets - PhidgetIR

prev main next

Please wait. Due to its content this page might take a while to load...

PhidgetIR - P/N 1055_0B (Image licensed by Phidgets under CC BY-NC-ND 3.0)

PhidgetIR - P/N 1055_0B
(Image licensed by Phidgets under CC BY-NC-ND 3.0)

The Phidgets IR device is capable of receiving as well as sending IR code, like for example emitted by remote controls.

It can be used to either program actions triggered by external IR signals, or to access functions of IR controllable devices such as projectors or BlueRay players.

Adding a New Phidgets IR

To add a Phidgets IR device, open the Devices menu and select Phidgets > PhidgetIR. This opens the Configuration dialog. Alternatively, you can add a new device in the Configuration dialog with the "+" button.

On the right side, you can name, dis-/enable the device or configure it as explained in the next paragraph.

The name is the unique identifier for this PhidgetIR object in WD and the general rules for naming objects apply here as well (only letters, numbers and underscore are allowed, the first symbol must be a letter).
If you like, you can change the default name to a more descriptive one. When scripting, enter the name to access available members as described further down.

The "Enable" check box is ticked per default. On the left side, you should see that the icon in front of your PhidgetIR is a filled blue circle. An empty blue circle indicates an enabled device which is not connected. An empty gray circle indicates a disabled device.

You can close the dialog at any time. The newly created device will also be added to the Devices menu > Phidgets > PhidgetIR and can be opened from here or with Devices menu > Configuration.

The Phidgets IR Settings

click to enlargeSelect the Serial number of the connected device from the drop-down.
If the correct serial does not show in the drop-down, make sure that the device is shown in the Phidget Control Panel.
To access devices connected via the Network Server feature, you need to add the respective Phidgets Server device first.
 
Press Apply to connect your device and open the IRCode Manager for reading and storing received IR signals.

The IRCode Manager

click to enlargeIf you have multiple IR devices set up, you can select your current device from the topmost drop-down.

As soon as a signal is received by the device, its IR code word and bit length are displayed in the Code section.
The Learn section displays the IR code, broken down by its components.
To make sure that the data of the latest code word is received completely, please make sure to send the signal continuously (e.g. by keeping the remote control button pressed) until the IR Codes of the Code and the Learn section match.

If you want to test the last received IR code, press the ReTransmit button to send it from the device's IR diodes.

The next step is to add the learned code to an IR Code Table.

Use the drop-down to select an existing code table or press the "+" button on the right side to create a new table.
If you want to delete the currently selected code table, press the "-" button, if you want to rename it, press the gear icon.

Pressing the "+" button below the drop-down will add the current code to the selected table.
You can assign a descriptive Alias to this code, like "Play" or "Shutter".
The Alias must abide by the general naming rules for objects (only letters, numbers and underscore are allowed, the first symbol must be a letter) and must be unique within this specific code table.

Remove learned codes from the table by pressing the "-" button to the left of the Alias.

Using the Device in Regular Scripting

After adding a PhidgetIR device, you can also use it via scripting which allows to perform actions on the device as well as retrieve information from it.

To send commands to the device, first create a CustomScript button or use the Macro editor or anything else with a scripting field. If you enter the device's identifier name into the script field (per default that is e.g. "Phidgets_PhidgetIR1"), Script Assist will offer you a list of all available members.

An important member of this device is the Send method, which is used to send a specific code from the device's IR diodes:
Phidgets_PhidgetIR1.Send("Phidgets_IRCodeTable1","Play",10)

For a list with all available members and commands with examples and descriptions, please refer to the chapter Phidgets IR Members.

Using the Device with Event Listeners

Event Listeners can be added to the Configuration dialog and provide a simple way of listening to triggers from connected devices.

Please see the chapter Event Listener for a detailed description of its functionality and the Phidgets IR Events chapter for a list (with examples and description) of the possible events raised by this device type.