xpci3xxx
1.00.00
|
Macros | |
#define | CMD_xpci3xxx_InitAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 14,long) |
Initialise an analog input auto-refresh acquisition. More... | |
#define | CMD_xpci3xxx_StartAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 15,long) |
Start an analog input auto refresh conversion. More... | |
#define | CMD_xpci3xxx_StopAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 16,long) |
Stop an analog input auto refresh conversion. More... | |
#define | CMD_xpci3xxx_ReadAnalogInputAutoRefreshValueAndCounter _IOR(xpci3xxx_MAGIC, 17,long) |
Read the auto refresh values. More... | |
#define | CMD_xpci3xxx_ReleaseAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 18,long) |
Release (stop) an analog input auto refresh conversion. More... | |
#define CMD_xpci3xxx_InitAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 14,long) |
Initialise an analog input auto-refresh acquisition.
This function prepare the board for an acquisition in auto-refresh mode and allocate the relevant resources. A call to CMD_xpci3xxx_ReleaseAnalogInputAutoRefresh is necessary to release theses resources before being able to start another type of acquisition.
[in] | uint32_t | *arg[(3 * ADDIDATA_MAX_AI) + 6] contains initialization parameters - Must be a pointer to an array of maximum 54 uint32_t (216 bytes) - |
The ordered list of parameters is given below.
0 | Success |
1 | Internal error |
2 | Wrong number of channels |
3 | Wrong channel number |
4 | Wrong gain factor |
5 | Wrong polarity |
6 | Wrong single diff parameter (not 0 or 1) |
7 | Wrong delay mode parameter |
8 | Wrong delay time unit parameter |
9 | Wrong delay time parameter |
10 | A conversion is already started |
11 | requested single diff parameter not supported by the board |
More on pb_ChannelList
b_NumberOfChannels describes the sequence to follow during acquisition. It must contain indexes of valid channels. Which index is valid depends on the connection mode of the board (single or differential).
The order of the index in this array have no influence on the order of the values returned after an acquisition.
Constraints on parameter NumberOfChannel let NumberOfAnalogInput be the number of analog inputs (4,8,16) of the board, then NumberOfChannel is correct if
Constraints on parameter pb_ChannelList let NumberOfAnalogInput be the number of analog inputs (4,8,16) of the board, then NumberOfChannel is correct if:
Definition at line 577 of file xpci3xxx.h.
#define CMD_xpci3xxx_ReadAnalogInputAutoRefreshValueAndCounter _IOR(xpci3xxx_MAGIC, 17,long) |
Read the auto refresh values.
[out] | uint32_t[ADDIDATA_MAX_AI | + 1] Values |
0 | Success |
1 | Internal error |
2 | Auto refresh not initialized |
Definition at line 620 of file xpci3xxx.h.
#define CMD_xpci3xxx_ReleaseAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 18,long) |
Release (stop) an analog input auto refresh conversion.
This function frees the resources allocated by a CMD_xpci3xxx_InitAnalogInputAutoRefresh and must be called before initializing another acquisition.
NULL | (ignored) |
0 | : Success |
1 | : Internal error |
2 | : Auto refresh not initialized |
3 | : A conversion is already started |
Definition at line 634 of file xpci3xxx.h.
#define CMD_xpci3xxx_StartAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 15,long) |
Start an analog input auto refresh conversion.
[in] | uint16_t | arg[2] |
0 | Success |
1 | Internal error |
2 | Auto refresh not initialized |
3 | Wrong convert time unit |
4 | Wrong convert time |
5 | A conversion is already started |
Definition at line 597 of file xpci3xxx.h.
#define CMD_xpci3xxx_StopAnalogInputAutoRefresh _IOR(xpci3xxx_MAGIC, 16,long) |
Stop an analog input auto refresh conversion.
NULL | (ignored) |
0 | Success |
1 | Internal error |
2 | Auto refresh not initialized |
Definition at line 607 of file xpci3xxx.h.