Logging:Samples Per File
- Updated2025-07-28
- 1 minute(s) read
Specifies how many samples to write to each file. When the file reaches the number of samples specified, a new file is created with the naming convention of <filename>_####.tdms, where #### starts at 0001 and increments automatically with each new file. For example, if the file specified is C:\data.tdms, the next file name used is C:\data_0001.tdms. To disable file spanning behavior, set this attribute to 0. If Logging.FilePath is changed while this attribute is set, the new file path takes effect on the next file created.
Remarks
The following table lists the characteristics of this property.
| Short Name | Logging.SampsPerFile |
| Data type | ![]() |
| Permissions | Read/Write |
| Resettable | True |
| Settable While Task Is Running | device-specific |
| Available in Run-Time Engine | True |
