Write7Segment Method

Beta Innovations USB SDK .NET/COM

Writes contents of iData to a single 7-segment display on the device specified by iDeviceList. This function can be used on modules supporting a 7-segment display and a single indicator output typically used for a shift light.

Namespace:  BIUSBWrapper
Assembly:  BIUSBWrapper (in BIUSBWrapper.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function Write7Segment ( _
	ByRef iDeviceList As DeviceParam, _
	iData As Byte() _
) As Integer
C#
public static int Write7Segment(
	ref DeviceParam iDeviceList,
	byte[] iData
)

Parameters

iDeviceList
Type: BIUSBWrapper..::.DeviceParam %
A DeviceParam structure. Must contain valid device information returned from call to DetectHID.
iData
Type: array< System..::.Byte >[]()[]
2-byte array. The first byte value contains the character to be displayed on a 7-segment display. Supported values are 0x00 to 0x09 in hex which will display the corresponding ASCII characters "0" to "9" when using industry standard decoders. Non-supported values will blank the display. NOTE: do not use the ASCII value to be displayed. Example, to display the value "1", set iData to the hex value 0x01, not 0x31 corresponding to the ASCII value of "1".

The second byte value is used for a shift light indicator with 0 for OFF and 1 for ON.

Value - Displayed Symbol

0 - 0 or N if supported

1 - 1

2 - 2

3 - 3

4 - 4

5 - 5

6 - 6

7 - 7

8 - 8

9 - 9

10 - "-"

11 - L

12 - P

13 - "="

14 - Blank

15 - R

Return Value

0: If failure writing to device.

>0: if success, returns number of bytes written to device.

See Also