TDMS_AdvancedSyncWrite
- Updated2023-02-21
- 2 minute(s) read
int TDMS_AdvancedSyncWrite (TDMSFileHandle file, void *samples, size_t numberOfSamples, TDMSDataType dataType);
Purpose
Writes data to the specified file.
(Linux) This function is not supported.
Parameters
| Input | ||||
| Name | Type | Description | ||
| file | TDMSFileHandle | The file handle. You obtain this handle from TDMS_AdvancedOpenFile or TDMS_AdvancedCreateFile. You must not specify the enable asynchronous operations option when you open or create the file. | ||
| samples | void * | An array containing samples that will be written to the specified file. The type of this array should match the type of the samples you are writing. This function does not support writing samples of type string. If the type of the samples you are writing is TDMS_Timestamp, you must pass an array of type CVIAbsoluteTime. Refer to the Absolute Time functions in the Utility Library for more information about this type.
|
||
| numberOfSamples | size_t | The number of samples to write.
|
||
| dataType | TDMSDataType | The data type of the samples to write. This function does not support writing samples of type string. | ||
Return Value
| Name | Type | Description |
| status | int | Return value indicating whether the function was successful. Unless otherwise stated, zero represents successful execution and a negative number represents the error code. Error codes are defined in cvi\include\cvitdms.h. |
Additional Information
Library: TDM Streaming Library
Include file: cvitdms.h
LabWindows/CVI compatibility: LabWindows/CVI 2013 and later
© 2016 National Instruments. All rights reserved.
Example
Refer to TDM Streaming\Advanced Read and Write\TDMS Advanced Sync Write\TDMS Advanced Sync Write.cws for an example of using the TDMS_AdvancedSyncWrite function.
