FillValue Method (DioBlock)

Applies To

All

Purpose

Fill the specified number of steps and channels with a specific value.

Syntax

Object.FillValue ([enumDioFillValueType], [dwValue], [vFirstStep], [dwSteps], [vFirstChannel], [vLastChannel])

 

The FillValue method syntax has the following parts:

Name
Type
Description
Object
DioBlock
DioBlock object
enDioFillValueType
enumDioFillValueType
Optional - Integer specifying the value type. Default is dioFillValueZero.
dwValue
DWORD
Optional - Value to insert. Default is 0.
vFirstStep
Variant
Optional - Starting step number in the block. Step number specified by either the step label or the step number. Default is the first step.
dwSteps
DWORD
Optional - Number of steps. Default is all steps
vFirstChannel
Variant
Optional - First channel number in the block. Channel number specified by either channel label or the channel number. Default is the first channel.
vLastChannel
Variant
Optional - Last channel number in the block. Channel number specified by either channel label or the channel number. Default is the last channel.

Where

enumDioFillValueType can be one of the following:

Name
Value
Description
dioFillValueZero
0
Fill value is Zero.
dioFillValueOne
1
Fill value is One.
dioFillValueIgnore
2
Fill with ignore.
dioFillValueInvert
3
All specified steps values will be inverted.
dioFillValueFirstStep
4
Fill value will be taken from the first step value
dioFillValueCheckerBoard
5
Fill value will alternate between 0xA to 0x 5 for each specified step.
dioFillValueByUser
6
Fill value is specified by the user.

 

See Also

FileFirstStep