Getbufferdatarapid - Panasonic HL-C2 Series User Manual

Ultra high-speed, high-accuracy laser displacement sensor
Hide thumbs Also See for HL-C2 Series:
Table of Contents

Advertisement

Chapter 2 API Function Specifications

15)GetBufferDataRapid

Executes buffering setting [Data readout (rapid)].
HLC2_STATUS HLC2_GetBufferDataRapid(HLC2_HANDLE hlc2Handle, DWORD
dwOut, HLC2_BUFFERRAPID *pBufferRapid , LPDWORD lpSelect, BYTE bccFlg)
Argument
HLC2_HANDLE hlc2Handle
DWORD dwOut
HLC2_BUFFERRAPID *pBufferRapid
2
LPDWORD lpSelect
BYTE bccFlg
Return value
Returns HLC2_OK if normal end.
Remarks
The size of the memory area where the data loaded by data readout (rapid)
command are stored is provided in the following calculating formula. Secure
or release the storage memory in API invoker side.
1) IpSelect=0 is specified
2) IpSelect=1 is specified
(End point -Top point +1)×12
* Readout data size of each point
decimal point + 6-digit decimal number)
*1
12
+(End point -Top point )×12
*1 Readout data size of top point
decimal point + 6-digit decimal number)
*2 Difference data size to previous data (1-digit sign + 4-digit integer (no zero suppression) +
decimal point + 6-digit decimal number)
Handle of device
Specifies output. (OUT1 or OUT2)
Pointer of stored destination for buffering data
structure loaded by data readout (rapid)
command
pBufferRapid->TopPoint
Top point (00001 to 99999) (in)
pBufferRapid->EndPoint
End point (00001 to 99999) (in)
pBufferRapid->dwCount
Data size of data readout (rapid) (out)
pBufferRapid->pGetData
Head data of data readout (rapid)
Pointer of stored area of normal read
data
(1-digit sign + 3-digit integer (no zero
suppression) + decimal point + 6-digit decimal
(out)
number)
Variable pointer for storing output
contents selection of difference area(*)
*output contents selection of difference area:
*lpSelect=
0: Returns measurement
1: Returns data formed
Selects BCC addition
(0:BCC omit, 1:BCC add)
*
(1-digit sign + 4-digit integer (no zero suppression) +
*2
(1-digit sign + 4-digit integer (no zero suppression) +
2-66
value calculated from
difference.
into 4-digit integer and
6 decimal places.)

Advertisement

Table of Contents
loading

Table of Contents