Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
|
Functions | |
static bool_t | Run_RTD_BasicOps (int32_t cardIndex, int32_t module, uint32_t modid) |
This function asks for the channel number, checks if it is valid, and if it is, calls Configuration() or BasicOperation(), depending on what the user specifies. | |
static nai_status_t | Handle_RTD_Configuration (int32_t paramCount, int32_t *p_params) |
This function is called if the user chooses to configure the RTD module or to read the configuration data. There are options to read configuration data, set zero temperature resistance (Gen5) or range (Gen3), set wire mode, set compensation resistance, clear statuses, set thresholds, set offset temperature, suspend background operations, and trigger background operations (BIT and Open-Line tests). | |
static nai_status_t | Handle_RTD_BasicOperation (int32_t paramCount, int32_t *p_params) |
This function is called if the user chooses to perform RTD basic operations checks to retrieve the resistance, BIT status, and Open status. | |
static nai_status_t | Handle_RTD_ChanStatusEnable (int32_t paramCount, int32_t *p_params) |
This function sets the channel status enabled/disabled state to the value specified by the user and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_ConfigMode (int32_t paramCount, int32_t *p_params) |
This function handles the user request to configure the given channel to RTD or TC mode and calls the relevant setter method in the naibrd library. | |
static nai_status_t | Handle_RTD_WireMode (int32_t paramCount, int32_t *p_params) |
This function sets the wire mode to the value specified by the user and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_CompRes (int32_t paramCount, int32_t *p_params) |
This function sets the compensation resistance to the value specified by the user and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_ZeroTempResistance (int32_t paramCount, int32_t *p_params) |
This function sets the compensation resistance to the value specified by the user and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_ClearStatus (int32_t paramCount, int32_t *p_params) |
This function clears the RTD statuses specified by the user of the channel specified by the user. | |
static nai_status_t | Handle_RTD_ClearStatusAllChannels (int32_t paramCount, int32_t *p_params) |
This function clears the RTD statuses specified by the user of all of the channels on the RTD module. | |
static nai_status_t | Handle_RTD_CheckPowerOnBIT (int32_t paramCount, int32_t *p_params) |
This function checks the RTD power-on BIT completed state and then, if the power-on BIT has completed, checks the Latched BIT Status of each RTD channel. | |
static nai_status_t | Handle_RTD_Thresholds (int32_t paramCount, int32_t *p_params) |
This function sets the RTD alert/alarm lo/hi threshold(s) specified by the user of the channel specified by the user to the value specified by the user. | |
static nai_status_t | Handle_RTD_Thresholds_All_Channels (int32_t paramCount, int32_t *p_params) |
This function sets the RTD alert/alarm lo/hi threshold(s) specified by the user of all of the channels on the RTD module to the value specified by the user. | |
static nai_status_t | Handle_RTD_OffsetTemp (int32_t paramCount, int32_t *p_params) |
This function sets the offset temperature to the value specified by the user and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_BackgroundOpSuspension (int32_t paramCount, int32_t *p_params) |
This function sets the BIT/Open-Line test suspended/enabled state to the value specified by the user and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_TriggerOpenCheck (int32_t paramCount, int32_t *p_params) |
This function triggers an Open-Line check and then displays all of the configuration data. | |
static nai_status_t | Handle_RTD_TriggerBIT (int32_t paramCount, int32_t *p_params) |
This function triggers the BIT and then displays all of the configuration data. | |
void | RTD_DisplayCfg (int32_t cardIndex, int32_t module, int32_t maxchan) |
This function displays the RTD Configuration settings. | |
void | RTD_DisplayOpData (int32_t cardIndex, int32_t module, int32_t maxchan) |
This function displays the RTD Basic Operations data. | |
int32_t | RTD_BasicOps (void) |
The purpose of the RTD_BasicOps is to illustrate the methods to call in the naibrd library to perform basic operations with the RTD modules for configuration setup, controlling the drive outputs, and reading the channels. | |
Variables | |
static const int8_t * | CONFIG_FILE = (const int8_t *)"default_RTD_BasicOps.txt" |
static const int32_t | DEF_RTD_CHANNEL = 1 |
static int32_t | g_MaxRTDChannels = 0 |
static uint32_t | g_RTDModId |
static char | zeroTempOhms [][5] = { "100", "500", "1000" } |
naiapp_cmdtbl_params_t | RTD_BasicOpMenuCmds [] |
naiapp_cmdtbl_params_t | RTD_Gen5_ConfigMenuCmds [] |
|
static |
This function sets the BIT/Open-Line test suspended/enabled state to the value specified by the user and then displays all of the configuration data.
|
static |
This function is called if the user chooses to perform RTD basic operations checks to retrieve the resistance, BIT status, and Open status.
|
static |
This function sets the channel status enabled/disabled state to the value specified by the user and then displays all of the configuration data.
|
static |
This function checks the RTD power-on BIT completed state and then, if the power-on BIT has completed, checks the Latched BIT Status of each RTD channel.
|
static |
This function clears the RTD statuses specified by the user of the channel specified by the user.
|
static |
This function clears the RTD statuses specified by the user of all of the channels on the RTD module.
|
static |
This function sets the compensation resistance to the value specified by the user and then displays all of the configuration data.
|
static |
This function handles the user request to configure the given channel to RTD or TC mode and calls the relevant setter method in the naibrd library.
|
static |
This function is called if the user chooses to configure the RTD module or to read the configuration data. There are options to read configuration data, set zero temperature resistance (Gen5) or range (Gen3), set wire mode, set compensation resistance, clear statuses, set thresholds, set offset temperature, suspend background operations, and trigger background operations (BIT and Open-Line tests).
|
static |
This function sets the offset temperature to the value specified by the user and then displays all of the configuration data.
|
static |
This function sets the RTD alert/alarm lo/hi threshold(s) specified by the user of the channel specified by the user to the value specified by the user.
|
static |
This function sets the RTD alert/alarm lo/hi threshold(s) specified by the user of all of the channels on the RTD module to the value specified by the user.
|
static |
This function triggers the BIT and then displays all of the configuration data.
|
static |
This function triggers an Open-Line check and then displays all of the configuration data.
|
static |
This function sets the wire mode to the value specified by the user and then displays all of the configuration data.
|
static |
This function sets the compensation resistance to the value specified by the user and then displays all of the configuration data.
int32_t RTD_BasicOps | ( | void | ) |
The purpose of the RTD_BasicOps is to illustrate the methods to call in the naibrd library to perform basic operations with the RTD modules for configuration setup, controlling the drive outputs, and reading the channels.
The following system configuration routines from the nai_sys_cfg.c file are called to assist with the configuration setup for this program prior to calling the naibrd RTD routines.
void RTD_DisplayCfg | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | maxchan ) |
This function displays the RTD Configuration settings.
void RTD_DisplayOpData | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | maxchan ) |
This function displays the RTD Basic Operations data.
|
static |
This function asks for the channel number, checks if it is valid, and if it is, calls Configuration() or BasicOperation(), depending on what the user specifies.
|
static |
|
static |
|
static |
|
static |
naiapp_cmdtbl_params_t RTD_BasicOpMenuCmds[] |
naiapp_cmdtbl_params_t RTD_Gen5_ConfigMenuCmds[] |
|
static |