14: TSP command reference 2470 High Voltage SourceMeter Instrument
14-78 2470-901-01 Rev. A / May 2019
file.write(fileNumber, "Tested to Company Standard ABC.123\n")
-- Ensure a hurry-up of data written to the file before close or script end
file.flush(fileNumber)
-- Close the data file
file.close(fileNumber)
This example writes a string that indicates that the readings were made for a certain reason, such as to test to
a company standard.
Also see
None
file.mkdir()
This function creates a directory at the specified path on the USB flash drive.
Type TSP-Link accessible
Affected by Where saved Default value
Function No
Usage
file.mkdir("path")
A string that contains the path of the directory
Details
The directory path must be absolute. The name of the directory must not already exist on the flash
drive.
Example
Create a new directory named TestData.
Also see
None