|Download Help (Windows Only)|
Owning Class: support
Requires: MathScript RT Module
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.
|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.|
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|
fid = fopen('filename.txt', 'a');