Home AMX User Forum NetLinx Studio

Simple IR Code

Can someone send me a simple code to control volume (up/down) on dv player trought IR ? NetLInx NI4000

Somting like

dvIR = 32002:9:0

BUTTON_EVENT[dvPANEL,100]
PUSH :
on[dvIR, ?]

Comments

  • Try This:

    Define_device

    dvdplayer= 5001:9:0
    panel =10001:1:0


    Define_event

    Button_event[panel,100]
    {
    push:
    {
    to[dvdplayer,channel]
    }
    }



    Or in the main program
    push[panel,100] to[dvdplayer,channel]
  • VladaPUBVladaPUB Posts: 139
    i understand that, but where to put no of chanel (24 for vol up, 25 for vol down) ? And what is the form channel -24 or something else ?

    Can I use something like

    PULSE [32002:9:0, 1] ?
  • Define_device

    dvdplayer= 5001:9:0
    panel =10001:1:0

    define_constant

    vol_up=24
    vol_dwn=25



    Define_event

    Button_event[panel,100]
    {
    push:
    {
    to[dvdplayer,vol_up]
    }
    }

    Button_event[panel,101]
    {
    push:
    {
    to[dvdplayer,vol_dwn]
    }
    }

    The channels for ir are in the IR file. So check out with IR edit on what channel number what fucntion is.
    Hope this makes thing more clear
  • VladaPUBVladaPUB Posts: 139
    Is there any ir library that i can use ?
  • Ir files are different for different manufactures and devices.
    Check out the AMX inconcert library for the ir file you need or search the IR files inside IRedit.
    If the device you're looking for isn't there (some devices from the same manufacturer use the same codes) then you could try to do a post in this forum for the device or capture the ir code from the device remote control with the IRIS (AMX partno FG5448).
    If you're new to AMX i think it's a good idea to download the netlinx programming language from tech docs the get more info about using the language and other stuff.
    Good luck
  • While you're in Netlinx Studio 2, you can also click on 'tools' -> 'find IRL/IRV files'. When you do your search the results will pop up in the "find IRL/IRV files" window at the bottom of Studio. You can click on the device you're looking for if it's listed and that will pop up IREDIT.

    --John
  • TO or PULSE

    Also,
    Leo posted the command "TO" -- TO[dvDVD,Vol_Up]
    Not sure if you're familiar with the differences, but "TO" keeps sending the IR pulse while the event is occurring i.e. while the button is being pressed on the TP. This is good for channel up/down, fwd/rev searches, vol up/down, etc..., where the user would hold the button down until they get to where they want to be.

    The "PULSE" command -- PULSE[dvDVD,Vol_Up] would send the IR pulse one time and the user would have to release and press the button on the TP again in order to fire off another IR pulse. This would be good for most other commands like play, stop, pause, etc...

    --John
Sign In or Register to comment.