beautypg.com

B&B Electronics VFG3000 - Manual User Manual

Page 291

background image

F

UNCTION

R

EFERENCE

G

ET

U

P

D

OWN

D

ATA

(

DATA

,

LIMIT

)

R

EVISION

1

P

AGE

275

G

ET

U

P

D

OWN

D

ATA

(

DATA

,

LIMIT

)

A

RGUMENT

T

YPE

D

ESCRIPTION

data

int

A steadily increasing source value.

limit

int

The number of values to generate.

D

ESCRIPTION

This function takes a steadily increasing value and converts it to a value that oscillates
between 0 and

limit

–1. It is typically used within a demonstration database to generate

realistic looking animation, often by passing

DispCount

as the

data

parameter so that the

resulting value changes on each display update. If the

GetUpDownStep

function is called with

the same arguments, it will return a value indicating the direction of change of the data
returned by

GetUpDownData

.

F

UNCTION

T

YPE

This function is passive.

R

ETURN

T

YPE

int

.

E

XAMPLE

Data := GetUpDownData(DispCount, 100)