Scriptvar.source; Settime() - Keithley 708B Reference Manual

Switching matrix
Hide thumbs Also See for 708B:
Table of Contents

Advertisement

Models 707B and 708B Switching Matrix Reference Manual

scriptVar.source

This attribute holds the source code of a user script.
Type
TSP-Link accessible
Attribute (R)
No
Usage
code = scriptVar.source
scriptVar
code
Details
The loadscript or loadandrunscript and endscript keywords are not included in the source code.
Example
print(test1.source)
Also see
scriptVar.list()

settime()

This function sets the real-time clock (sets current time of the system).
Type
TSP-Link accessible
Function
Yes
Usage
result = settime(time)
result = settime(hour, minute, second)
result
time
hour
minute
second
year
month
day
707B-901-01 Rev. A / August 2010
Affected by
Not applicable
The name of the variable that references the script that contains the source code
The body of the script
(on page 7-164)
Affected by
A string representing the current time of day
The time in seconds since January 1, 1970 UTC. Time to be passed in as:
os.time({year = year, month = month, day = day, hour = hour,
min = min, sec = sec})
The desired hour from 00 to 23
The desired minute from 00 to 59
The desired second from 00 to 59
A full year (2006 or later)
The desired month from 1 to 12
The desired day from 1 to 31
Where saved
Default value
Not saved
Not applicable
Gets source code for a script named test1.
Where saved
Default value
Section 7: Command reference
7-167

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

707b

Table of Contents