Function
Inputs multiple bits from digital input bits.
Format
ret = dncDaq01.DiInputMultiBit(DeviceNo, DiBit, DiBitNum, DiData)
Parameters
DeviceNo [ C#: short ] [ VB.NET: Short ]
Specifies the device No. managed by DncDaq.
DiBit [ C#: out short ] [ VB.NET: Short ]
Stores the logical input bit numbers into
an array, and specify the base address of this array.
The logical input bit number is a number, which is assigned from the first
input bit of a device as 0 to the last one consecutively.
DiBitNum [ C#: short ] [ VB.NET: Short ]
Specifies the number of bits which are specified by BitNo. The maximum number of bits is 256.
DiData [ C#: out byte ] [ VB.NET: Byte ]
Specifies the address of the variable that stores the input data.
Return value
Ret [ C#: int ] [ VB.NET: Integer ]
■Common
Value |
Description |
0 |
Normality completion |
500001 |
The method on an unconfigured device has been called. Check the device settings. |
500002 |
The method was called that the device does not support. |
510001 |
The input parameter is invalid. Check the parameter contents. |
■DIO Devices
Value |
Description |
10100 |
Invalid data buffer address. |
20102 |
The bit number exceeds the specifiable range. |
20103 |
Bit number beyond the limit. |
Other errors (see: Error code details)
Remarks
Inputs multiple bits from input bits. Before
this function is called, it is necessary that the logical bit numbers
to be input are set into the array specified by DiBit.
The input data are stored into the array named DiData by the order of logical
bits which are specified by DiBit.
Example
Inputs data from bit 0 and bit 1.
C# |
int Ret
|
VB.NET |
Dim Ret As Integer
|