## Phidget IR.lvlib:IR_LearnEventExe.vi

This event fires when a button has been held down long enough for the channel to have learned the CodeInfo values

- A code is usually learned after 1 second, or after 4 repeats.

Device Support:

1055_0 (ver: 100, 101) IR Receiver Transmitter : Supported

| error in (no error) error in can accept error information wired from VIs previously called.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source describes the origin of the error or warning. Right-click the error in control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Devices In A list of devices registered for the same type of event

| Device In Device # Identification

| Event Registration Refnum In Event # Identification

| error out error out passes error or warning information out of a VI to be used by other VIs.

| status status is TRUE (X) if an error occurred or FALSE (checkmark) to indicate a warning or that no error occurred. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| code code is the error or warning code. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| source source string describes the origin of the error or warning. Right-click the error out indicator on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Event? Returns TRUE if the event has executed, or FALSE otherwise.

| Devices Out Same as Devices In

| Device Out Same as Device In

| Index The index of the device that triggered the event within the Devices In array.

| phid Device # Identification of the device that triggered the event.

| Code The code string

| Event Registration Refnum Out Same as Event Registration Refnum In

| codeInfo Contains the data for characterizing the code.

| bitCount Number of bits in the code

| encoding Encoding technique used to encode the data
Enumeration Values
Name | Value | Supported Devices
--- | --- | ---
1055_0 v100 v101
IR_ENCODING_UNKNOWN | 1 | ✓
IR_ENCODING_SPACE | 2 | ✓
IR_ENCODING_PULSE | 3 | ✓
IR_ENCODING_BIPHASE | 4 | ✓
IR_ENCODING_RC5 | 5 | ✓
IR_ENCODING_RC6 | 6 | ✓

| length Constant or Variable length encoding
Enumeration Values
Name | Value | Supported Devices
--- | --- | ---
1055_0 v100 v101
IR_LENGTH_UNKNOWN | 1 | ✓
IR_LENGTH_CONSTANT | 2 | ✓
IR_LENGTH_VARIABLE | 3 | ✓

| gap Gap time in microseconds

| trail Trail time in microseconds. Can be zero for no trail

| header[0] Header pulse and space. Can be zero for no header

| header[1]

| one[0] Pulse and Space times to represent a '1' bit, in microseconds

| one[1]

| zero[0] Pulse and Space times to represent a '0' bit, in microseconds

| zero[1]

| repeat[0] A series or pulse and space times to represent the repeat code. Start and end with pulses and null terminate. Set to 0 for none.

| repeat[1]

| repeat[2]

| repeat[3]

| repeat[4]

| repeat[5]

| repeat[6]

| repeat[7]

| repeat[8]

| repeat[9]

| repeat[10]

| repeat[11]

| repeat[12]

| repeat[13]

| repeat[14]

| repeat[15]

| repeat[16]

| repeat[17]

| repeat[18]

| repeat[19]

| repeat[20]

| repeat[21]

| repeat[22]

| repeat[23]

| repeat[24]

| repeat[25]

| minRepeat Minium number of times to repeat a code on transmit

| dutyCycle Duty Cycle in percent (0.1-0.5). Defaults to 0.33

| carrierFrequency Carrier frequency in Hz - defaults to 38kHz

| toggleMask[0] Bit toggles, which are applied to the code after each transmit

| toggleMask[1]

| toggleMask[2]

| toggleMask[3]

| toggleMask[4]

| toggleMask[5]

| toggleMask[6]

| toggleMask[7]

| toggleMask[8]

| toggleMask[9]

| toggleMask[10]

| toggleMask[11]

| toggleMask[12]

| toggleMask[13]

| toggleMask[14]

| toggleMask[15]

| toggleMask[16]

| toggleMask[17]

| toggleMask[18]

| toggleMask[19]

| toggleMask[20]

| toggleMask[21]

| toggleMask[22]

| toggleMask[23]

| toggleMask[24]

| toggleMask[25]

| toggleMask[26]

| toggleMask[27]

| toggleMask[28]

| toggleMask[29]

| toggleMask[30]

| toggleMask[31]

| toggleMask[32]