GetCarrierChannelBandwidth(string, out double)
- Updated2025-10-13
- 1 minute(s) read
Gets the channel bandwidth, in hertz (Hz), of the carrier. The channel bandwidth is used to calculate the values of the SetOffsetStartFrequency(string, double) and SetOffsetStopFrequency(string, double) methods when you set the SetOffsetFrequencyDefinition(string, RFmxSpecAnMXSemOffsetFrequencyDefinition) method to CarrierEdgeToMeasurementBandwidthCenter or CarrierEdgeToMeasurementBandwidthEdge.
Syntax
Namespace: NationalInstruments.RFmx.SpecAnMX
public int GetCarrierChannelBandwidth(string selectorString, out double value)
Remarks
This method maps to the RFmxSpecAn_SEMGetCarrierChannelBandwidth() function in C.
Parameters
| Name | Type | Description |
|---|---|---|
| selectorString | string | Specifies the carrier number. Example: "carrier0". You can use the BuildCarrierString2(string, int) method to build the selector string. |
| value | out double | Upon return, contains the channel bandwidth, in hertz (Hz), of the carrier. The channel bandwidth is used to calculate the values of the SetOffsetStartFrequency(string, double) and SetOffsetStopFrequency(string, double) methods when you set the SetOffsetFrequencyDefinition(string, RFmxSpecAnMXSemOffsetFrequencyDefinition) method to CarrierEdgeToMeasurementBandwidthCenter or CarrierEdgeToMeasurementBandwidthEdge. |
Returns
Returns the status code of this method. The status code either indicates success or describes an error or warning condition.