---
title: "keypadCUE-1G, -2G, -3G"
canonical: "https://docs.cuesystem.com/space/CVCHELP/522682797/keypadCUE-1G%2C%20-2G%2C%20-3G"
format: markdown
---
> Macro (toc)

---

# Properties

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

# SetScale

This function sets minimum and maximum values of a bargraph. 

#### Syntax 

```visualbasic
Function SetScale( 
  newminimum As Double, 
  newmaximum As Double)
```

#### Parameters 

newminimum 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the new minimum value of the bargraph. 

newmaximum 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the new maximum value of the bargraph. 

# SetValue

This function sets a bargraph to a new value. The bargraph is set if the newvalue is within limits newminimum and newmaximum (see SetScale). The function returns true, then. If the newvalue is out of range, newminimum and newmaximum, the bargraph is not changed, and the function returns false. 

#### Syntax 

```visualbasic
Function SetValue(newvalue As Double) As Boolean
```

#### Parameters 

newvalue 

[<u>Double</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Double) It is the new value to set the bargraph. 

#### Return value 

[<u>Boolean</u>](/wiki/spaces/CVCHELP/pages/495058958/Data+types#Boolean) It is true if the newvalue is within limits newminimum and newmaximum (see SetScale), false otherwise. 

# IsPressed

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

#### Syntax 

```visualbasic
Function IsPressed() As Boolean
```

#### Return value 

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

# LEDBlink400msec

This function starts 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()
```

# OnPush

This event is generated when a button is pushed. 

#### Syntax 

```visualbasic
Event OnPush As Process()
```

# WaitWhilePressed

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

#### Syntax 

```visualbasic
Function WaitWhilePressed(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 pressed. 

#### 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 released. It is false if the timeout expired and the input was still pressed.