![]() |
SESTILIO
3.0.2
C Library for SESTILIO a smart A/D and D/A interface on USB 2.0
|
Functions | |
| CTYPE int DLL | SE_TransientResponse (int da, int daValue, unsigned period, int samples, int usbDevice) |
| Perform transient response analysis. Sampling of data is performed with AD0 and AD1, data is stored in RAM0. More... | |
| CTYPE int DLL | SE_LinearScanner (int dir, long rows, unsigned short int *outBuffer, int usbDevice) |
| With the optional module LINCAM-1 SESTILIO can be used to implement an image scanner. The optical module is based on SONY ILX553B, a linear CCD sensor of 5150 pixel (7um pitch). To achieve maximum performance there are several constraints: . More... | |
| CTYPE unsigned int DLL | SE_ReadTemperature (int adSource, int muxChan, int average, int usbDevice) |
| This command enables the realization of an accurate thermometer employing a AD590 sensor to that end. More... | |
| CTYPE unsigned int DLL | SE_ReadCurrent (int adSource, int highVoltChan, int lowVoltChan, int range, double refResistence, int average, int usbDevice) |
| This command enables the realization of an accurate ammeter using an external resistance and two A/D channels. More... | |
Functions that can implements a complete instruments.
| int SE_LinearScanner | ( | int | dir, |
| long | rows, | ||
| unsigned short int * | outBuffer, | ||
| int | usbDevice | ||
| ) |
With the optional module LINCAM-1 SESTILIO can be used to implement an image scanner. The optical module is based on SONY ILX553B, a linear CCD sensor of 5150 pixel (7um pitch).
To achieve maximum performance there are several constraints:
.
| dir | Motor direction for the scanning. |
| rows | Number of rows for the sampled image. |
| outBuffer | Image buffer. This buffer must be created according to the image dimension. The image is sampled at 16 bit an the image dimension is: 5150 * rows * 2 |
| usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 643 of file sestilio.cpp.
| unsigned int SE_ReadCurrent | ( | int | adSource, |
| int | highVoltChan, | ||
| int | lowVoltChan, | ||
| int | range, | ||
| double | refResistence, | ||
| int | average, | ||
| int | usbDevice | ||
| ) |
This command enables the realization of an accurate ammeter using an external resistance and two A/D channels.
| adSource | Used A/D (0/1). |
| highVoltChan | Multiplexer channel for Vi input voltage measurement. |
| lowVoltChan | Multiplexer channel for Vo output voltage measurement. |
| range | Readout multiplier: 0 = 1A, 1 = 100mA, 2 = 10mA, 3 = 1mA, 4 = 100uA, 5 = 10uA |
| refResistence | Reference resistance in mOhm |
| average | Number of samples for average. |
| usbDevice | Specify a SESTILIO USB identifier. // Four channel ammeter for(int i = 0; i < 4; i++) |
Definition at line 661 of file sestilio.cpp.
| unsigned int SE_ReadTemperature | ( | int | adSource, |
| int | muxChan, | ||
| int | average, | ||
| int | usbDevice | ||
| ) |
This command enables the realization of an accurate thermometer employing a AD590 sensor to that end.
| adSource | Used A/D (0/1). |
| muxChan | Selected multiplexer channel. |
| average | Number of samples for average. |
| usbDevice | Specify a SESTILIO USB identifier. // Optional instruction SE_AuxPower(1, 0); // Turn on the power (+5V) on pin Y4.16 for DCDC converter // Read temperature (K) on 16 channels for(int i = 0; i < 16; i++) printf("CH[%2d] = %5.1lf K\n", i, (double) SE_ReadTemperature(i % 2, i % 8, 10, usbDevice) / 1000.0); |
Definition at line 650 of file sestilio.cpp.
| int SE_TransientResponse | ( | int | da, |
| int | daValue, | ||
| unsigned | period, | ||
| int | samples, | ||
| int | usbDevice | ||
| ) |
Perform transient response analysis. Sampling of data is performed with AD0 and AD1, data is stored in RAM0.
| da | D/A selection: 0 = DA0, 1 = DA1. D/A Selection |
| daValue | 0:4095 D/A value. Conversion Macros |
| period | Sampling frequency in us. Accepted range 1 to 1E8. |
| samples | Number of samples to be acquired. |
| usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 525 of file sestilio.cpp.