12-108 Return to Section Topics 2600S-901-01 Rev. C / January 2008
Section 12: Instrument Control Library Series 2600 System SourceMeter® Instruments Reference Manual
timer functions
The functions in this group are used for the timer. The timer can be used to measure the time it
takes to perform various operations. Use the
timer.reset function at the beginning of an operation
to reset the timer to zero, and then use the timer.measure.t at the end of the operation to measure
the elapsed time.
status.system5.*
status.system5.condition
status.system5.enable
status.system5.event
* = condition, enable or event
Attribute TSP-Link system5 data structure register set.
Usage Reads condition, enable and event registers:
enablereg = status.system5.condition
enablereg = status.system5.enable
enablereg = status.system5.event
Writes to enable register:
status.system5.enable = enablereg
Set enablereg to one of the following values:
0 Clears all bits.
1 or status.system5.EXTENSION_BIT Sets EXT bit (B0).
1 or status.system5.EXT Sets EXT bit (B0).
status.system5.NODEn Sets a node bit (Bn); n = 57 to 64.
Remarks • In an expanded system (TSP-Link), this attribute is used to read or write to the system5
node registers.
• Reading a system5 node register returns a numeric value whose binary equivalent
indicates which register bits are set. The bits of the system5 node register are identified as
follows:
Bit B0 – EXT bitBit B4 – Node 60Bit B8 – Node 64
Bit B1 – Node 57Bit B5 – Node 61Bits B9 through B15 – Not used
Bit B2 – Node 58Bit B6 – Node 62
Bit B3 – Node 59Bit B7 – Node 63
• For example, assume value 9 is returned for the enable register. The binary equivalent is
0000000000001001. This value indicates that bit 0 (EXT) and bit 3 (Node 59) are set.
• Assigning a value to the status.system5.enable attribute sets the extension bit or a
node bit of the system5 node enable register.
Details See “System Summary Event Registers” in Appendix D.
Also see status.system.*, status.system2.*, status.system3.*, status.system4.*
Example Sets the extension bit of the system5 enable register:
status.system5.enable = status.system5.EXT
timer.measure.t
Function Measures the elapsed time since the timer was last reset.
Usage time = timer.measure.t()
time Returns the elapsed time in seconds. (1µs resolution).
Remarks • This function will return the elapsed time in seconds since the timer was reset.
• The returned resolution for time depends on how long it has been since the timer was
reset. It starts with 1µs resolution and starts to lose resolution after about 2.8 minutes.
Also see timer.reset