Home AMX User Forum NetLinx Studio
Options

Getting Started 5 IR Devices

I am getting back into the programming arena, I have a set up were I need to control 5 IR devices. I was hoping someone could point me in the right direction. It would really help if I could get a nice sample code that has one or two IR devices. Anything would be helpful.

Comments

  • Options
    ericmedleyericmedley Posts: 4,177
    Hello,
    Welcome to the forum. Just so you know, this is not the kind of place where you come to get sample/free code. We are a community of programmers who earn our living doing this stuff. We do, however, love to help each other. If you have some code written and need help please post it and we will look it over and offer suggestions.

    If you need to brush up or learn Netlinx programming call you AMX rep or AMX University and take Programmer 1 class. That will get you started up on the right foot.

    And once again... Welcome.
    E
  • Options
    champchamp Posts: 261
    Here's how I like to control an IR device using minimal code.
    Let the button number on the touch panel determine what the button does.
    DEFINE_DEVICE
    dvIR_DVD = 5001:9:0    // IR port 1 on a NI-3100
    dvTP_DVD = 10001:9:0 // All DVD IR buttons are set to port 9 on the touch panel 
    DEFINE_EVENT
    BUTTON_EVENT[dvTP_DVD,0]{
    	PUSH: TO[dvIR_DVD , BUTTON.DEVICE.CHANNEL] // Any button on the touch panel channel port 9 will trigger an IR on the same channel.
    // IE: following SNAPI button 1 is PLAY, 3 is STOP, 9 is POWER etc
    
  • Options
    thank you for the sample

    Very helpful
Sign In or Register to comment.