Home AMX User Forum NetLinx Studio

Control Given Back to Touchpanel?

When I took my AMX Programming classes a year or so ago, our instructor wanted us to code everything out, including touch panel functions like page flips and popups. I have been doing it that way every since I have been unleashed on the public. As I have gained more experience with TPD4, I have seen where the TP can do quite a bit of "thinking" on its own. Is it generally a good idea to let the TP do some of its own thinking or is it better to keep all of the control within the NetLinx?

Comments

  • ericmedleyericmedley Posts: 4,177
    When I took my AMX Programming classes a year or so ago, our instructor wanted us to code everything out, including touch panel functions like page flips and popups. I have been doing it that way every since I have been unleashed on the public. As I have gained more experience with TPD4, I have seen where the TP can do quite a bit of "thinking" on its own. Is it generally a good idea to let the TP do some of its own thinking or is it better to keep all of the control within the NetLinx?

    this is a much discussed and much cussed topic on the forum.

    I suggest you look at any one of the threads dealing with it.

    Here's one for example: http://www.amxforums.com/showthread.php?t=2830&

    Just search the forum for 'popups from program' and you'll find some discussins.
  • Wow. Thanks for the link. I guess that proves that I need to expand my Searches before starting a new thread. ;) In my particular case, with the exception of one, every job I have done only has one TP for one master. Technically, I think I can go either way. I am a selfish person though and I don't like to give up any of my control. Since I have been doing it since day 1, I will keep my control, I was just wondering what if. Besides, it does a body good to browse the PI's to learn new tricks I can make a TP do via the code... :cool:
  • ericmedleyericmedley Posts: 4,177
    Wow. Thanks for the link. I guess that proves that I need to expand my Searches before starting a new thread. ;) In my particular case, with the exception of one, every job I have done only has one TP for one master. Technically, I think I can go either way. I am a selfish person though and I don't like to give up any of my control. Since I have been doing it since day 1, I will keep my control, I was just wondering what if. Besides, it does a body good to browse the PI's to learn new tricks I can make a TP do via the code... :cool:

    I reread my post and one might assume I was being cranky with you. That was not the intent at all. I hope you didn't take it that way. It was not the intention.

    It's a common question and a good discussion. There are camps on this forum on the subject. There's the 'do it all in the code camp' The other end of the spectrum is the 'do it all in the panel' crowd. Most people seem to be somewhere in the middle leaning one way or the other. I'm definitely in the 'do it in the code' crowd but will on occasion put a few navigations in the TP. For me it tends to be 'are you sure?" type notices or quick 10-key entries.
  • ericmedley wrote: »
    I reread my post and one might assume I was being cranky with you. That was not the intent at all. I hope you didn't take it that way. It was not the intention.

    I did not take it that way at all. I have to agree with you. I am in the 'do it in the code' crowd too.
  • I have a perfect example of why everything should be done in code.

    My office is in Indianapolis. I'm working on a job in Montana. We have an "8 hour" service agreement which we obviously can't do thousands of miles away. If a panel goes bad, I need to get a replacement quick. So...

    The job has 8 rooms, all designed differently enough that each has it's own available sources. I have one touch panel file with multiple "headers". Depending on which master the panel connects to, the correct header pops up. With one loaner touch panel, the client just changes the master's IP address and, through the magic of code controlled touch panels, POOF... all of the correct sources show up, the name of the room populates, the conference phone number shows up...

    If you want to recreate a cussing panel for every cussing job you cussing do...keep on programming in your panels. :-)
  • GSLogicGSLogic Posts: 562
    The job has 8 rooms, all designed differently enough that each has it's own available sources. I have one touch panel file with multiple "headers". Depending on which master the panel connects to, the correct header pops up. With one loaner touch panel, the client just changes the master's IP address and, through the magic of code controlled touch panels, POOF... all of the correct sources show up, the name of the room populates, the conference phone number shows up...
    I use on touchpanel design for all my panels, they receive their info from a variable in a structure that can be changed by holding a button for 5 seconds. This will reconfigure the panel to the selected room. No need to change IP addresses and the user can have as many panels in a selected room as they wanted! I have this option for all wireless and R4 devices, you could also change the location of an inwall panel but that would be strange.
  • ericmedleyericmedley Posts: 4,177
    I have a perfect example of why everything should be done in code.

    My office is in Indianapolis. I'm working on a job in Montana. We have an "8 hour" service agreement which we obviously can't do thousands of miles away. If a panel goes bad, I need to get a replacement quick. So...

    The job has 8 rooms, all designed differently enough that each has it's own available sources. I have one touch panel file with multiple "headers". Depending on which master the panel connects to, the correct header pops up. With one loaner touch panel, the client just changes the master's IP address and, through the magic of code controlled touch panels, POOF... all of the correct sources show up, the name of the room populates, the conference phone number shows up...

    If you want to recreate a cussing panel for every cussing job you cussing do...keep on programming in your panels. :-)

    Ah, once more into the fray... :)

    I agree and that's also why I do 99.9% of my touch panel navigation from code.

    The trend I've seen on the board is that programmers who do larger, mult-panel systems tend to gravitate toward TP nav in code. People who do smaller, one or two panel systems seem to argue the opposite.

    For those of us who do the bigger systems, we'd drive ourselves nuts trying to manage all those panels. (particularly, if the client wanted to make a small change throughout the entier system.)
Sign In or Register to comment.