|Download Help (Windows Only)|
Owning Class: support
Requires: MathScript RT Module
fwrite_csv(file, m, row, col)
Writes values from a matrix to a file of values that are separated by commas.
|file||Specifies the file you want to write to. file is a string.|
|m||Specifies the matrix of values you want to write.|
|row, col||Specify the location in the file at which you want to start writing. row and col are zero-based.|
If you use this function in a stand-alone application or shared library and file is a relative path, LabVIEW searches for the file in the path where you installed the application or shared library. (Real-Time Module) If you deploy this function to an RT target and file is a relative path, LabVIEW searches for the file in the path returned by the Default Data Directory VI.
The following table lists the support characteristics of this function.
|Supported in the LabVIEW Run-Time Engine||Yes|
|Supported on RT targets||Yes|
|Suitable for bounded execution times on RT||No (affects entire script)|
In the following example, LabVIEW creates test.csv in the LabVIEW Data directory. LabVIEW then reads the values in test.csv and returns these values as a matrix.fwrite_csv('test', magic(5), 2, 2);