Вы находитесь на странице: 1из 7

BUILDING A SIMPLE Px VIEW: PART 2

FROM NDIO CONTROL INTEGRATION


Where are we going? What to expect Widget properties B-formatting Binding properties Redefining an Ord Adding a binding to an object Adding display name labels Using hyperlinks

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Where Are We Going?


MOTION

OVERRIDE

SCHEDULE

LIGHTS

TRACKING
BRIGHTNESS

Build Build a a graphical graphical view view with with user user interface interface Build an occupancy schedule to control Build an occupancy schedule to control lights lights Create capability to to override override ALL ALL lights lights at at once once Create an an override override capability Add ability to track lighting burn time Add ability to track lighting burn time Detect Detect motion motion during during unoccupied unoccupied times times and and turn turn lights lights ON ON Detect Detect sunlight sunlight brightness brightness and and turn turn bank bank of of window window lights lights OFF OFF
NiagaraAX Technical Certification Program Tridium, Inc. Copyright 2009

Building Control Logic With Niagara


Nav file

ORD

Widgets (MWW)

5 5 4 4
CUSTOM CUSTOM NAVIGATION NAVIGATION SCHEME SCHEME

USERS

1 1
VOICE VOICE OF OF THE THE CUSTOMER CUSTOMER System reqts Values Goals

2 2
DESIGN DESIGN CONTROL CONTROL LOGIC LOGIC Nav Tree

3 3
CREATE CREATE Px Px (GRAPHICS) (GRAPHICS) VIEW VIEW Px Editor canvas Px file

7 7
SET SET UP UP SECURITY SECURITY & & USER USER ACCESS ACCESS

BIND BIND TO TO REAL-TIME REAL-TIME DATA DATA MWW

6 6
PERSONAL PERSONAL PALETTE PALETTE

Reuse work Categories & permissions

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

What to Expect
KNOW KNOW Describe Describe how how to to edit edit widget widget properties. properties. Explain Explain how how to to format format a a widgets widgets display display using using bFormatting. bFormatting. Describe to live live component component data data Describe the the process process for for binding binding a a widget widget to using the Make Widget Wizard . using the Make Widget Wizard. Recognize on the the Px Px Editor Editor Recognize various various methods methods of of creating creating a a hyperlink hyperlink on canvas pane. canvas pane. DO DO Redefine Redefine an an Ord Ord for for an an already already existing existing widget widget using using the the Component Component Chooser Chooser.. Display (DiscreteTotalizerExt) in in a a bound bound label. label. Display an an extension extension (DiscreteTotalizerExt) Display Display the the occupancy occupancy status status with with a a hyperlink hyperlink to to a a schedule. schedule. Create Create a a separate separate hyperlink hyperlink label label to to link link to to a a schedule. schedule.

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Widget Properties

Background Border Font Image Halign Text Text to icon alignment Visible

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Widget Properties:

B-Formatting

Animating the text property You can format the specific text you wish to see and the way you want it to animate.

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Widget Properties:

B-Formatting
Animation must be inside the % signs. Text outside the % signs will be static text. Text after the . must be lower case.
INSIDE THE % SIGNS
%.% %out.value% %out.status% %property.value% %property.value% Value + Status of the Out slot Value of the Out slot Status of the Out slot String 2 or more bformats together

OUTSIDE THE % SIGNS


Text = %out.value% %out.value% HRS Insert ANY text before/after % signs to provide a clean labeling function w/o using a separate display name label.

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Binding Properties
For any widget created by dragging an object from the Nav Tree onto the Px Editor canvas (using the Make Widget Wizard), there are a number of properties that define the binding:

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Binding Properties:

Redefining an Ord
Normally, the widget created using the Make Widget Wizard would be bound to the Ord automatically. You can change the Ord for any widget in one of 2 ways: In the Ord field at the top of the Make Widget Wizard By redirecting the Ord in the Binding properties (Ord field) of an existing widget:

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

Binding Properties:

Redefining an Ord > Pointing to an Extension


When pointing to an extension, you must bind the widget to the composited (exposed) slot for that extension.

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

10

Adding Display Name Labels

You can add a Display Name Label to widgets to support Bound Labels or Properties.

Wall Lights Window Lights

LIGHTS ON LIGHTS OFF

* ALTERNATIVE: Insert the text for the Display Name Label into the text property before the bFormatting (before the % sign).
NiagaraAX Technical Certification Program Tridium, Inc. Copyright 2009

11

Using Hyperlinks
You can add a hyperlink to a widget: Using the Make Widget Wizard:
In a Bound Label widget From Palette:
occupied widget (bajaui palette) hyperlink label (bajaui palette) hyperlink button (kitPx palette)

Directly from a palette:


Must manually configure the Ord and hyperlink properties

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

12

LAB #5: Burn Time Px


SCOPE: Add additional functionality (display Burn Time) from the previous lab to an existing Px view.
In this lab, you will: A. Edit an existing Px view B. Display Burn Time in a bound label C. Display occupancy status with a hyperlink to the lighting schedule D. Create a hyperlink label

15:00
NiagaraAX Technical Certification Program Tridium, Inc. Copyright 2009

13

Building Control Logic: Adding Functionality to NDIO Motion

NiagaraAX Technical Certification Program

Tridium, Inc. Copyright 2009

14

Вам также может понравиться