Home AMX User Forum AMX Technical Discussion

BUTTON_EVENT / SEND_STRING stumper?

I have this code in a master controller.

BUTTON_EVENT[dvMastTP01,1201]{ // Projector Off
PUSH:{
CALL'mastTP01_Timer_Reset'
SEND_STRING 5001:1:mastTP01_System,"$02,$01,$00,$00,$00,$03"
}
}

"mastTP01_System" is set by pushing a button on the tp. Using the debugger I can confirm that the variable does change and is correct. I'm currently doing tests in three different rooms that all have the same setup and code. Room 325, 326 and 334.

Here are the notifications from the master controller when talking to room 325 (where it works)

Line 18 (10:43:40):: Input Status:Pushed [10001:1:77] - Channel 1201
Line 19 (10:43:40):: String To [5001:1:325]-[$02$01$00$00$00$03]
Line 20 (10:43:40):: Command To [10001:1:77]-[^TXT-1000,0,0:00]
Line 21 (10:43:40):: Input Status:Released [10001:1:77] - Channel 1201

and here the notifications from the master when talking to room 326 for the same command, same for 334.

Line 19 (10:44:46):: Input Status:Pushed [10001:1:77] - Channel 1201
Line 20 (10:44:46):: Command To [10001:1:77]-[^TXT-1000,0,0:00]
Line 21 (10:44:46):: Input Status:Released [10001:1:77] - Channel 1201

Other commands work on both "slaves" so I know they are all set up properly with URL list and system number. Example code that works on both...

BUTTON_EVENT[dvMastTP01,1044]{ // Screen 2 Stop
PUSH:{
CALL'mastTP01_Timer_Reset'
DO_PUSH(10001:1:mastTP01_System,146)
}
}

'mastTP01_Timer_Reset' just clears some variables use to keep track the time that has passed after any button push.

BTW, my master controller is arbitrarily 77


I cannot see why the code SEND_STRING 5001:1:mastTP01_System,"$02,$01,$00,$00,$00,$03" is being sent out to one and not the two others. One variable, confirmed to change, one button push command, two different results.

Am I missing something? Any ideas?

Thank you for your time,
Marc

Comments

  • DHawthorneDHawthorne Posts: 4,584
    Is the device set by that variable defined in the system that is sending the string? SEND_STRING won't go out to a device that isn't defined on the master sending it, even if it is a valid device in a multi-master system.
  • VMarcVMarc Posts: 10
    /lower head in shame

    That must be it. 325 was entered during testing but the others were not. The DO_PUSH seems to work so I never thought of it.

    No time to test today but must be it.

    tyvm
Sign In or Register to comment.