Welcome Guest Search | Active Topics |

Tag as favorite
Programming Examples
Phil_Mart Offline
#1 Posted : Monday, September 26, 2011 9:59:08 AM
Rank: Newbie

Medals:

Groups: Registered
Joined: 9/26/2011
Posts: 1

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

Just getting to grips with Whzan and the M3 interface, so far so good in that I've got the demo to work ThumpUp

Now I'm just starting to build a plant (AHU System) control interface and have a couple of questions about setting up a slider with numbers on it (20 - 40) and how to display it, I can figure the +/- buttons for it. The other one is I need to set up a couple opositiontion switches, Off / Auto / On. Are there any demo's of this available or can you help?

Phil Martin.
ben Offline
#2 Posted : Wednesday, September 28, 2011 5:02:48 AM

Rank: Administration

Medals: whzan team: whzan team

Groups: Administrators, Registered
Joined: 4/1/2010
Posts: 9

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi Phil,

We haven't got a video demo specifically of this, but it's not too difficult to do. Have a look in the widget browser in the gauges, switches and sliders category. These are very similar but with one important difference - gauges and switches only display values, whereas sliders also allow you to set values by clicking and dragging on them.

To use a gauge or switch:

Select the gauge from the widget browser, add it to the page and select it to view its properties.
Set the minimum and maximum properties to the limits for the gauge (in your case 20 and 40.)
Click the bind button next to the value field and choose direct binding, then enter the name of your datapoint in the expression editor. This will bind the displayed value to your datapoint.

Sliders are used in exactly the same way, except that you choose a datapoint to display and set, instead of entering a value to display.

For a 3-state switch you can use the same trick - set the minimum and maximum values on the switch to 0 and 2, then either have three buttons that set the value of the datapoint to 0, 1 and 2, or use a script on the click event for the switch to toggle between them.

I've prepared a quick demo mimic which you can view here:
https://www.whzan.com/viewer.aspx?MimicID=1010

or edit here to get an idea of how it works:
https://www.whzan.com/Editor.aspx?ReadOnlyView=1010

Please let me know if there's anything else I can do to help,

Ben.
What are we gonna do tonight Brain? The same thing we do every night Pinky, tonight we are going to take over the world! Mwahahahaha!
Users browsing this topic
Guest
Tag as favorite
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF 1.9.4 RC1 | YAF © 2003-2009, Yet Another Forum.NET
This page was generated in 0.200 seconds.