Simple IR Code
VladaPUB
Posts: 139
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, ?]
Somting like
dvIR = 32002:9:0
BUTTON_EVENT[dvPANEL,100]
PUSH :
on[dvIR, ?]
0
Comments
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]
Can I use something like
PULSE [32002:9:0, 1] ?
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
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
--John
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