Function
Inputs a bit for the status of an digital output bit.
Format
Ret = dncDaq01.DoEchoBackBit(DeviceNo, DoBit, DiData)
Parameters
DeviceNo [ C#: short ] [ VB.NET: Short ]
Specifies the device No. managed by DncDaq.
DoBit [ C#: short ] [ VB.NET: Short ]
Specifies the logical output bit number.
The logical output bit number is a number, which is assigned consecutively
from the first output bit of a device as 0 to the last one.
DoData [ C#: out byte ] [ VB.NET: Byte ]
Specifies the address of the variable to store the output datum. The returned output datum is 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. |
Other errors (see: Error code details)
Remarks
Inputs 1 bit for the status of output bits.
The returned output data is either 0 or 1.
It is used to monitor the output contents.
Example
Inputs data from bit 0.
C# |
int Ret;
|
VB.NET |
Dim Ret As Integer
|