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

delete (MathScript RT Module Function)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Owning Class: support

Requires: MathScript RT Module

Syntax

delete(filename)

delete(obj)

Description

Deletes a file or a plot object. delete(filename) deletes the file you specify in filename. delete(obj) deletes a plot object and removes the object from the Variable List in the LabVIEW MathScript Window.

Details

Examples

Inputs

Name Description
filename Specifies the path to the file you want to delete. If filename is a relative path, LabVIEW begins searching for the file in the current working directory. filename can include the wildcards ? and *. filename is a string.
obj Specifies the reference to the plot object you want to delete. Plot objects include line, plot area, plot window, and text objects. If obj is a line object or a text object, this function removes the object from the plot area. If obj is a plot area object, this function clears the plot area. If obj is a plot window object, this function closes the plot window.

Details

If you use this function in a stand-alone application or shared library and filename 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 filename is a relative path, LabVIEW searches for the file in the path returned by the Default Data Directory VI.

This function is not supported in the LabVIEW Run-Time Engine if you use the delete(obj) syntax. This syntax can remain in your scripts when you build a stand-alone application or shared library, but the LabVIEW Run-Time Engine does not execute this function.

The following table lists the support characteristics of this function.

Supported in the LabVIEW Run-Time Engine Other
Supported on RT targets No

Examples

fid = fopen('filename.txt', 'a');
fclose(fid);
delete('filename.txt')

Related Topics

fclose
fopen
get
ref_plotarea
ref_plotwin
set


 

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