Home AMX User Forum NetLinx Studio

Programme fail!

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!

Comments

  • mdonaldsonmdonaldson Posts: 11
    I don't mean for this to sound like a stupid question, but I see that Extron switch has a fixed and a variable line audio out... Are you plugged into the variable output?

    Also, are you getting any strings back in response to the volume command, any acknowledgements or errors?
  • DubbledexDubbledex Posts: 17
    haha! Yes I an plugged into the variable output. Although good thought, best to cover all bases. I think I may have had a return string. I can;t check just now, but will look tomorrow. I have a funny feeling it looked like an error string!

    Cheers,

    David
  • Duncan EllisDuncan Ellis Posts: 161
    if it goes between 0 and 1000 that cant be represented in two bytes? are you sure that the representation is correct.
  • PHSJasonPHSJason Posts: 66
    Dubbledex wrote: »
    SEND_STRING VIDMATRIX,"$1B,'D8',$2A,ITOA(VOL_LEVEL),'GPRM',$0D"

    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 177 (16:32:28):: String To [5001:3:38]-[$1BD8*-560GPRM$0D]

    Can anyone shed some light??


    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.
  • DubbledexDubbledex Posts: 17
    Well noticed! I have changed this and uploaded it..WIll post soon if it works!
  • DubbledexDubbledex Posts: 17
    And the lesson learned --- Always double check 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!
Sign In or Register to comment.