type (MathScript RT Module Function)

LabVIEW 2012 MathScript RT模块帮助

版本日期:June 2012

产品编号:373123C-0118

»查看产品信息
下载帮助
(仅限Windows)

Owning Class: support

Requires: MathScript RT Module

Syntax

type(f)

Description

Displays the contents of the ASCII file specified by f in the Output Window.

Details

Examples

Inputs

Name Description
f Specifies the ASCII file whose contents you want to display. If you do not specify the path of f, LabVIEW searches in the current path.

Details

You can call the type function in the LabVIEW MathScript Window but not in the MathScript Node.

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)

Examples

t = 0:0.1:pi;
x = sin(t);
fid = fopen('test.dat', 'w');
c = fprintf(fid, '%f\n', x);
fclose(fid);
type('test.dat')

Related Topics

fclose
fopen
fprintf

文章是否对您有帮助?

没有帮助