Software Library API naibrd 1.62
See all documentation at naii.docs.com
|
Functions | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetAngle (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outangle) |
Retrieves the angle reading from the specified channel. The angle value is scaled between 0 - 359.9954 Deg. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetVelocity (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outvelocity) |
Retrieves velocity reading from the specified channel. The Velocity Scale register is read and used to scale the returned value between +/- 190.7348 RPS. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetFrequency (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outfrequency) |
Retrieves the Frequency in Hertz from the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetSignalVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outsigvolt) |
Retrieves the signal voltage (VLL) in volts from the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetRefVoltage (int32_t cardIndex, int32_t module, int32_t channel, float64_t *outrefvolt) |
Retrieves the reference voltage in volts from the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetSine (int32_t cardIndex, int32_t module, int32_t channel, float32_t *outsine) |
Retrieves the Sine from the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetCosine (int32_t cardIndex, int32_t module, int32_t channel, float32_t *outcosine) |
Retrieves the Cosine from the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type, uint32_t *outstatus) |
Retrieves the SD Status from the specified channel. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_ClearStatus (int32_t cardIndex, int32_t module, int32_t channel, nai_sd_status_type_t type) |
Clears the latched status for the specified SD channel and status type. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_SetLatch (int32_t cardIndex, int32_t module, int32_t channel, uint32_t latch) |
Sets the Latch Control register to Latch the Angle Data for the specified channel. The Latch Control register allows for simultaneously measure inputs. After latching the channel, the angle data is latched until it is released by reading the channel's Angle Data register or setting the Latch Control register to 0. | |
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SD_GetLatch (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *outlatch) |
Retrieves the Latch Control register to Latch the Angle Data for the specified channel. The Latch Control register allows for simultaneously measure inputs. After latching the channel, the angle data is latched until is release released by reading the channel's Angle Data register or setting the Latch Control register to 0. | |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_ClearStatus | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_sd_status_type_t | type ) |
Clears the latched status for the specified SD channel and status type.
The following status types are only supported on FPGA rev > 9.13: NAI_SD_STATUS_REF_FAULT_HIGH_LATCHED NAI_SD_STATUS_REF_FAULT_HIGH_REALTIME NAI_SD_STATUS_SIG_FAULT_HIGH_LATCHED NAI_SD_STATUS_SIG_FAULT_HIGH_REALTIME NAI_SD_STATUS_SUMMARY supported in FPGA Version >= 9.28
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]). |
type | : (Input) Status Type: refer to nai_sd_status_type_t definition. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetAngle | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float64_t * | outangle ) |
Retrieves the angle reading from the specified channel. The angle value is scaled between 0 - 359.9954 Deg.
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]). |
outangle | : (Output) Angle reading in degrees. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetCosine | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float32_t * | outcosine ) |
Retrieves the Cosine from the specified 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]). |
outcosine | : (Output) Cosine reading. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetFrequency | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float64_t * | outfrequency ) |
Retrieves the Frequency in Hertz from the specified 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]). |
outfrequency | : (Output) Frequency reading in Hertz. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetLatch | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint32_t * | outlatch ) |
Retrieves the Latch Control register to Latch the Angle Data for the specified channel. The Latch Control register
allows for simultaneously measure inputs. After latching the channel, the angle data is latched until is release released by reading the channel's Angle Data register or setting the Latch Control register to 0.
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]). |
outlatch | : (Output) 0 to unlatch or release all latched data. Enter 1 to latch the specified channel. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetRefVoltage | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float64_t * | outrefvolt ) |
Retrieves the reference voltage in volts from the specified 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]). |
outrefvolt | : (Output) Reference Voltage reading in volts. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetSignalVoltage | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float64_t * | outsigvolt ) |
Retrieves the signal voltage (VLL) in volts from the specified 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]). |
outsigvolt | : (Output) VLL reading in volts. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetSine | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float32_t * | outsine ) |
Retrieves the Sine from the specified 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]). |
outsine | : (Output) Sine reading. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetStatus | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
nai_sd_status_type_t | type, | ||
uint32_t * | outstatus ) |
Retrieves the SD Status from the specified channel.
The following status types are only supported on FPGA rev > 9.13: NAI_SD_STATUS_REF_FAULT_HIGH_LATCHED NAI_SD_STATUS_REF_FAULT_HIGH_REALTIME NAI_SD_STATUS_SIG_FAULT_HIGH_LATCHED NAI_SD_STATUS_SIG_FAULT_HIGH_REALTIME NAI_SD_STATUS_SUMMARY supported in FPGA Version >= 9.28
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]). |
type | : (Input) Status Type: refer to nai_sd_status_type_t definition |
outstatus | : (Output) 0 for Normal, 1 for Failure or Alert. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_GetVelocity | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
float64_t * | outvelocity ) |
Retrieves velocity reading from the specified channel. The Velocity Scale register is read and used to scale the returned value between +/- 190.7348 RPS.
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]). |
outvelocity | : (Output) Velocity reading in RPS. |
NAIBRDFUNC nai_status_t NAIAPI naibrd_SD_SetLatch | ( | int32_t | cardIndex, |
int32_t | module, | ||
int32_t | channel, | ||
uint32_t | latch ) |
Sets the Latch Control register to Latch the Angle Data for the specified channel. The Latch Control register
allows for simultaneously measure inputs. After latching the channel, the angle data is latched until it is released by reading the channel's Angle Data register or setting the Latch Control register to 0.
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]). |
latch | : (Input) 0 to unlatch or release all latched data. Enter 1 to latch the specified channel. |