AMX Widgets Notes and Messenger not working properly
John Paul
Posts: 143
Has anyone tried the AMX Widgets Notes and Messenger available here
http://www.amx.com/ui/browse.asp?uiType=Widgets&panelClass=&market=&resolution=&panelType=&aspectRatio=
The code and touch panel samples uses the port 1 for the address and channel port . Now i have modified the define device section for the port i wanted which was anything more than 1.
DEFINE_DEVICE
MessengerTP1 = 10002:2:1
MessengerTP2 = 10003:2:1
MessengerTP3 = 10006:2:1
MessengerTP4 = 10014:2:1
But if i change the port to anything other than 1 in the touch panel and the code , it will not work . Even though i checked the address port, channel port and the code based on the port no i have put.
I have attached the notifications tab when i run the messenger widget with a port of 2. The commands are going but the widget will not function. I have also attached my code and TPD4 file so that you can verify if i am coding and touch panel design is proper.
http://www.amx.com/ui/browse.asp?uiType=Widgets&panelClass=&market=&resolution=&panelType=&aspectRatio=
The code and touch panel samples uses the port 1 for the address and channel port . Now i have modified the define device section for the port i wanted which was anything more than 1.
DEFINE_DEVICE
MessengerTP1 = 10002:2:1
MessengerTP2 = 10003:2:1
MessengerTP3 = 10006:2:1
MessengerTP4 = 10014:2:1
But if i change the port to anything other than 1 in the touch panel and the code , it will not work . Even though i checked the address port, channel port and the code based on the port no i have put.
I have attached the notifications tab when i run the messenger widget with a port of 2. The commands are going but the widget will not function. I have also attached my code and TPD4 file so that you can verify if i am coding and touch panel design is proper.
0
Comments
The previous post was correct, the string events are received on port 1. If you change the device port number you will no longer receive the string events. There are only a handful of address and channel codes being used in the example files, if you are already using these codes in your project the easiest remedy would be to change these in the widget code and panel file.
I would change the button name on the text input button so that you know the string event is coming from the "notes" page.
--John
1. How can they hard-coded the module to port 1 since there is only a netlinx code and not a TKO file or anything .
2.How do i modify the messenger widget.
This widget doesn't have that so it doesn't apply.
You basically have to do what John G. said and create a TP device on port 1 to handle strings from the TPs and then forward those strings to your code for the widget. Usually you create a virtual for the widget to receive the string from the TP device created for port 1 data event string handler.
If you get confused just post again and some one will help out with more example if need be but the previous post by John G had the basic idea already coded.
Since the widget is not hardcoded to port 1 , why am i not able to change the port to another no and still receive the strings. Is it because i am using the setup port to receive the strings or using data.text, just curious thats all.
Regarding using a virtual , is it like creating a virtual and passing the strings on its command part of the data event and then doing the parsing.
I have a audio media server on port 1 and about 27 touch panels and it would have been so simple to just change the port in the code and do it.
It's really not that difficult.
Here's a thread with some info:
http://amxforums.com/showthread.php?t=5906