String Output port & Command port
ajish.raju
Posts: 185
I wanted to know what can these options in TPD4 used for. I know command port can send a command to the controller, but string output port used to send serial commands. What are the various applications for these ports, where have you used it in your projects
0
Comments
So for example let’s say you assign TVPRESET-123 as the string output for a preset button. When that preset button is pushed the STRING: handler inside the DATA_EVENT for that TP and port will trigger and DATA.TEXT will contain TVPRESET-123.
The same exact thing happens with a command output except that the COMMAND: handler inside the DATA_EVENT for that TP and port will trigger instead.
The string outputs and command outputs cannot be directed towards the master or a serial port or any other device other than the TP itself.
HTH
If you use a command output and direct it towards the loopback port then that command will get sent to the TP itself the same as if the command was sent from your Netlinx program.
So for example you can use the command output and loopback port for one button to change text on one or more buttons, hide or show buttons, change colors or issue any other send_command that you might normally send from your Netlinx program except that all the work happens right in the touch panel itself without the need for any interaction from your program.