Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

fwrite_csv (MathScript RT Module Function)

LabVIEW 2010 Help

Edition Date: June 2010

Part Number: 371361G-01

»View Product Info

Owning Class: support

Requires: MathScript RT Module

Syntax

fwrite_csv(file, m)

fwrite_csv(file, m, row, col)

Legacy Name: csvwrite

Description

Writes values from a matrix to a file of values that are separated by commas.

Details

Examples

Inputs

Name Description
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.

Details

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. If file is an absolute path, LabVIEW searches for the file on the local machine or target at the specified location. (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.

Examples

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);
a = fread_csv('test', 'A2..C3')

Related Topics

fread_csv
fread_delimited
fwrite_delimited


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit