cpuxa.LearnIRStart

Purpose

This function is part of the cpuxa object.  When learning infrared from the CPU-XA unit, this will be called first.  This puts the CPU-XA into learn mode and it awaits an IR signal at its input window.  LearnIREnd should then be called to wait for the learn to complete.  When LearnIREnd returns, the signal has been learned.

Parameters

Parameter: location
Type: integer
Description: This is the location number in the CPU-XA where the IR signal will be stored.  Some units can hold 512 commands and others can hold 1024.  The first IR location is 0.

Returns

None.

Example

This example will learn an IR signal into location 0.

sub main()

' start the learn
cpuxa.LearnIRStart 0

' wait to complete
cpuxa.LearnIREnd

' signal to be learned should be generated at the units input window at this time

end sub