|
static int32_t | GetChannelCount (uint32_t modId) |
|
static nai_status_t | naibrd_SG_VerifyChannel (uint32_t modId, int32_t channel) |
|
static nai_status_t | naibrd_SG_VerifyChanMappedStatusType (naibrd_sg_chan_mapped_status_type_t statusType) |
|
static nai_status_t | naibrd_SG_VerifyRemoteSenseType (naibrd_sg_remote_sense_t remoteSenseType) |
|
static nai_status_t | naibrd_SG_VerifyExcitationSignal (float64_t excitationSignal) |
|
static nai_status_t | naibrd_SG_VerifyBridgeConfigType (naibrd_sg_bridge_config_type_t bridgeConfigType) |
|
static nai_status_t | naibrd_SG_VerifyPGAGainType (naibrd_sg_pga_gain_type_t pgaGainType) |
|
static nai_status_t | naibrd_SG_VerifySampleRateType (naibrd_sg_sample_rate_type_t sampleRateType) |
|
static nai_status_t | naibrd_SG_VerifyStrainAlertValueType (naibrd_sg_strain_alert_value_type_t strainAlertValueType) |
|
static nai_status_t | naibrd_SG_VerifyBoolean (bool_t enable) |
|
static nai_status_t | naibrd_SG_VerifyInterruptTriggerType (naibrd_int_trigger_type_t triggerType) |
|
static nai_status_t | naibrd_SG_VerifyInterruptSteeringType (naibrd_int_steering_t steeringType) |
|
static nai_status_t | naibrd_SG_VerifyRawType (naibrd_sg_raw_t rawType) |
|
static nai_status_t | naibrd_SG_VerifyChannelRawType (naibrd_sg_raw_channel_t channelRawType) |
|
NAIBRDFUNC int32_t NAIAPI | naibrd_SG_GetChannelCount (uint32_t modId) |
| Returns the number of channels for the specified Strain Gauge Module ID.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetStrain (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outstrain) |
| Retrieves the calculated strain for the specified SG Channel in units of microstrain. This function is only supported by modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetOutputVoutVexc (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outoutputvv) |
| Retrieves the Vout/Vexcitation voltage ratio for the specified SG Channel in units of V/V. This function is only supported by modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetMinStrainValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outminStrainValue) |
| Retrieves the minimum strain value recorded for the specified SG Channel in units of microstrain. This function is only supported by modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetMaxStrainValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outmaxStrainValue) |
| Retrieves the maximum strain value recorded for the specified SG Channel in units of microstrain. This function is only supported by modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetRawADReading (int32_t cardIndex, int32_t module, int32_t channel, uint32_t *p_outrawADReading) |
| Retrieves the raw A/D channel voltage reading for the specified SG Channel. This function is only supported by modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, nai_status_bit_t *p_outstatusBit) |
| Retrieves the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status for the specified SG channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_ClearChanMappedStatus (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type) |
| Clears the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status for the specified SG channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChanStatusEnable (int32_t cardIndex, int32_t module, int32_t channel, bool_t enable) |
| Enables/disables status reporting for the specified SG channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_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 SG channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetRemoteDriveSense (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_remote_sense_t sense) |
| Sets the Remote Sense Drive mode for the specified SG channel per table below.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetRemoteDriveSense (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_remote_sense_t *p_outsense) |
| Retrieves the Remote Sense Drive setting for the specified SG channel per table below.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetExcitationSignal (int32_t cardIndex, int32_t module, int32_t channel, float64_t excitationVolt) |
| Sets the Excitation/Drive Voltage setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetExcitationSignal (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outexcitationVolt) |
| Retrieves the Excitation/Drive Voltage setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetBridgeConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_bridge_config_type_t bridgeConfig) |
| Sets the Bridge Configuration type setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetBridgeConfiguration (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_bridge_config_type_t *p_outbridgeConfig) |
| Retrieves the Bridge Configuration type setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetPGAGain (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_pga_gain_type_t pgaGain) |
| Sets the PGA Gain setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The PGA Gain is set based on the values in the table below:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetPGAGain (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_pga_gain_type_t *p_outpgaGain) |
| Retrieves the PGA Gain setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The PGA Gain value is based on the values in the table below:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetNominalResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t nominalResistance) |
| Sets the Nominal Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetNominalResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outnominalResistance) |
| Retrieves the Nominal Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. Resistance is in Ohms.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetGaugeFactor (int32_t cardIndex, int32_t module, int32_t channel, float64_t gaugeFactor) |
| Sets the Gauge Factor setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetGaugeFactor (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outgaugeFactor) |
| Retrieves the Gauge Factor setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetPoissonRatio (int32_t cardIndex, int32_t module, int32_t channel, float64_t poissonRatio) |
| Sets the Poisson's Ratio setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetPoissonRatio (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outpoissonRatio) |
| Retrieves the Poisson's Ratio setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetLeadResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t leadResistance) |
| Sets the Lead Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetLeadResistance (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outleadResistance) |
| Retrieves the Lead Resistance setting for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_sample_rate_type_t sampleRate) |
| Sets the Sample Rate setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The Sample Rate is set based on the values in the table below:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetSampleRate (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_sample_rate_type_t *p_outsampleRate) |
| Retrieves the Sample Rate setting for the specified SG channel. This function only applies to modules that are Generation 5 or later. The Sample Rate value is based on the values in the table below:
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetStrainAlertValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_strain_alert_value_type_t strainAlertValueType, float64_t strainAlertValue) |
| Sets the Strain Alert Value of the specified type for the specified SG channel. This function only applies to modules that are Generation 5 or later. Valid Strain Alert Value types are High Strain Alert Value 1, High Strain Alert Value 2, Low Strain Alert Value 1, and Low Strain Alert Value 2.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetStrainAlertValue (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_strain_alert_value_type_t strainAlertValueType, float64_t *p_outstrainAlertValue) |
| Retrieves the Strain Alert Value of the specified type for the specified SG channel. This function only applies to modules that are Generation 5 or later. Valid Strain Alert Value types are High Strain Alert Value 1, High Strain Alert Value 2, Low Strain Alert Value 1, and Low Strain Alert Value 2.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetImbalanceOffsetValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t imbalanceOffsetValue) |
| Sets the Imbalance Offset Value for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetImbalanceOffsetValue (int32_t cardIndex, int32_t module, int32_t channel, float64_t *p_outimbalanceOffsetValue) |
| Retrieves the Imbalance Offset Value for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_ResetMinimumAndMaximumStrain (int32_t cardIndex, int32_t module, int32_t channel) |
| Resets the minimum and maximum strain values to 0 microstrain for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetUseInternalBridgeCompletion (int32_t cardIndex, int32_t module, int32_t channel, bool_t useInternalBridgeCompletion) |
| Sets the register bit that determines whether or not to use internal bridge completion for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetUseInternalBridgeCompletion (int32_t cardIndex, int32_t module, int32_t channel, bool_t *p_outuseInternalBridgeCompletion) |
| Retrieves the register bit that determines whether or not to use internal bridge completion for the specified SG channel. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_CheckPowerOnBITComplete (int32_t cardIndex, int32_t module, bool_t *p_outpbitComplete) |
| Retrieves the Power-On BIT (PBIT) status (complete or incomplete) for the specified channel. The PBIT result will be in the BIT status register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, bool_t enable) |
| Sets the bit corresponding to the specified SG Channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Interrupt Enable register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedInterruptEnable (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, bool_t *p_outenable) |
| Retrieves the bit corresponding to the specified SG Channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Interrupt Enable register.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t vector) |
| This function will set the vector for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedInterruptVector (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t *p_outvector) |
| This function will read the vector for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_trigger_type_t triggerType) |
| Sets the bit corresponding to the specified SG channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 edge/level interrupt register. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedInterruptTriggerType (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_trigger_type_t *p_outtriggerType) |
| Retrieves the bit corresponding to the specified SG channel in the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 edge/level interrupt register. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_steering_t steering) |
| This function will set the interrupt steering, which indicates the interrupt direction, for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedInterruptSteering (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, naibrd_int_steering_t *p_outsteering) |
| This function retrieves the interrupt steering, which indicates the interrupt direction, for the BIT, Open, High Strain Alert 1, High Strain Alert 2, Low Strain Alert 1, or Low Strain Alert 2 Status interrupt. This function only applies to modules that are Generation 5 or later.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetRaw (int32_t cardIndex, int32_t module, naibrd_sg_raw_t type, uint32_t rawdata) |
| Sets the raw data value in the register associated with the register type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetRaw (int32_t cardIndex, int32_t module, naibrd_sg_raw_t type, uint32_t *p_outrawdata) |
| Retrieves the raw digital data value from the register associated with the register type specified.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_raw_channel_t type, uint32_t rawdata) |
| Sets the raw data value in the register associated with the channel and register type specified. Note: values written to data output registers will have no effect. This function will return NAI_ERROR_NOT_SUPPORTED if the register type specified corresponds to a data output register. Note: Data format may be in floating point, signed integer, or unsigned integer, depending on the selection of the data type.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChannelRaw (int32_t cardIndex, int32_t module, int32_t channel, naibrd_sg_raw_channel_t type, uint32_t *p_outrawdata) |
| Retrieves the raw data value from the register associated with the channel and register type specified. Note: Data format may be in floating point, signed integer, or unsigned integer, depending on the selection of the data type being accessed.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t *p_outrawdata) |
| Retrieves the raw status data value from the register associated with the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_ClearChanMappedStatusRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t rawdata) |
| Clears the bits set in the rawdata parameter in the status register associated with the status type specified. The status registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_SetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t rawdata) |
| Sets the raw interrupt enable data value in the register associated with the status type specified. The interrupt enable registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
|
|
NAIBRDFUNC nai_status_t NAIAPI | naibrd_SG_GetChanMappedInterruptEnableRaw (int32_t cardIndex, int32_t module, naibrd_sg_chan_mapped_status_type_t type, uint32_t *p_outrawdata) |
| Retrieves the raw interrupt enable data value from the register associated with the status type specified. The interrupt enable registers are bitmapped per channel, with the LSB corresponding to Channel 1 and the MSB (of the bits that are used) corresponding to the max SG Channel.
|
|