Programme fail!
Dubbledex
Posts: 17
I have been trying to get a netlinx to work with an Extron IN1606. It's fairly straightforward, but I am struggling with the volume control. I had to change integers to sintigers as the volume used to go 0-100 and now goes -1000 - 0.
I changed the feedback volume slider on the modero panel, and that seems to track, as does the mute button, which also kills the audio. I just can't get the sound to go up and down.
Here is the code I have put in:
BUTTON_EVENT[vPanelOne,1] (* Volume + *)
{HOLD[1,REPEAT]:
{IF(!VOL_MUTE)
{IF (VOL_LEVEL <0)
{VOL_LEVEL = VOL_LEVEL + 20
SEND_STRING VIDMATRIX,"$1B,'D8',$2A,ITOA(VOL_LEVEL),'GPRM',$0D" // Extron switcher vol to be tested
SEND_LEVEL vPanelOne,1,VOL_LEVEL}}}}
BUTTON_EVENT[vPanelOne,2] (* Volume - *)
{HOLD[1,REPEAT]:
{IF(!VOL_MUTE)
{IF (VOL_LEVEL >-1000)
{VOL_LEVEL = VOL_LEVEL - 20
SEND_STRING VIDMATRIX,"$1B,'D8',$2A,ITOA(VOL_LEVEL),'GPRM',$0D"
SEND_LEVEL vPanelOne,1,VOL_LEVEL}}}}
Here is what the extron guide says you should be putting in:
[Esc]D8*vvGRPM[CR] Where vv is the volume value
Here is what my notifications show:
Line 176 (16:32:28):: Input Status:Pushed [10001:1:38] - Channel 1
Line 177 (16:32:28):: String To [5001:3:38]-[$1BD8*-560GPRM$0D]
Line 178 (16:32:28):: Level Value To [10001:1:38] - Level 1 Value= -560
Line 179 (16:32:28):: String To [5001:3:38]-[$1BD8*-540GPRM$0D]
Line 180 (16:32:28):: Level Value To [10001:1:38] - Level 1 Value= -540
Line 181 (16:32:28):: String To [5001:1:38]-[$02$00$FE$03]
Can anyone shed some light??
Thanks!
I changed the feedback volume slider on the modero panel, and that seems to track, as does the mute button, which also kills the audio. I just can't get the sound to go up and down.
Here is the code I have put in:
BUTTON_EVENT[vPanelOne,1] (* Volume + *)
{HOLD[1,REPEAT]:
{IF(!VOL_MUTE)
{IF (VOL_LEVEL <0)
{VOL_LEVEL = VOL_LEVEL + 20
SEND_STRING VIDMATRIX,"$1B,'D8',$2A,ITOA(VOL_LEVEL),'GPRM',$0D" // Extron switcher vol to be tested
SEND_LEVEL vPanelOne,1,VOL_LEVEL}}}}
BUTTON_EVENT[vPanelOne,2] (* Volume - *)
{HOLD[1,REPEAT]:
{IF(!VOL_MUTE)
{IF (VOL_LEVEL >-1000)
{VOL_LEVEL = VOL_LEVEL - 20
SEND_STRING VIDMATRIX,"$1B,'D8',$2A,ITOA(VOL_LEVEL),'GPRM',$0D"
SEND_LEVEL vPanelOne,1,VOL_LEVEL}}}}
Here is what the extron guide says you should be putting in:
[Esc]D8*vvGRPM[CR] Where vv is the volume value
Here is what my notifications show:
Line 176 (16:32:28):: Input Status:Pushed [10001:1:38] - Channel 1
Line 177 (16:32:28):: String To [5001:3:38]-[$1BD8*-560GPRM$0D]
Line 178 (16:32:28):: Level Value To [10001:1:38] - Level 1 Value= -560
Line 179 (16:32:28):: String To [5001:3:38]-[$1BD8*-540GPRM$0D]
Line 180 (16:32:28):: Level Value To [10001:1:38] - Level 1 Value= -540
Line 181 (16:32:28):: String To [5001:1:38]-[$02$00$FE$03]
Can anyone shed some light??
Thanks!
0
Comments
Also, are you getting any strings back in response to the volume command, any acknowledgements or errors?
Cheers,
David
According to above, Extron is looking for a string of [Esc]D8*vvGRPM[CR] Where vv is the volume value.
You are sending a string of [Esc]D8*vvGPRM[CR].
transposed R and P.
It's either a tpye-o in your post, or, in your code.
So it was, not GPRM, but GRPM! Volume is going up and down, although if I hold my finger on the button, I dont get a volume change until I take my finger off. I'm pretty sure it didn't do that before, but I will check the output code tomorrow.
Thanks!