![]() |
Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_ClearFIFO (int32_t cardIndex, int32_t module, int32_t channel) |
| Clears the FIFO Data for the specified TTL channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_GetFIFOStatus (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outcount, nai_ttl_fifo_status_t *outstatus) |
| Retrieves the TTL channel's FIFO Buffer Status. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_ReadFIFORaw (int32_t cardIndex, int32_t module, int32_t channel, uint32_t count, uint32_t outdata[], uint32_t *outread) |
| Retrieves the data elements from the TTL channel's FIFO buffer. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_SetTimebaseInterval (int32_t cardIndex, int32_t module, int32_t channel, float64_t interval) |
| Sets the timebase for frequency measurements for the specified TTL channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_GetTimebaseInterval (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outinterval) |
| Retrieves the timebase for frequency measurements for the specified TTL channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_ClearCountData (int32_t cardIndex, int32_t module, int32_t channel) |
| Clears the measurement count data for the specified TTL channel. | |
| NAIBRDFUNC nai_status_t NAIAPI | naibrd_TTL_GetCountData (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outcount) |
| Retrieves the measurement count data for the specified TTL channel. | |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_ClearCountData | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel ) |
Clears the measurement count data for the specified TTL channel.
Measurement count data applies to the following nai_ttl_mode_t modes:
NAI_TTL_MODE_COUNT_RISING_EDGES - Rising Edges Total Count
NAI_TTL_MODE_COUNT_FALLING_EDGES - Falling Edges Total Count
NAI_TTL_MODE_COUNT_ALL_EDGES - All Edges Total Count
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]) |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_ClearFIFO | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel ) |
Clears the FIFO Data for the specified TTL channel.
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]) |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetCountData | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| uint32_t * | outcount ) |
Retrieves the measurement count data for the specified TTL channel.
Measurement count data applies to the following nai_ttl_mode_t modes:
NAI_TTL_MODE_COUNT_RISING_EDGES - Rising Edges Total Count
NAI_TTL_MODE_COUNT_FALLING_EDGES - Falling Edges Total Count
NAI_TTL_MODE_COUNT_ALL_EDGES - All Edges Total Count
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
| outcount | : (Output) Measurement count value. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetFIFOStatus | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| uint32_t * | outcount, | ||
| nai_ttl_fifo_status_t * | outstatus ) |
Retrieves the TTL channel's FIFO Buffer Status.
FIFO Buffer status applies to the following nai_ttl_mode_t modes where the FIFO is used to store
the measurements:
NAI_TTL_MODE_MEASURE_HIGH_TIME - High Time Measurement
NAI_TTL_MODE_MEASURE_LOW_TIME - Low Time Measurement
NAI_TTL_MODE_TIMESTAMP_RISING_EDGES - Rising Edges Timestamps
NAI_TTL_MODE_TIMESTAMP_FALLING_EDGES - Falling Edges Timestamps
NAI_TTL_MODE_TIMESTAMP_ALL_EDGES - All Edges Timestamps
NAI_TTL_MODE_MEASURE_FREQUENCY - Frequency Measurement
FIFO Buffer Status Definition:
------------------------------
Data count bits 8 .. 0 0x01FF
FIFO empty bit 9 0x0200
FIFO full bit 10 0x0400
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
| outcount | : (Output) number of elements in TTL channel FIFO . |
| outstatus | : (Output) FIFO Buffer Status. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_GetTimebaseInterval | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t * | outinterval ) |
Retrieves the timebase for frequency measurements for the specified TTL channel.
Timebase for frequency measurement applies to the following nai_ttl_mode_t mode:
NAI_TTL_MODE_MEASURE_FREQUENCY - Frequency Measurement
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
| outinterval | : (Output) Timebase interval specified in milliseconds, increments of 0.000008 ms (8ns). (Range 0.000008 to 34359.73836 milliseconds) (0x1 to 0xFFFFFFFF at 0.000008 ms LSB) |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_ReadFIFORaw | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| uint32_t | count, | ||
| uint32_t | outdata[], | ||
| uint32_t * | outread ) |
Retrieves the data elements from the TTL channel's FIFO buffer.
FIFO Buffer applies to the following nai_ttl_mode_t modes where the FIFO is used to store
the measurements:
NAI_TTL_MODE_MEASURE_HIGH_TIME - High Time Measurement
NAI_TTL_MODE_MEASURE_LOW_TIME - Low Time Measurement
NAI_TTL_MODE_TIMESTAMP_RISING_EDGES - Rising Edges Timestamps
NAI_TTL_MODE_TIMESTAMP_FALLING_EDGES - Falling Edges Timestamps
NAI_TTL_MODE_TIMESTAMP_ALL_EDGES - All Edges Timestamps
NAI_TTL_MODE_MEASURE_FREQUENCY - Frequency Measurement
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
| count | : (Input) Number of data elements to retrieve. |
| outdata[] | : (Output) Array of 32-bit raw data. |
| outread | :(Output) Number of data elements read from the TTL channel's FIFO buffer. |
| NAIBRDFUNC nai_status_t NAIAPI naibrd_TTL_SetTimebaseInterval | ( | int32_t | cardIndex, |
| int32_t | module, | ||
| int32_t | channel, | ||
| float64_t | interval ) |
Sets the timebase for frequency measurements for the specified TTL channel.
Timebase for frequency measurement applies to the following nai_ttl_mode_t mode:
NAI_TTL_MODE_MEASURE_FREQUENCY - Frequency Measurement
| cardIndex | : (Input) Logical Card Index assigned to connection with the NAI_BOARD (0 - NAI_MAX_CARDS-1). |
| module | : (Input) Module Number of the module to access (1 - [max modules for board]). |
| channel | : (Input) Channel Number of the channel to access (1 - [max channels for module]). |
| interval | : (Input) Timebase interval specified in milliseconds, increments of 0.000008 ms (8ns). (Range 0.000008 to 34359.73836 milliseconds) (0x1 to 0xFFFFFFFF at 0.000008 ms LSB) |