Changing Port numbers in TPD4
[Deleted User]
Posts: 0
Reposted here. Thanks and credit to Hedberg.
Hedberg wrote:As for fixing your address port thing, TPD4 has a very powerful replace feature which makes this a 20 second problem.
1. copy your template project into one you won't miss if it gets fouled and open in TPD4
2. Menu: Edit -- Item: find&replace.
3. in left colomn, check "address port" and enter the port number you want to overwrite; i.e. '1'
4. in the right column, check "address port" and enter the new address port number; e.g.20.
5. make sure "search scope" is the entire panel (or current page if that's what you want).
6. Click "replace all" or "find next" if you want to approve each overwrite.
7. Have a beer.
That's it.
I can't recall which on-line training session it was -- probably the one about modules -- but Paul Bohnsack pointed out this feature during the session. Made the session more than worthwhile -- much more.
0
Comments
Here's a related trick that I came up with. Let's say you have 40-50 buttons for favorites (TV, Radio, whatever) and you're looking to minimize your code writing. Pick a port you're not using for anything else, say, 3.
Using the above mentioned trick, change the channel port of all your favorite buttons to that number.
Then for each button, change the channel code for each favorite button to the channel that favorite is (hopefully you don't have any dashes or dots or you'll need to adjust the technique a little). For instance a button that says Ethel (XM Radio station) would now have Channel Port 3 and Channel Code 47.
Now for the fun part. In your code create a new device like this: And in your define_event section:
In this example; Do you need to map the panel to both the dvTP and the dvTP_xmFAV?.
Mapping is just a map of what files go where and most of the time you only want to send one file, a new TP file to a particular panel, a new IR file to a particular port or the a new program to the master.
I understand. Thanks.
Well, I *did* come up with it myself, so I'm laying claim to this method until someone comes along who claims to have done it first. In which case we'll take it to small claims court