User's Manual

R e m o t e C o n t r o l a n d P r o g r a m m i n g R e f e r e n c e f o r t h e F L U K E 1 9 0 f a m i l y o f S c o p e M e t e r ® t e s t t o o l s
p a g e 5 7
WT WRITE TIME
Purpose:
Writes the real time clock time settings. The 24-hours time format is adhered to.
Command Syntax:
WT <time><cr>
where, <time> = string of the following format:
<hours>,<minutes>,<seconds>
e.g. 15,30,0
Response Syntax:
<ackn><cr>
Note: Refer to RD (Read Date), RT (Read Time) and WD (Write Date) commands for
associated functionality
Example: The following example program writes a time into the the ScopeMeters realtime
clock system..
‘***************** Beginning of example program *****************
CLS ‘Clears the PC screen.
OPEN "COM1:1200,N,8,1,CS,DS,RB2048" FOR RANDOM AS #1
PRINT #1, "WT 15,28,0" ‘Sets the real time clock to 03:28 p.m..
GOSUB Acknowledge ‘Input acknowledge from ScopeMeter.
END
‘******************* Acknowledge subroutine *********************
‘Use this subroutine after each command or query sent to the
‘ScopeMeter. This routine inputs the acknowledge response from
‘the ScopeMeter. If the response is non-zero, the previous
‘command was not correct or was not correctly received by
‘the ScopeMeter. Then an error message is displayed and
‘the program is aborted.
Acknowledge:
INPUT #1, ACK ‘Reads acknowledge from ScopeMeter.
IF ACK <> 0 THEN
PRINT "Error "; ACK; ": ";
SELECT CASE ACK
CASE 1
PRINT "Syntax Error"
CASE 2
PRINT "Execution Error"
CASE 3
PRINT "Synchronization Error"
CASE 4
PRINT "Communication Error"
CASE IS < 1
PRINT "Unknown Acknowledge"
CASE IS > 4
PRINT "Unknown Acknowledge"
END SELECT
PRINT "Program aborted."
END
END IF
RETURN
‘******************** End of example program ********************