Device Port Tracking
ondrovic
Junior Member
is there a way to track which port on a touch panel is being used? Say if port 4 on a touch panel is being used? ex: 10001:4:0
Comments
-
Are you trying to dertmine if a port has been defined for a particular TP or what port on a TP may have triggered the current event?
In either case you would need to use the embedded object.
If you're trying to determine if a port has been defined then you would need to use a DATA_EVENT handler since if a port is defined it will generate an online event during start up so you could use that event to set a flag in an array like this:DATA_EVENT[dvTPDevicePort]//IP or SERIAL COMMS { ONLINE: { nTP_PortsUsedArry[data.device.port] = 1 ; //other stuff ; } }
I don't now what you would do with this but I suppose it might have its uses.
To determine what port initiated an event you could something like this:BUTTON_EVENT[dvTPDevicePort,nBtnArry] { PUSH: { nCurrentTP_EventPort = button.input.device.port ; //stuff } }
For level events use "level.input.device.port" & channels events use "channel.device.port".
What are you trying to do? -
You can look at the online tree in Netlinx Studio and each port in use will show up under the device.is there a way to track which port on a touch panel is being used? Say if port 4 on a touch panel is being used? ex: 10001:4:0
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums
