Home AMX User Forum NetLinx Studio

Page Tracking

Is it possible to ask a touch panel what page it is on?

e.g.

Can I...
IF(dvTP is on page1)
{
        do this
}

Comments

  • a_riot42a_riot42 Posts: 1,624
    remeolb wrote: »
    Is it possible to ask a touch panel what page it is on?

    Turn page tracking on (TPAGEON) and it will send all page/popups executed back to the master.
    Paul
  • Does this work with current panels? I can't seem to get it to do anything with an NXD-500i.
  • You can turn page tracking on in the protected setup of the panel itself.
    If you're using the tpageon command, it should be in an online event. Make sure you're not sticking it in Define_Start or something like that.
    DATA_EVENT[dvTP]
    {
      ONLINE:
      {
    	 SEND_COMMAND DATA.DEVICE, 'TPAGEON'
      }
    }
    

    --John
  • DHawthorneDHawthorne Posts: 4,584
    You can't query after the fact, but the page tracking will let you know at the time the page actually changes. It only reports on port 1 though, no matter what port the page's buttons are assigned to. And yest, it works with all panels, old and new.
  • ericmedleyericmedley Posts: 4,177
    DHawthorne wrote: »
    You can't query after the fact, but the page tracking will let you know at the time the page actually changes. It only reports on port 1 though, no matter what port the page's buttons are assigned to. And yest, it works with all panels, old and new.

    The following statement is firmly in the realm of, "Why in the world would you want to do such a thing???"...

    but,

    I suppose one could telnet into the TP and get this kind of information fromt there.

    This kind of thing is why I run my interface from code. But, that horse has been beaten into hamburger already.
  • DHawthorneDHawthorne Posts: 4,584
    ericmedley wrote: »
    The following statement is firmly in the realm of, "Why in the world would you want to do such a thing???"...

    but,

    I suppose one could telnet into the TP and get this kind of information fromt there.

    This kind of thing is why I run my interface from code. But, that horse has been beaten into hamburger already.

    I don't believe the G4 telnet connection provides that kind of information. It's pretty limited.
  • ericmedleyericmedley Posts: 4,177
    DHawthorne wrote: »
    I don't believe the G4 telnet connection provides that kind of information. It's pretty limited.

    Your probably right. It's been a while since I telneted into a TP.
  • By simply turning the Page tracking ON (even if ON already), the panel will reply with the name of the current page, at the desired moment in your code.

    SEND_COMMAND dvTP, "'TPAGEON'"
    This, if the information is needed by all means...
  • Very helpful. Thanks guys!
  • Will the above command work for iPod touch/iPhone when using the tpcontrol app?
  • Joe HebertJoe Hebert Posts: 2,159
    Will the above command work for iPod touch/iPhone when using the tpcontrol app?
    It works on the iPad so I assume it will work for the iPod touch and iPhone.
  • Thank you for your speedy reply Joe.
Sign In or Register to comment.