EXB-IRS4 using SET INPUT LINK
RicardoSiqueira
Posts: 373
I am using a cable box, which only has a toggle power out of port 2 of the EXB-IRS4 and linking it to I/O 2 on the same box by using the SET INPUT LINK. The I/O 2 is sensing an external relay connected to the cable box power outlet. So when the cable box goes on, it turns the relay on and I/O 2 on the EXB-IRS4 lights on. I am using PON and POF to trigger the cable box on or off. It works fine on the PON, but on the POF, the cable box goes off properly, but the EXB-IRS4 keeps pulsing IR out of port 2 what turns the cable box on and off all the time. Any ideas on how to stop the IR pulsing after the POF command. On a regular Ni Master I do a conditional, but on the EXB-IRS4 I am using the PON & POF. Here is my code:
DEFINE_DEVICE dvCABLE_Playroom = 6004:2:0 // SA Cable Box Explorer 8300 HDC DEFINE_EVENT //initialize IR port and link I/O DATA_EVENT[dvCABLE_Playroom] { ONLINE: //IR device comes ONLINE { SEND_COMMAND dvCABLE_Playroom,'SET MODE IR' SEND_COMMAND dvCABLE_Playroom,'CARON' SEND_COMMAND dvCABLE_Playroom,"'CTON',3" SEND_COMMAND dvCABLE_Playroom,"'CTOF',3" SEND_COMMAND dvCABLE_Playroom,'XCHM-0' SEND_COMMAND dvCABLE_Playroom,'SET INPUT LINK' } } On my macros I am using these commands: SEND_COMMAND dvCABLE_Playroom,"'PON'" //Turns on cable box based on status of I/O SEND_COMMAND dvCABLE_Playroom,"'POF'" //Turns off cable box based on status of I/O //On a regular NI Master IF(![dvIONI3100,2]) { SEND_COMMAND dvCABLE_MasterBed,"'SP',9" //Cable Power }
0
Comments
You can do the same with the EXB-IRS4 by monitoring channel 255 for each port.
Thanks!