Owning Class: support
Requires: MathScript RT Module
type(f)
Displays the contents of the ASCII file specified by f in the Output Window.
| 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. |
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) |
t = 0:0.1:pi;
x = sin(t);
fid = fopen('test.dat', 'w');
c = fprintf(fid, '%f\n', x);
fclose(fid);
type('test.dat')