Owner manual

TA660 User's Manual Catalyst Enterprises, Inc
138
In order to minimize the amount of writing to the event file, the commands used to modify
the event file are stored in a buffer. After all the commands to modify the event file have
been completed, the following command must be used to save and close the file.
event.Close();
“event” is the user name defined in the CEventBuilder statement.
To modify the event file the user must use the following command for each change:
event.SetField(nEventNo, nFieldIndex, strNewValue);
To read the value of each field of the event file the user must use the following command:
event.GetField(nEventNo, nFieldIndex, strValue);
“event” is the user name defined in the CEventBuilder statement.
“strNewValue” is the string value to be entered in the fields, place the desired value inside
quotes, for all fields except EVN_XFER (see table below).
“strValue” is the variable defined by the user to contain the results of the read command.
This variable must be defined as a “CString” type.
XFER type StrNewValue
StrValue
A32 XFER_A32
D32 (Data XFERs only IRDY = 0, TRDY = 0, DEVSEL = 0) XFER_D32
D32 (Data XFERs including Wait Cycles, DEVSEL = 0) XFER_D32S
MX32 (DE_Multiplex) XFER_MX32
A64 XFER_A64
D64 (Data XFERs only IRDY = 0, TRDY = 0, DEVSEL = 0) XFER_D64
D64 (Data XFERs including Wait Cycles, DEVSEL = 0) XFER_D64S
MX64 (DE_Multiplex) XFER_MX64
IDLE XFER_IDLE
Per User Defined XFER_USER
“nEventNo” is used to select which event to modify. The following table defines the valid
parameters:
EVENT NAME nEventNo
EV1 EVN_EV1
EV2 EVN_EV2
EV3 EVN_EV3
EV4 EVN_EV4
EV5 EVN_EV5
EV6 EVN_EV6
EV7 EVN_EV7
EV8 EVN_EV8