First Page

Discuss issues and ideas you have to configuring displays with PowerVision
janar
Posts: 3
Joined: Wed Feb 08, 2012 2:06 am

First Page

Post by janar » Wed Feb 10, 2016 2:04 am

Good Morning


I have a problem.
I have selected the page to be displayed as first after display restart.
From time to time i can see the screen starts with another page.
This happens randomly.


what may be the cause ?


Janar
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: First Page

Post by stalley » Wed Feb 10, 2016 8:51 am

Hello janar,

It really depends on how your configuration controls navigation between the pages, views and layers.

In Page Designer, find the page that starts randomly. Just above the outline of the display, you will see the binoculars, use that to search to find where it is referenced. This could lead you to see why it becomes the start page.

Search for the Screen.ScreenReady event, see if is used to control pages or page behavior.

In older configurations there was a script with an array of all of the possible pages. The script would save the "Current view". In the settings the user could select which pages would be shown.

With newer configurations there are other ways to navigate and control the pages.
Sara Talley
Software Engineer
Enovation Controls
janar
Posts: 3
Joined: Wed Feb 08, 2012 2:06 am

Re: First Page

Post by janar » Mon Feb 15, 2016 2:08 am

Thank you for your answer

I set the page as the first on the list and problem has disappeared.
I have another question.
Is it possible to get the state of two keys in the same time?

When the first key is pressed variable KeyManager.KeyState is equal 1 ,but pressing the next button does not change this variable.
How Can I get the condition : key1==true and key2==true? Is it possible?
stalley
Enovation Controls Development
Enovation Controls Development
Posts: 618
Joined: Tue Mar 18, 2014 12:57 pm

Re: First Page

Post by stalley » Mon Feb 15, 2016 4:49 pm

Hello janar,

The monochrome displays have the multi-key feature but the color displays don't. With the monochrome display configs, we've used a state machine with multi-key press and hold with some timers to do some additional contol in the MPC10 standard config.

I tried to use events on the Key Down of two buttons on a PV780. If I press on both buttons, only one event is fired. This is similar to your finding about the KeyState.

You could try to do something similar to the page views and button sequence to get to the Hidden menu on the Menu layer in the Murphy Standard Configurations for the PV450 and PV780 that come in PowerVision Configuration Studio.

Let me know what you come up with, others might want to do something similar. It could be possible a state machine and a sequence of button down events would work. I think some have used an event on the Key Up to make a sequence.
Sara Talley
Software Engineer
Enovation Controls