---
title: "DIContactClosure, DIOContactClosure, GIOContactClosure, UniversalContactClosure, VersatileContactClosure"
canonical: "https://docs.cuesystem.com/space/CVCDD/439222304/DIContactClosure%2C%20DIOContactClosure%2C%20GIOContactClosure%2C%20UniversalContactClosure%2C%20VersatileContactClosure"
format: markdown
---
> Macro (toc)

---

# Description

This driver raises events each time the voltage crosses the threshold voltage (2 V) on DigitalIO channel. This events are function type with public scope to ensure that all events are already raised.

![image](media://19b2b12f-99b0-484b-b141-0e979a3845be)

# Properties

Following property is used in GIOContactClosure only. Versatile driver uses threshold voltage 6V, rest of drivers use fix threshold voltage 2 V.

|  |  |  |  |  |
| --- | --- | --- | --- | --- |
| Property Name | Data Type | Allowed Values | Default Value | Description |
| Behavior |
| ThresholdVoltage | Double | Should be in appropriate GIO port input voltage range. | 2.0 | Period of generating events while button is pushed |

# Functions

## IsClosed

This function returns True, if the input voltage is lower than threshold voltage. It returns False if the input voltage is higher than threshold voltage.

#### Syntax

```visualbasic
Function IsClosed () As Boolean
```

# Events

## OnChange As Function

This event is raised if input voltage crosses the threshold voltage. Parameter isclosed returns True if the input voltage after change is lower than threshold voltage. It returns False if the input voltage after change is higher than threshold voltage.

#### Syntax

```visualbasic
Event OnChange As Function (isclosed As Boolean)
```

## OnStart As Function

This event is raised approx. 0.5 s after Autoexec process is started. Parameter isclosed returns True if the input voltage is lower than threshold voltage. It returns False if the input voltage is higher than threshold voltage. This event allows to get initial state of the contact.

#### Syntax

```visualbasic
Event OnStart As Function (isclosed As Boolean)
```