Acuity AP820 Laser Scanners
Rev. 3.3
35
Public
LaserIntensityThreshold
As UInteger
Public
LaserTargetValue
As UInteger
Public
PeakWidthLimit
As UInteger
Public
PeakThreshold
As UInteger
Public
Synchronization
As UInteger
Public
ProtocolVersion
As UInteger
Public
ShutterControl
As UInteger
Public
Linearization2
As Integer
Public
Speed
As UInteger
Public
FPGAVersion
As UInteger
Public
DigitalInput
As UInteger
Publiec
LaserValueOfProfile
As UInteger
End Structure
To get the current settings back from the laser, pass this structure by reference to
EthernetScanner_GetInfo:
Public Function
GetInfo(
ByRef
ScanInfo
As
ScanInfoStruct)
As Boolean
Dim
Result
As Boolean
Result = EthernetScanner_GetInfo(pScanner, ScanInfo, 296, 500)
.
.
.
End Function
11.6
Getting Profile Data from the AP820
Profile data is retrieved from the AP820 by calling EthernetScanner_GetScanRawData.
The function is or the following form:
Private Function
EthernetScanner_GetScanRawData(
ByVal
pScanner
As
IntPtr,
ByVal
Buffer
As Byte
(),
ByVal
BufferSize
As UInteger
,
ByVal
ScanProfileMode
As UInteger
,
ByVal
Timeout
As UInteger
)
As Boolean
Where:
pScanner is the pointer returned by EthernetScanner_Connect
Buffer is a byte array that will contain the data (described later)
Buffersize contains the size of the buffer (3500)
Note that the buffer must be at least 3500 bytes, even though only the first 2048 bytes
contain useful data.
ScanProfileMode is reserved and should always be 0
Timeout is the timeout time in milliseconds.
This function returns 0 on success and –1 on failure.
The profile data is returned in the byte array starting at index 66, and continuing through
the next 1450 bytes to index 1515. We will describe the contents of the rest of the array
later, but for now we will concentrate on these 1450 bytes containing the data.
Each successive group of 5 bytes contains: