Programming Examples

Creating a pulse of less than 1 second using a push button

Use case

At the first push of a button a lamp is activated. 0.4 seconds after the second push the lamp is deactivated. In this example a lamp is used, but you can also use another device.


Procedure

Creating the control and device
  1. Create a six-fold push button with LEDs (PB1).

  2. Create a lamp (LAMP1).


https://s3-eu-west-1.amazonaws.com/guideimages/Screenshots/V2.9/EN/SPE_009_213_01.png

Creating the routine

Create a Custom routine (ROUT1). Use the following behaviour:

  • Control that initiates the routine: button 1 of the push button (PB1).

  • Devices that are part of the routine: LAMP1  Start behaviour: LAMP1: Value = on, Delay = 0 s LAMP1: Value = off, Delay = 0.4 s Stop behaviour:  LAMP1: Value = on, Delay = 0 s LAMP1: Value = off, Delay = 0.4 s

https://s3-eu-west-1.amazonaws.com/guideimages/Screenshots/V2.9/EN/SPE_009_213_02.png

Filling the cabinet and addressing the device

Fill the cabinet with ...

and address the following device ...

a switching module (3x) 2U (

MOD1

)

the lamp LAMP1.



Example

Click here to download the programming example (nhc2 file).