783-SEND STRING 0 DIAGNOSTICS CAPABILITY MASTER TO MASTER
Technical Support Guide
Table of Contents
Brand:
- AMX
Models:
- Netlinx
Symptom:
Trying to get send string 0 diagnostics from a remote master that is connected master-to-master to their local master does not work.
Cause:
Send String 0 will only be seen in a local master's diagnostic messaging.
Resolution:
Create a virtual device in the remote system. Instead of send string 0 diagnostic messages, write them to the virtual device instead. On the local (master to master URL list connected) system, declare that virtual device. Create a data event, for that device on the local system. Under that event's string handler, write a send_string 0, “data.text “. This will send any info received from the virtual out to the local machine's diagnostics. If there are multiple remote systems, declare all the virtuals and preface the local send string 0 with a message showing which remote system the message came from.
Example Code:
PROGRAM_NAME='SEND STRING 0 TEST, SYSTEM 1'
(***********************************************************)
(* DEVICE NUMBER DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_DEVICE
TEST_TP = 10001:1:0 //JUST FOR TESTING
VIRTUAL = 33001:1:0 //VIRTUAL TO SEND DIAGNOSTIC STRINGS TO
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
BUTTON_EVENT[TEST_TP,1]
{
PUSH:
{
//USE THIS STRING WHERE YOU WOULD NORMALLY PLACE A //SEND_STRING 0
SEND_STRING VIRTUAL,'TEST STRING FROM SYSTEM 1'
}
}
(***********************************************************)
(* END OF PROGRAM *)
(* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
(***********************************************************)
PROGRAM_NAME='SEND STRING 0 TEST, SYSTEM 2
(***********************************************************)
(* DEVICE NUMBER DEFINITIONS GO BELOW *)
(***********************************************************)
DEFINE_DEVICE
VIRTUAL = 33001:1:1 // DECLARE THE VIRTUAL RESIDING ON THE OTHER MASTER
(***********************************************************)
(* THE EVENTS GO BELOW *)
(***********************************************************)
DEFINE_EVENT
//RECEIVE DATA FROM VIRTUAL ON OTHER MASTER AND SEND IT TO //LOCAL MASTER'S DIAGNOSTICS
DATA_EVENT[VIRTUAL]
{
STRING:
{
SEND_STRING 0,DATA.TEXT
}
}
(***********************************************************)
(* END OF PROGRAM *)
(* DO NOT PUT ANY CODE BELOW THIS COMMENT *)
(***********************************************************)Table of Contents