File.mkdir(); File.open() - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Model 2450 Interactive SourceMeter® Instrument Reference Manual

file.mkdir()

This function creates a directory at the specified path on the USB flash drive.
Type
TSP-Link accessible
Function
No
Usage
file.mkdir(path)
path
Details
The directory path must be absolute.
Example
file.mkdir("TestData")
Also see
None

file.open()

This function opens a file on the USB flash drive for later reference.
Type
TSP-Link accessible
Function
No
Usage
fileNumber = file.open(fileName, accessType)
fileNumber
fileName
accessType
Details
The path to the file to open must be absolute.
2450-901-01 Rev. B/September 2013
Affected by
The path of the directory
Affected by
A number identifying the open file that you use with other file commands to write,
read, flush, or close the file after opening
The file name to open, including the full path of file
The type of action to do:
Append the file: file.MODE_APPEND
Read the file: file.MODE_READ
Write to the file: file.MODE_WRITE
Section 8: TSP command reference
Where saved
Default value
Create a new directory named TestData.
Where saved
Default value
8-59

Advertisement

Table of Contents
loading

Table of Contents