---
title: "inputCUE-W"
canonical: "https://docs.cuesystem.com/space/CVCHELP/522682788/inputCUE-W"
format: markdown
---
> Macro (toc)

---

# Properties

The **Address** of the device, from 2 to 30, defaults to 2. 

# GetTemperatureCelsius

This function returns a temperature in degrees Celsius. 

#### Syntax 

```visualbasic
Function GetTemperatureCelsius() As Double
```

#### Return value 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the temperature. 

# GetTemperatureFahrenheit

This function returns a temperature in degrees Fahrenheit. 

#### Syntax 

```visualbasic
Function GetTemperatureFahrenheit() As Double
```

#### Return value 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the temperature. 

# SetLEDBrightness

The function sets a new brightness for all LEDs. 

#### Syntax 

```visualbasic
Function SetLEDBrightness(newbrightness As Double)
```

#### Parameters 

newbrightness 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the new brightness. The value is from 0.0 to 100.0. 

# IsClosed

This function returns true if the input is closed and false otherwise. 

#### Syntax 

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

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is true if the input is closed, false otherwise. 

# LEDBlink400msec

This function starts by blinking of button LED indicator on a control panel. The blink period is 0.4 sec. 

#### Syntax 

```visualbasic
Function LEDBlink400msec()
```

# LEDBlink800msec

This function starts by blinking of button LED indicator on a control panel. The blink period is 0.8 sec. 

#### Syntax 

```visualbasic
Function LEDBlink800msec()
```

# LEDBlink1600msec

This function starts by blinking of button LED indicator on a control panel. The blink period is 1.6 sec. 

#### Syntax 

```visualbasic
Function LEDBlink1600msec()
```

# LEDGroup

This function adds a button to a mutually exclusive group. That means only one indicator is active in the whole group. 

#### Syntax 

```visualbasic
Function LEDGroup(buttongroup As Byte)
```

#### Parameters 

buttongroup 

[<u>Byte</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Byte) It is the number of the group. 

# LEDOff

The function lights off a LED. 

#### Syntax 

```visualbasic
Function LEDOff()
```

# LEDOn

The function lights on a LED. 

#### Syntax 

```visualbasic
Function LEDOn()
```

# LEDUngroup

This command removes the button from all groups. 

#### Syntax 

```visualbasic
Function LEDUngroup()
```

# OnClose

This event is generated when input is closed. 

#### Syntax 

```visualbasic
Event OnClose As Process()
```

# WaitWhileClosed

This function waits while input is closed and the specified time has not expired. 

#### Syntax* *

```visualbasic
Function WaitWhileClosed(Optional timeout As Time := _TIME_INFINITE) As Boolean
```

#### Parameters 

timeout 

[<u>Time</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Time) Optional, defaults to _TIME_INFINITE. It is time to wait while the input is closed. 

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is true if the timeout was not expired when the input was opened. It is false if the timeout expired and the input was still closed.