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_SetMux (int chan, int usbDevice) |
Select a multiplexer channel. More... | |
CTYPE int DLL | SE_SetGain (int chan, int gain, int usbDevice) |
Select a gain for specified channel. Gain control is available for group of channels 0-7 and 8-15. More... | |
CTYPE int DLL | SE_FastReadAnalog (int source, int trigger, unsigned period, int samples, int usbDevice) |
Start a buffered sampling with one or two A/D converters. Sampled data is stored into RAM 0. More... | |
CTYPE unsigned short int DLL | SE_ReadAnalog (int source, int average, int usbDevice) |
Start a sampling with a selected A/D converters. More... | |
CTYPE int DLL | SE_FlowReadAnalog (int source, unsigned int num, unsigned short int *outBuffer, int usbDevice) |
Maximum speed for A/D sample read. Is a procedure that sample the A/D converter at the maximum speed the sample isn't time correlated. More... | |
CTYPE int DLL | SE_WriteAnalog (int chan, int value, int usbDevice) |
Set a specified DAC to a requested value. More... | |
CTYPE int DLL | SE_WriteAnalogDual (int val0, int val1, int usbDevice) |
Set all DACs to a requested value at the same time. More... | |
CTYPE int DLL | SE_FastWriteAnalog (int source, int trigger, unsigned period, int samples, int usbDevice) |
Is a function generator on one or two DACs at the same time. More... | |
Basic functions for the full control of all analog channels (A/D and D/A).
int SE_FastReadAnalog | ( | int | source, |
int | trigger, | ||
unsigned | period, | ||
int | samples, | ||
int | usbDevice | ||
) |
Start a buffered sampling with one or two A/D converters. Sampled data is stored into RAM 0.
source | Set which A/D is used for sampling. 0 = AD0, 1 = AD1, 2 = AD0 and AD1. A/D Selection |
trigger | Set requested trigger mode. 0 = No trigger, 1 = INTA, 2 = INTB, 3 = P4.6 Low, 4 = P4.6 High, 5 = P4.7 Low, P4.7 High. Trigger source |
period | Set the sampling period in the range 1 to 1E8 us. |
samples | Set the number of samples to be acquired, accepted range is 1 to 16384 but with source 2 (AD0+AD1) maximum number of samples is 8192. With source = 2 this number is the total amount. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 253 of file sestilio.cpp.
int SE_FastWriteAnalog | ( | int | source, |
int | trigger, | ||
unsigned | period, | ||
int | samples, | ||
int | usbDevice | ||
) |
Is a function generator on one or two DACs at the same time.
source | Set which D/A is used for signal generator. 0 = DA0, 1 = DA1, 2 = DA0 and DA1. D/A Selection |
trigger | Set requested trigger mode. 0 = No trigger, 1 = INTA, 2 = INTB, 3 = P4.6 Low, 4 = P4.6 High, 5 = P4.7 Low, P4.7 High. Trigger source |
period | Set the sampling period in the range 1 to 1E8 us. |
samples | Set the number of samples to be used for signal generation, accepted range is 1 to 16384 but with source 2 (DA0+DA1) maximum number of samples is 8192. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 237 of file sestilio.cpp.
int SE_FlowReadAnalog | ( | int | source, |
unsigned int | num, | ||
unsigned short int * | outBuffer, | ||
int | usbDevice | ||
) |
Maximum speed for A/D sample read. Is a procedure that sample the A/D converter at the maximum speed the sample isn't time correlated.
source | Set which A/D is used for sampling. 0 = AD0, 1 = AD1. A/D Selection |
samples | Set the number of samples to be acquired. |
outBuffer | Where will be stored 16 bit A/D data. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 260 of file sestilio.cpp.
unsigned short int SE_ReadAnalog | ( | int | source, |
int | average, | ||
int | usbDevice | ||
) |
Start a sampling with a selected A/D converters.
source | Set which A/D is used for sampling. 0 = AD0, 1 = AD1. A/D Selection |
average | Number of samples to use in average. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 212 of file sestilio.cpp.
int SE_SetGain | ( | int | chan, |
int | gain, | ||
int | usbDevice | ||
) |
Select a gain for specified channel. Gain control is available for group of channels 0-7 and 8-15.
chan | Select a channel for the A/D converter. Range 0-7 set the mux for the A/D 0, range 8-15 for the A/D 1. |
gain | Gain id. 0 = 1X, 1 = 2X, 2 = 4X, 3 = 5X, 4 = 8X, 5 = 10X, 6 = 16X, 7 = 32X. Gain Selection |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 244 of file sestilio.cpp.
int SE_SetMux | ( | int | chan, |
int | usbDevice | ||
) |
Select a multiplexer channel.
chan | Select a channel for the A/D converter. Range 0-7 set the mux for the A/D 0, range 8-15 for the A/D 1. |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 202 of file sestilio.cpp.
int SE_WriteAnalog | ( | int | chan, |
int | value, | ||
int | usbDevice | ||
) |
Set a specified DAC to a requested value.
chan | Select which D/A converter is used, 0 or 1. D/A Selection |
value | DAC data in the range 0-4095. 4095 = 4.86V. Conversion Macros |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 223 of file sestilio.cpp.
int SE_WriteAnalogDual | ( | int | val0, |
int | val1, | ||
int | usbDevice | ||
) |
Set all DACs to a requested value at the same time.
val0 | DAC0 data in the range 0-4095. 4095 = 4.86V Conversion Macros |
val1 | DAC1 data in the range 0-4095. 4095 = 4.86V Conversion Macros |
usbDevice | Specify a SESTILIO USB identifier. |
Definition at line 230 of file sestilio.cpp.