## Phidget IR.lvlib:IRGetLastLearnedCode.vi

The last code the channel has learned.

- The code is represented by a hexadecimal string (array of bytes).
- The `codeInfo` structure holds data that describes the learned code.

Device Support:

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

| Device In Device # Identification

| 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.

| Device Out Same as Device In

| 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 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 out 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 out control on the front panel and select Explain Error or Explain Warning from the shortcut menu for more information about the error.

| Learned Code The last learned code

| Code Info 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]