hello, everyone,
I will lock the screen with only one display by variables or karel,
if anyone knows about controlling the number of display, thanks in advance
Chandler
hello, everyone,
I will lock the screen with only one display by variables or karel,
if anyone knows about controlling the number of display, thanks in advance
Chandler
In the variable $ UI_CONFIG. $ MODE, you can see the status of iPendant
3 = Single
5 = Dual
6 = Triple
But changing this variable will lead to nothing. It's just a poll.
To be able to change the number of screens from Karel, you need to study the instruction- iPendant customization (Generic Linking Detailed Information)
Example how to use from KAREL would be:
force_link(TP_PANEL, '/SOFTPART/GENLINK?CONFIG=DUAL')
Thank you so much, I will have a try
I'm too excited, because I did success in forcing the display-number of screen with the help of Mr. 'lexx905'
I share what I tested with everyone about the karel program as followings
PROGRAM force_screen
BEGIN
FORCE_LINK(TP_PANEL,'config=single') --single/double/triple means how many screens can be dispalyed
END force_screen
for more info.
FORCE_LINK(TP_PANEL,'Focus=prim') --prim/dual/triple means the current pane will be forced to the first or second/third pane
I hope I shared useful information
Thanks
-- Set pendant display to three screens:
-- program select, robot io and current position.
FORCE_LINK(TP_PANEL,'CONFIG=TRIPLE') -- Set to 3 screens
-- If currently not triple screen layout, give it time to load.
IF $UI_CONFIG.$MODE[1]<>6 THEN
DELAY 300
ENDIF
FORCE_LINK(TP_PANEL,'PRIM=MENUPAGE,71,1') -- Select program screen
FORCE_LINK(TP2_PANEL,'DUAL=IOPAGE,107,1,OUT,4') -- Robot output screen with no. 4 selected
FORCE_LINK(TP3_PANEL,'TRIPLE=MENUPAGE,33,1') -- Current robot position screen
FORCE_LINK(TP_PANEL,'FOCUS=PRIM') -- Set focus to left screen,
Hi everyone,
Thanks for "Force link" it's very useful.
I need to know the current screen on the differents panes.
I got it in karel with : Test2= $TP_CURSCRN[1].$SP_ID but it only work for the primary pane.
Do you known how get it for the second and the third pane ?
Thanks