Change Page when Simulation Starts

Discuss issues and ideas you have to configuring displays with PowerVision
vom1rhi
Posts: 14
Joined: Mon Oct 10, 2011 2:26 pm

Change Page when Simulation Starts

Post by vom1rhi » Mon Oct 17, 2011 8:56 am

Hi Everybody

I am programming a fwMurphy PV450-8key display, using version 2.2 and Windows Xp

I already spend a few hours on it but now I don't get any further so I ask u all for a little help

The status is:
I have a a simulation where a bar gauge is moving, related to a UserDefinedVariable.acc. I can also show the percentages on the display
I start with an initial screen and when I press the a button to start, I also want the backround screen to change. I tried a few ways, I would think, it would work, but it didn't

My final goal will be, that I start in the intial screen, when the simulation starts and the gauge is "starts filling", it should change into a certain page view, and when the gauge is full and starts to get "empty" it should change to another certain page and then get into a loop with loading and getting empty.
My example is only with one extra page, but if I know how to switch to on certain page, I will be able to copy that to a second one

I just used the programming so far, now scripting
I also added a few screens, if u all need a few more details, please let me know

Thanks

I have a password on the zip file, so in case u want to have a look at the screenshots, please ask me for the password
Attachments
vom1rhi.zip
(188.19 KiB) Downloaded 10 times
ksaenz
Enovation Controls Development
Enovation Controls Development
Posts: 263
Joined: Thu Aug 19, 2010 7:53 am

Re: Change Page when Simulation Starts

Post by ksaenz » Mon Oct 17, 2011 10:32 am

Hi vom1rhi,

I see that you are using the IF() function inside the Event Condition but that is not necessary, you can just type

Code: Select all

"UserDefinedVariable.Acc">145
The IF() function works like in Excel where it returns a one value if the expression is true and a different value if the expression is false. e.g.

Code: Select all

IF("UserDefinedVariable.Acc">145, 1, 0)
Also keep in mind is that you need to fire an event to evaluate the event condition, you can do that with the fire on change of the variable "UserDefinedVariable.Acc".

If the only diference between the two pages is an image you could also use a lamp gauge.

Let me know if you have more questions.

Regards,

ksaenz