Please note the obsolescence warning for the CPUXA object at this topic index page.
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.
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.
None.
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