Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
power sense prontoscript
This thread has 2 replies. Displaying all posts.
Post 1 made on Tuesday January 27, 2009 at 18:06
n2hifi
Long Time Member
Joined:
Posts:
August 2007
192
So I have this script that runs on multiple pages. I have it set to execute once on each page I have those widgets on. But, it is not consistently accurate.

//Set ps1 to power sense port 1
var ps1 = CF.extender[0].input[0];
//Set visibility status of recL to value of ps1
CF.widget("recL").visible = ps1.get();
//Set ps3 to power sense port 3
var ps3 = CF.extender[0].input[2];
//Set visibility status of recL to value of ps1
CF.widget("recB").visible = ps3.get();

Any suggestions?
Mark Olsen, CTS
Cannon Design
Post 2 made on Tuesday January 27, 2009 at 18:55
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
Mark,

Yes, isolate the error that is being thrown.

Put a try/catch around the get() functions and see if by chance you are receiving an error such as extender busy, etc... (You are if the visibility of "recB" is not as expected).

If extender is busy, an error will be thrown thus aborting any lines that follow. So, let's say that ps1.get() throws an error, the visibility of "recL" and "recB" will be true as this is the default when page is initialized PLUS the script aborted prior to setting visibility of either widget.

Note that this is a case where System.setDebugMask(9); (do a search please) and Barry's docking station mod for the 9600 would have helped tremendously to identify the problem, debug it, and fix it.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 3 made on Tuesday January 27, 2009 at 19:14
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,999
You can also try setting the repeat interval of the page to something like 1 second and see if the visibility finally changes correctly. Errors like this can happen if extender is not ready or more than 1 pronto is accessing single RFX9600.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse