Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
Enables/disables status reporting for the specified VR channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outEnable) |
Retrieves the enabled/disabled state of status reporting for the specified VR channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetConfigValue (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_config_value_type_t configValueType, float64_t configValue) |
Sets the configuration value of the specified VR module and channel, based on the nai_vr_config_value_type_t configuration value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetConfigValue (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_config_value_type_t configValueType, float64_t *p_outConfigValue) |
Retrieves the configuration value from the specified VR module and channel, based on the nai_vr_config_value_type_t configuration value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetChanMappedControl (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_chan_mapped_control_type_t controlType, bool_t enable) |
Sets the channel-mapped control bit of the specified VR module and channel, based on the nai_vr_chan_mapped_control_type_t channel-mapped control type specified. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetChanMappedControl (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_chan_mapped_control_type_t controlType, bool_t *p_outEnable) |
Retrieves the channel-mapped control bit from the specified VR module and channel, based on the nai_vr_chan_mapped_control_type_t channel-mapped control type specified. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetPowerSupplyEnable (int32_t cardIndex, int32_t module, bool_t enable) |
Sets the enabled/disabled state of the power supply for the specified VR module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetPowerSupplyEnable (int32_t cardIndex, int32_t module, bool_t *p_outEnable) |
Retrieves the enabled/disabled state of the power supply for the specified VR module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetRangeSelect (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_range_select_type_t range) |
Sets the signal gain, which sets the effective measurement range, for the specified VR module and channel. For the list of valid range selections, refer to nai_vr_range_select_type_t definition. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetRangeSelect (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_range_select_type_t *p_outRange) |
Retrieves the signal gain, which sets the effective measurement range, for the specified VR module and channel. For the list of valid range selections, refer to nai_vr_range_select_type_t definition. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetZeroTorqueSignalPhaseToPhaseReading (int32_t cardIndex, int32_t module, int32_t channel) |
Sets the zero torque signal phase to the current phase reading for the specified VR module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetZeroTorqueSignalPhaseToPhaseReading (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outEnable) |
Retrieves the state of the bit corresponding to the specified VR channel in the register that sets the zero torque signal phase to the current phase reading for the specified VR module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_ResetCycleCount (int32_t cardIndex, int32_t module, int32_t channel) |
Resets the cycle counter for the specified VR module. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_SetAutoDownRangeTime (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_auto_down_range_time_type_t autoDownRangeTime) |
Sets the auto down-range time for the specified VR module and channel. For the list of valid auto down-range time selections, refer to nai_vr_auto_down_range_time_type_t definition. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_VR_GetAutoDownRangeTime (int32_t cardIndex, int32_t module, int32_t channel, nai_vr_auto_down_range_time_type_t *p_outAutoDownRangeTime) |
Retrieves the auto down-range time for the specified VR module and channel. For the list of valid auto down-range time selections, refer to nai_vr_auto_down_range_time_type_t definition. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetAutoDownRangeTime | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_auto_down_range_time_type_t * | p_outAutoDownRangeTime ) |
Retrieves the auto down-range time for the specified VR module and channel. For the list of valid auto down-range time selections, refer to nai_vr_auto_down_range_time_type_t definition.
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]). |
p_outAutoDownRangeTime | : (Output) Auto Down-Range Time Type: refer to nai_vr_auto_down_range_time_type_t definition. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanMappedControl | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_chan_mapped_control_type_t | controlType, | ||
bool_t * | p_outEnable ) |
Retrieves the channel-mapped control bit from the specified VR module and channel, based on the nai_vr_chan_mapped_control_type_t channel-mapped control type specified.
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]). |
controlType | : (Input) Channel-mapped control type: refer to nai_vr_chan_mapped_control_type_t definition. |
p_outEnable | : (Output) Channel-mapped control bit state read from module (0 or 1). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetChanStatusEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | p_outEnable ) |
Retrieves the enabled/disabled state of status reporting for the specified VR 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]). |
p_outEnable | : (Output) 0 if channel status reporting is disabled or 1 if channel status reporting is enabled. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetConfigValue | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_config_value_type_t | configValueType, | ||
float64_t * | p_outConfigValue ) |
Retrieves the configuration value from the specified VR module and channel, based on the nai_vr_config_value_type_t configuration value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.
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]). |
configValueType | : (Input) Configuration value type: refer to nai_vr_config_value_type_t definition. |
p_outConfigValue | : (Output) Configuration value read from module. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetPowerSupplyEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
bool_t * | p_outEnable ) |
Retrieves the enabled/disabled state of the power supply for the specified VR module.
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]). |
p_outEnable | : (Output) 1 if power supply for module is enabled, 0 if power supply for module is disabled. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetRangeSelect | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_range_select_type_t * | p_outRange ) |
Retrieves the signal gain, which sets the effective measurement range, for the specified VR module and channel. For the list of valid range selections, refer to nai_vr_range_select_type_t definition.
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]). |
p_outRange | : (Output) Range Select Type read from module: refer to nai_vr_range_select_type_t definition. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_GetZeroTorqueSignalPhaseToPhaseReading | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t * | p_outEnable ) |
Retrieves the state of the bit corresponding to the specified VR channel in the register that sets the zero torque signal phase to the current phase reading for the specified VR module.
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]). |
p_outEnable | : (Output) 1 if setting zero torque signal phase to phase reading is in progress, 0 if done. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_ResetCycleCount | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel ) |
Resets the cycle counter for the specified VR module.
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_VR_SetAutoDownRangeTime | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_auto_down_range_time_type_t | autoDownRangeTime ) |
Sets the auto down-range time for the specified VR module and channel. For the list of valid auto down-range time selections, refer to nai_vr_auto_down_range_time_type_t definition.
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]). |
autoDownRangeTime | : (Input) Auto Down-Range Time Type: refer to nai_vr_auto_down_range_time_type_t definition. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanMappedControl | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_chan_mapped_control_type_t | controlType, | ||
bool_t | enable ) |
Sets the channel-mapped control bit of the specified VR module and channel, based on the nai_vr_chan_mapped_control_type_t channel-mapped control type specified.
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]). |
controlType | : (Input) Channel-mapped control type: refer to nai_vr_chan_mapped_control_type_t definition. |
enable | : (Input) State to set channel-mapped control bit to (0 or 1). |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetChanStatusEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
bool_t | enable ) |
Enables/disables status reporting for the specified VR 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]). |
enable | : (Input) 0 to disable or 1 to enable status reporting for a channel. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetConfigValue | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_config_value_type_t | configValueType, | ||
float64_t | configValue ) |
Sets the configuration value of the specified VR module and channel, based on the nai_vr_config_value_type_t configuration value type specified. NOTE: For FPGA Revision 2.2 and greater, the maximum input is 100V. For FPGA Revisions less than 2.2, the maximum input is 65V.
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]). |
configValueType | : (Input) Configuration value type: refer to nai_vr_config_value_type_t definition. |
configValue | : (Input) Configuration value to set. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetPowerSupplyEnable | ( | int32_t | cardIndex, |
int32_t | module, | ||
bool_t | enable ) |
Sets the enabled/disabled state of the power supply for the specified VR module.
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]). |
enable | : (Input) 1 to enable power supply for module, 0 to disable power supply for module. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetRangeSelect | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_vr_range_select_type_t | range ) |
Sets the signal gain, which sets the effective measurement range, for the specified VR module and channel. For the list of valid range selections, refer to nai_vr_range_select_type_t definition.
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]). |
range | : (Input) Range Select Type: refer to nai_vr_range_select_type_t definition. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_VR_SetZeroTorqueSignalPhaseToPhaseReading | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel ) |
Sets the zero torque signal phase to the current phase reading for the specified VR module.
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]). |