Software manual for use with color sensors of the Series - Silicann
Software manual for use with color sensors of the Series - Silicann
Software manual for use with color sensors of the Series - Silicann
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
User Manual<br />
PCS Sensor <strong>S<strong>of</strong>tware</strong><br />
PCS_closeUSBLib<br />
This function closes <strong>the</strong> USB library and frees <strong>the</strong> allocated memory.<br />
void PCS_closeUSBLib (void);<br />
Parameters:<br />
- none -<br />
Return Value:<br />
- none -<br />
4.2.3 Devices<br />
PCS_getUSBDeviceNum<br />
Detects <strong>the</strong> number <strong>of</strong> <strong>sensors</strong> connected to <strong>the</strong> USB interface.<br />
UCHAR<br />
PCS_getUSBDeviceNum (ULONG* num);<br />
Parameters:<br />
num Pointer that contains <strong>the</strong> device number.<br />
Return Value:<br />
Communication<br />
error PCSCS_OK if command successful, o<strong>the</strong>rwise <strong>the</strong> return value is an error code.<br />
PCS_openDevice<br />
Opens a communication device (USB or RS232 interface) and initializes <strong>the</strong> internal device<br />
memory structure. Depending on <strong>the</strong> device type different configuration parameters are <strong>use</strong>d.<br />
UCHAR<br />
PCS_openDevice (struct PCS_Device_def* pcsdev, UCHAR devtype,<br />
UCHAR devnr, ULONG baud);<br />
Parameters:<br />
pcsdev Pointer to device structure to be initialized<br />
devtype Device type: PCSDT_USB, PCSDT_RS232<br />
devnr Device number; depending on device type (USB or RS232 device)<br />
baud RS232 baud rate; default value: 28800 baud<br />
Return Value:<br />
Communication<br />
error PCSCS_OK if command successful, o<strong>the</strong>rwise <strong>the</strong> return value is an error code.<br />
Rev. 5.1 (2009-01-28) Subject to change<br />
22-3061-01 - 45 -