beautypg.com

Day format – Measurement Computing Micro 488/EX rev.2.1 User Manual

Page 94

background image

Section 5

Command Descriptions

5.24

DAY FORMAT

The DAY FORMAT command allows the user to select the format of the DAY

command response. Several different formats are provide including numeric,
abbreviated text and un-abbreviated text. The power-on factory default is un-
abbreviated text. This default can be modified with the SAVE command. Refer to the
SAVE

command for details. The day of week text can be sent as upper or capitalized

lower case, as determined by the CASE command.

SYNTAX

DAY

FORMAT [;] {D | DA | DAY}

The option specifies one of the following formats…

options=

D

DA

DAY

1

SUN

SUNDAY

2

MON

MONDAY

3

TUE

TUESDAY

4

WED

WEDNESDAY

5

THU

THURSDAY

6

FRI

FRIDAY

7

SAT

SATURDAY

RESPONSE

None

MODE Any

BUS STATES

None

EXAMPLES

PRINT#1,"DAY FORMAT D"
PRINT#1,"DAY"
INPUT #1,D$

Read the day string

PRINT D$

Printed to the screen

3

Output is day dependent