C-10
Model 8587A Laser Photometer
Example Code:
Int
ReadResponse(LPTSTR pBufIn,
DWORD dwMaxLength,
LPDWORD lpBytesRead)
{
ULONG status = USB_OK;
WORD nTransID = 0x80;
WORD nLevelID = 0x80;
DWORD dwErrorCode = 0;
ZeroMemory(pBufIn, dwMaxLength);
LPDWORD bytesRead = 0;
// read the data in buffer pBufIn of length
// dwMaxLength
dwErrorCode = TsiUsbTerminalReceive( m_hComm,
(VOID *)pBufIn,
dwMaxLength,
(LPWORD)&nTransID,
(LPWORD)&nLevelID,
(ULONG)&status,
(LPDWORD)&bytesRead);
return
dwErrorCode;
}
R e t r i e v i n g E r r o r S t r i n g s
TsiUsbGetStatusString
The TsiUsbGetStatusString() method returns a device defined status string
that describes the device condition that corresponds to the device
command status.
VOID
TsiUsbGetStatusString(IN HANDLE hDevice ,
IN ULONG ulStatus,
IN OUT LPCTSTR pStatusString);
Parameter
Description
Type
hDevice
Handle returned from DeviceOpen().
HANDLE
ulStatus
The status value returned from the device.
ULONG or an unsigned long
pStatusString
The returned string describing the device
status error that occurred.
LPCTSTR
The return value is void.
Содержание 8587A
Страница 1: ...LASER PHOTOMETER MODEL 8587A OPERATION AND SERVICE MANUAL P N 1980538 REVISION D JULY 2015 ...
Страница 2: ......
Страница 10: ...x Model 8587A Laser Photometer This page intentionally left blank ...
Страница 16: ...xvi Model 8587A Laser Photometer This page intentionally left blank ...
Страница 22: ...2 4 Model 8587A Laser Photometer This page intentionally left blank ...
Страница 34: ...3 12 Model 8587A Laser Photometer Figure 3 4 Sheath Air Flow System ...
Страница 46: ...4 8 Model 8587A Laser Photometer This page intentionally left blank ...
Страница 52: ...5 6 Model 8587A Laser Photometer This page intentionally left blank ...
Страница 68: ...B 14 Model 8587A Laser Photometer This page intentionally left blank ...
Страница 80: ...C 12 Model 8587A Laser Photometer This page intentionally left blank ...
Страница 84: ......