Button tracking
Thomas Hayes
Posts: 1,164
Hello all
I'm not sure if its the 22 hrs of jamming code or the case of coke I've emptied but I'm having trouble getting a TP button to follow the state of a variable. The varible is the result of pharsing a buffer from a DM84. The variable is switching to match the feedback from the DM84 (watching it in the debug window) but the button refuses to change states or will turn on once and stay there. I have something like this(I'll load the code later) but basically it is:
Send_string dvDM84,(request input # mute status)
find_string dvDM84_buffer(ok,1)
junk=remove_string(ok,1)
mute_status=(number left from junk, either a 0 or 1)
[VTP,212]=mute_status
I've tried to use 'if' statements to turn on or off based on the result of mute_status being 0 or 1 but it didn't want to work either, any idea's would be greatly appreciated. Night all.
I'm not sure if its the 22 hrs of jamming code or the case of coke I've emptied but I'm having trouble getting a TP button to follow the state of a variable. The varible is the result of pharsing a buffer from a DM84. The variable is switching to match the feedback from the DM84 (watching it in the debug window) but the button refuses to change states or will turn on once and stay there. I have something like this(I'll load the code later) but basically it is:
Send_string dvDM84,(request input # mute status)
find_string dvDM84_buffer(ok,1)
junk=remove_string(ok,1)
mute_status=(number left from junk, either a 0 or 1)
[VTP,212]=mute_status
I've tried to use 'if' statements to turn on or off based on the result of mute_status being 0 or 1 but it didn't want to work either, any idea's would be greatly appreciated. Night all.
0
Comments
Just a thought.
Jeff
does it actually change?
P.S. The debug showed the value changing with each push but the button didn't. Amazing how the simple things can stump you when your tired.
It took me few hours to figure it out and about another hour to stop myself from banging my head into the wall Glad you figured it out Thomas.
Jeff