RetrieveWaveformSampleRate(IntPtr, string, out double)
- 更新时间2025-10-13
- 阅读时长1分钟
Returns the sample rate stored in the NI-RFSG waveform database. This method uses the waveformName parameter as the key to retrieve the waveform properties.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsgPlayback
public static int RetrieveWaveformSampleRate(IntPtr rfsgSession, string waveformName, out double sampleRate)
Parameters
| Name | Type | Description |
|---|---|---|
| rfsgSession | IntPtr | Identifies the instrument session. The rfsgSession handle is obtained from the NIRfsg.DangerousGetInstrumentHandle method. |
| waveformName | string | Specifies the name of the waveform for which you want to retrieve the sample rate value. |
| sampleRate | out double | Returns the sampling rate stored in the NI-RFSG waveform database for the waveform you specified in the waveformName parameter. This value is expressed in samples per second (S/s). |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.