2606B System SourceMeter® Instrument Reference Manual
Section 7: TSP command reference
2606B-901-01 Rev. B / May 2018
7-95
Example
format.asciiprecision = 10
x = 3.14159265
format.data = format.ASCII
printnumber(x)
format.data = format.REAL64
printnumber(x)
Output a number represented by
x
in ASCII
using a precision of 10, then output the same
number in binary using double precision
format.
Output:
3.14100
#0ñÔÈSû! @
Also see
(on page 7-92)
(on page 7-93)
(on page 7-153)
(on page 7-154)
fs.chdir()
This function sets the current working directory.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
workingDirectory
= fs.chdir(
path
)
workingDirectory
Returned value containing the working path
path
A string indicating the new working directory path
Details
The new working directory path may be absolute or relative to the current working directory.
An error is logged to the error queue if the given path does not exist.
Example
testPath = fs.chdir("/usb1/")
Change the working directory to
usb1
.
Also see
None