DALI User Manual: Java Client

Examples

Ergo Tech Sample ADSample&Multi.frm

Please read the "Ergo Tech and DALI JAVA Quick Start Guide" provided by Diamond Systems first before continuing on.

This example will demonstrate how to deploy ADSample, Ping, and ADSampleMulti Ergo Tech VIB Beans

Design Window

In the Design Window there are 8 VIB Graphic Beans. Two are "Round Meters", two are "Seven Segment Display", three are "Label" and one is "Round Green Lamp Button". Of the above only the "Round Green Lamp Button" is part of the "Control" category while the rest are part of the "Basic" category.

Of the above, one round meter and one seven segment is used to display A/D Sample data from A/D channel 0. Another round meter and seven segment is used to display data of index 0 of A/D SampleMulti from A/D channel 1. The green lamp button served as LED for displaying result of Pinging the server. If the server is active the green lamp button would light up, otherwise it would be dim.

For more information about each VIB Graphic bean and their controls please refer to

Diagram Window

In the Diagram Window developers can see all VIB graphic beans that display plus the VIB DALI JAVA beans. Developers will have to change the properties of each DALI JAVA Bean for the sample to work. Some properties to change are the DALI Server URL, channel, range, etc.

One special icon in here to note is the "Array Element Filter". The array element filter gets the data at an index of an array. For example, an array of {1, 4, 6} passed through an array element filter with index 1 will return 4.

For more information about each Data sources, Diagram Windows, how to link, and Array Element Filter please refer to

Ergo Tech Sample ADScan.frm

Please read the "Ergo Tech and DALI JAVA Quick Start Guide" provided by Diamond Systems first before continuing on.

This example will demonstrate how to deploy ADScan Ergo Tech VIB Beans

Design Window

In the Design Window there are 9 VIB Graphic Beans. Three are "Round Meters", three are "Seven Segment Display" and three are "Label". All are part of the "Basic" category.

Each A/D channel's scanned data is displayed on one round meter and one seven segment display.

For more information about each VIB Graphic bean and their controls please refer to

Diagram Window

In the Diagram Window developers can see all VIB graphic beans that display plus the VIB DALI JAVA beans. Developers will have to change the properties of each DALI JAVA Bean for the sample to work. Some properties to change are the DALI Server URL, low and high channel, range, etc.

One special icon in here to note is the "Array Element Filter". The array element filter gets the data at an index of an array. For example, an array of {1, 4, 6} passed through an array element filter with index 1 will return 4.

For more information about each Data sources, Diagram Windows, how to link, and Array Element Filter please refer to

Ergo Tech Sample DAConvert.frm

Please read the "Ergo Tech and DALI JAVA Quick Start Guide" provided by Diamond Systems first before continuing on.

This example will demonstrate how to deploy DAConvert and DAReadBack Ergo Tech VIB Beans

Design Window

In the Design Window there are 14 VIB Graphic Beans. Three are "Knob", three are "Seven Segment Display", seven are "Label" and one is "Round Yellow Lamp Button". Of the above "Round Yellow Lamp Button" is part of the "Controls" category, "Knob" is part of the "Active Controls" category while the rest are part of the "Basic" category.

Of the above, each knob is paired up with one label and "linked" to a D/A convert bean. Each seven segment display is paired up with one label and "linked" to a D/A ReadBack bean. The yellow lamp button is paired up with a label and is used to indicate if D/A Convert to channel 0 is successful. If successful, the light will turn on, or else it will be off.

For more information about each VIB Graphic bean and their controls please refer to

Diagram Window

In the Diagram Window developers can see all VIB graphic beans that display plus the VIB DALI JAVA beans. Developers will have to change the properties of each DALI JAVA Bean for the sample to work. Some properties to change are the DALI Server URL, channel, etc.

One thing to note is that all DAReadBack bean in this diagram are linked "by" knobs. "By" means the knob inputs signal to the DAReadBack bean thereby triggering it. This means that DAReadBack bean will not perform a D/A Read Back until it is triggered, in this case until the knob's value changes. This is done by
1) Linking DAReadBack bean "by" knob
2) Setting the "Timebase" property of DAReadBack bean to 0.

For more information about each Data sources, Diagram Windows, how to link, and Array Element Filter please refer to

Ergo Tech Sample DIO.frm

Please read the "Ergo Tech and DALI JAVA Quick Start Guide" provided by Diamond Systems first before continuing on.

This example will demonstrate how to deploy DIOOutputByte, DIOInputByte, and DIOReadBackByte Ergo Tech VIB Beans

Design Window

In the Design Window there are 8 VIB Graphic Beans. Three are "Label", two are "Seven Segment Display", one is "Text Box", one is "Button", and one is "Round Yellow Lamp Button". Of the above "Round Yellow Lamp Button" is part of the "Controls" category, "Text Box" and "Button" are part of the "Active Controls" category while "Label" is part of the "Basic" category.

Of the above the text box is used to enter a DIO Output Byte to channel 0 value. One seven segment is used to display value of DIO Read Back Byte and another is used to display value of DIO Input Byte. The button is the trigger for DIO Input Byte. DIO Output Byte return value is sent to the yellow lamp button. If DIO Output Byte succeeded the lamp is turned on or else it is turned off

For more information about each VIB Graphic bean and their controls please refer to

Diagram Window

In the Diagram Window developers can see all VIB graphic beans that display plus the VIB DALI JAVA beans. Developers will have to change the properties of each DALI JAVA Bean for the sample to work. Some properties to change are the DALI Server URL, channel, etc.

One thing to note is that all DALI Java Beans in this diagram have "Time Base" of 0. They are all linked "by" other beans. In this case, linked "By" means the beans being linked are being triggered by input signals from other beans. Another words DIOOutpuByte bean will not perform a DIO Output Byte until it is triggered by the "Text Box", in this case if a change of value is inputted. This is done by

1) Linking DIOOutputByte bean "by" text box
2) Setting the "Time Base" property of DIOOutputByte bean to 0.

For more information about each Data sources, Diagram Windows, how to link, and other beans please refer to

Ergo Tech Sample ErrorMessage.frm

Please read the "Ergo Tech and DALI JAVA Quick Start Guide" provided by Diamond Systems first before continuing on.

This example will demonstrate how to obtain an error message if an error has occured. In this sample, the error is that the A/D Range is 12, while a valid A/D range is either 5 or 10

Design Window

In the Design Window there are 3 VIB Graphic Beans. This is "Label", "Seven Segment Display", and "Text Box".

Of the above the text box is used to print out the error message. Seven segment is used to display value of A/D Sample, and the label simply labes what the error is.

For more information about each VIB Graphic bean and their controls please refer to

Diagram Window

In the Diagram Window developers can see all VIB graphic beans that display plus the VIB DALI JAVA beans. Developers will have to change the properties of each DALI JAVA Bean for the sample to work.

For more information about each Data sources, Diagram Windows, how to link, and other beans please refer to