someone please tell me I am not crazy
[Deleted User]
Posts: 0
Hi all could someone look over this little bit of IR code i have issues where the port 8 lights up when the buttons are pressed but doesnt control the vcr in question .. and suggestions (buy the way this is just a code to try to get rid the issue..
PROGRAM_NAME='nigetry'
define_device
IR = 8
TP = 128
define_constant
play = 1
Stop = 2
Pause = 3
rew = 4
ffd = 5
rec = 7
define_variable
define_start
define_program
Push[tp,1] pulse [IR,play]
push[tp,2] pulse [IR,stop]
push[tp,3] pulse [IR,pause]
push[tp,4] pulse [IR, REW]
push[tp,5] pulse[IR,ffd]
PROGRAM_NAME='nigetry'
define_device
IR = 8
TP = 128
define_constant
play = 1
Stop = 2
Pause = 3
rew = 4
ffd = 5
rec = 7
define_variable
define_start
define_program
Push[tp,1] pulse [IR,play]
push[tp,2] pulse [IR,stop]
push[tp,3] pulse [IR,pause]
push[tp,4] pulse [IR, REW]
push[tp,5] pulse[IR,ffd]
0
Comments
Have you loaded an appropriate IR file into the device?
Harold
I'm assuming you are on an Axcent master. For Netlinx, you might have to change your device declaration to something like:
dvIR = 5001:8:0
or whatever as appropriate. In my case, I have an NI700 and
IR = 3
doesn't work but:
IR - 5001:3:0
does.
As I play moreI find the code works .. but only on odd numbered ports
I can download to 8 (doent work) 9,11,13 do work 10 12 14 16 cant download to
ever seen anything like that? any thoughts on a solve?
I've had dead IR ports before but never like that.
Try using the actuate function in IREdit.
Try dumping the same IR file which you have tested that works for the odd IR ports in the even IR ports. Also use an emitter which you have tested that works.
You are only crazy if the people in your head say you are
Oh, man, I'm in trouble.
Harold
Also make sure it is set to ir mode.
I got caught out by that once when using a second hand axcent.
send these commands to each ir port
SEND_COMMAND dvIR, 'SET MODE IR'
SEND_COMMAND dvIR, 'CARON'