---
title: "GeneralIO"
canonical: "https://docs.cuesystem.com/space/CVCDD/439812136/GeneralIO"
format: markdown
---
> Macro (toc)

---

# Description

![image](media://bffb2ac1-86ab-45dd-b7e9-c4efa8f9e56c)

# Functions

## Close

This function closes the output pin to the ground by internal transistor.

#### Syntax

```visualbasic
Function Close ()
```

## ClosePulse

This function closes the output pin to the ground for the specified time pulsetime.

#### Syntax

```visualbasic
Function ClosePulse (pulsetime As Time)
```

## GetVoltage

This function returns current voltage of the input pin.

#### Syntax

```visualbasic
Function GetVoltage () As Double
```

## IsClosed

This function returns True, if the input pin is closed to the ground by internal transistor. It returns False if the internal transistor is opened.

#### Syntax

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

## IsPullupOn

This function returns True if the internal pullup is ON and it returns False if the pullup is OFF.

#### Syntax

```visualbasic
Function IsPullupOn () As Boolean
```

## Open

The function opens the internal transistor. It is inverse function to Close ().

#### Syntax

```visualbasic
Function Open ()
```

## PullupOff

This function switches the internal pullup OFF.

#### Syntax

```visualbasic
Function PullupOff ()
```

## PullupOn

This function switches the internal pullup ON.

#### Syntax

```visualbasic
Function PullupOn ()
```

## WaitWhileVoltageInRange

This function waits while a value on the channel lies within volts1 and volts2 levels and until the waittime elapsed. The function returns True if the channel value lies out of volts1 and volts2. It returns False when time elapsed or if an error occurs. A function GetLastError returns the error number.

#### Syntax

```visualbasic
Function WaitWhileVoltageInRange (volts1 As Double, volts2 As Double, Optional timeout As Time := _TIME_INFINITE) As Boolean
```

# Events

This driver has no events.