ReadWaveformSizeFromFile(string, int, out int)
- Updated2025-10-13
- 1 minute(s) read
Returns the size of the waveform stored in the file. This method uses the waveformIndex parameter as the key to read the waveform property.
Syntax
Namespace: NationalInstruments.ModularInstruments.NIRfsgPlayback
public static int ReadWaveformSizeFromFile(string filePath, int waveformIndex, out int waveformSize)
Parameters
| Name | Type | Description |
|---|---|---|
| filePath | string | Specifies the absolute path to the TDMS file from which the playback library reads the waveform. |
| waveformIndex | int | Specifies the waveform number in the file for which you want to read the waveform size. |
| waveformSize | out int | Returns the size of the waveform stored in the file for the waveform number that you specified in the waveformIndex parameter. This value is expressed in samples. |
Returns
Returns the status code of this method. The status code either indicates success or describes a warning condition.