Home AMX User Forum AMX Design Tools

String Output and Command Output

When working with the design of touchpanels, under the Programming tab for the slected button, there are two boxes, one for String Output and one for Command Output. I looked it up in the Help file with TPD4 and it says, "Specify the output string (or command) sent to the master on button push." What the help file doesn't do is gave an example. What would be an example where this would be used? Could the commands or stirngs written in the code for the PUSH event go here?

Comments

  • ericmedleyericmedley Posts: 4,177
    Well, the string example could work something like...

    button string output set to 'he pushed the red one'

    So, in the program you could have a
    DATA_EVENT[dvTP_1]
    {
      STRING:
        {
        IF(find_string(DATA.TEXT,'he pushed the red one',1))
          {
          // Do Something
          }
        }
    }
    
    


    The same would be true for Command, but you'd have a COMMAND: section instead of a STRING section.. (there's a musical joke here that I'll just lightly step over and ignore...)
    :D

    hope that helps
    e
  • Another use

    You can also program a button to send a command to port 0 as an internal command to the panel. In most cases it will behave as if the send command came from the master.
Sign In or Register to comment.