







![]() ![]() |
Beta Innovations USB SDK Wrapper Library for .NET/COM v2.0.0.0 reference library |
BIUSB..::.WriteLatchedOutput Method |
BIUSB Class See Also Send Feedback |
Writes contents of iDataBuffer to the port specified by inPort configured for latched output mode.
Namespace:
BIUSBWrapper
Assembly:
BIUSBWrapper (in BIUSBWrapper.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function WriteLatchedOutput ( _ ByRef iDeviceList As DeviceParam, _ inPort As Byte, _ iDataBuffer As Byte(), _ inLevel As Byte _ ) As Integer |
C# |
---|
public static int WriteLatchedOutput( ref DeviceParam iDeviceList, byte inPort, byte[] iDataBuffer, byte inLevel ) |
Parameters
- iDeviceList
- Type:
BIUSBWrapper..::.DeviceParam
%
A DeviceParam structure. Must contain valid device information returned from call to DetectHID.
- inPort
- Type: System..::.Byte
Zero based index of output Port to write to.
- iDataBuffer
- Type: array<
System..::.Byte
>[]()[]
64-byte array (64 outputs). Output state value 0 for OFF and 1 for ON.
- inLevel
- Type: System..::.Byte
Output level range from 0 to 10. This value sets the pulse width of the output, controlling the intensity if supported.
Return Value
0: If failure writing to device.>0: if success, returns number of bytes written to device.