beautypg.com

Set day – Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 145

background image

Section 5

Command Descriptions

5.75

SET DAY

The SET DAY command is used to set the internal day of week. Any of the DAY

command output formats may be used, either numeric, abbreviated or unabbreviated.

SYNTAX

SET

DAY [;] {d | da | day}

d

is a numeric representation from 1 (sunday) to 7 (saturday).

da

is an abbreviated representation (SUN, MON, TUE, WED, THU,

FRI

, SAT)

day

is an un-abbreviated representation (SUNDAY, MONDAY,

TUESDAY

, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY)

RESPONSE

None

MODE Any

BUS STATES

None

EXAMPLES

PRINT#1,"SET DAY 3"
PRINT#1,"DAY"
INPUT #1,D$

Read the day string

PRINT D$

Printed to the screen

TUESDAY

Output is format dependent

PRINT#1,"SET DAY WED"
PRINT#1,"DAY"
INPUT #1,D$

Read the day string

PRINT D$

Printed to the screen

WEDNESDAY

Output is format dependent

PRINT#1,"SET DAY FRIDAY"
PRINT#1,"DAY"
INPUT #1,D$

Read the day string

PRINT D$

Printed to the screen

FRIDAY

Output is format dependent