NX seires controller quirks
bwestlake
Junior Member
I discovered a problem and a solution when using nested waits and IR pulses in the NX series controllers. This popped up when I made a Uverse "favorites" function. I would pulse, wait{, pulse, wait{, pulse, wait{, pulse}}} like I have been doing for many years but it wasn't working consistently. Watching the IR light on the master didn't help me diagnose the problem because it doesn't blink with the pulses. It just turns on and stays on until after the final pulse. I connected an emitter with a confirmation LED and noticed that the WAITS weren't working right. I would see bursts of 3 pulses then a delay or a delay, burst of 2 codes, long delay... no consistency. JZ, in tech support suggested that I try using the Send_Command "SP" and this finally solved the problem.
DEFINE_CALL 'FAVORITES2'
{
SEND_COMMAND dvIR1,"'SP',(F21)"
WAIT 6
{
SEND_COMMAND dvIR1,"'SP',(F22)"
WAIT 6
{
SEND_COMMAND dvIR1,"'SP',(F23)"
WAIT 6
{
SEND_COMMAND dvIR1,"'SP',(F24)"
}
}
}
}
DEFINE_CALL 'FAVORITES2'
{
SEND_COMMAND dvIR1,"'SP',(F21)"
WAIT 6
{
SEND_COMMAND dvIR1,"'SP',(F22)"
WAIT 6
{
SEND_COMMAND dvIR1,"'SP',(F23)"
WAIT 6
{
SEND_COMMAND dvIR1,"'SP',(F24)"
}
}
}
}
Comments
-
You could just use the XCH command to send channels:
http://www.amx.com/assets/AMX-PI2/amx-pi2.htm
You'll have to set the XCH Mode to the correct one for channel entry on your specific box:
http://www.amx.com/assets/AMX-PI2/IR_and_Serial_Send_Commands/XCHM.htm -
You should look at the CTON and CTOF commands so that you don't need waits to put between pulses. That method won't work if you are using a temporary variable, so its probably best to avoid it when possible.
Paul
Leave a Comment
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
