Cannot set Units

Discuss issues and ideas you have to configuring displays with PowerVision
mbowdich
Posts: 209
Joined: Tue Oct 05, 2010 10:54 am

Cannot set Units

Post by mbowdich » Fri Jan 28, 2011 7:27 am

When setting units ("UserDefinedVariable.UnitGroup") in a custom configuration, the PV750 begins toggling between the new value and the startup value at about 2-4 Hz, and the PV750 stops responding to any button pushes. A power cycle is required to reset it.


I have tried directly changing the parameter "UserDefinedVariable.UnitGroup" directly (problem occurs instantly) and by using a temporary variable in the same fasion as the standard config. When using the temporary variable, I copied the state maching logic from the standard configuration which starts by doing a screen process then overwriting the "UserDefinedVariable.UnitGroup" with the temporary one. The result is the same.
jedwards
Enovation Controls Development
Enovation Controls Development
Posts: 16
Joined: Fri Jul 30, 2010 8:24 am

Re: Cannot set Units

Post by jedwards » Thu Feb 03, 2011 1:44 pm

Switching unit groups is one of the trickiest pieces of the system currently in the 2.1 release. We are working to make this much simpler with a future release. I've built a small configuration using the blank configuration to demonstrate switching unit groups. Please let us know if you are still having trouble after reviewing this configuration. The configuration is based on a 2.1 Blank Configuration for the PV750.

The main logic behind current unit switching is that the screen application restarts when units are switched. This causes issues with the double buffering and that is the 2-4 Hz flipping you are seeing. This is why currently when switching units, before the units switch you need to switch to a blank screen and get this blank screen redrawn a couple times so it is in both buffers. Then switch units, then tell the screen app to go to a view again (this is the crucial part). You must tell the screen to go to a view after the units have been switched and the screen app has come back up.
Attachments
Unit Switching Example.zip
(2.53 MiB) Downloaded 8 times