Home AMX User Forum AMX Design Tools
Options

String Output port & Command port

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

Comments

  • Options
    Joe HebertJoe Hebert Posts: 2,159
    The string outputs and command outputs are both used to send messages to your Netlinx program by triggering the STRING: handler and COMMAND: handler inside the DATA_EVENT for that touch panel and port.

    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
  • Options
    Joe HebertJoe Hebert Posts: 2,159
    An addendum:

    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.
  • Options
    Thanks Joe
Sign In or Register to comment.