Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

type (MathScript RT Module Function)

LabVIEW 2011 MathScript RT Module Help

Edition Date: June 2011

Part Number: 373123B-01

»View Product Info

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


 

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