Function
Inputs multiple bits from digital output bits.
Format
ret = dncDaq01.DoEchoBackMultiBit(DeviceNo, DoBit, DoBitNum, DoData)
Parameters
DeviceNo [ C#: short ] [ VB.NET: Short ]
Specifies the device No. managed by DncDaq.
DoBit [ C#: out short ] [ VB.NET: Short ]
Store the logical output bit numbers into an array, and specify the base address of this array.
DoBitNum [ C#: short ] [ VB.NET: Short ]
Specifies the number of bits which are specified by DoBit. The maximum number of bits is 256.
DoData [ C#: out byte ] [ VB.NET: Byte ]
Specifies the address of the variable to store the output data. The returned output data are either 0 or 1.
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 output bits. Before this function is called, it is necessary that the logical bit numbers to be input are set into the array specified by DoBit.
The data are stored into the array named
Data by the order of logical bits which are specified by DoBit. The returned
output data are either 0 or 1.
It is used to monitor the output contents.
Example
Inputs data from bit 0 and bit 1.
C# |
int Ret
|
VB.NET |
Dim Ret As Integer
|