Output, Outputn, Outputmore – Measurement Computing Personal488 rev.3.0 User Manual
Page 107: Outputnmore

Personal488 for Windows 95/98/Me/NT/2000
04-10-01
API Reference 6-39
Additional Output Functions
Driver488 provides additional
Output
functions that are short-form versions of the
OutputX
function.
The following
Output
functions are already defined in your header file.
Output
Syntax
LONG WINAPI Output(DevHandleT devHandle,LPBYTE data);
Remarks
Output
is equivalent to the following call to
OutputX
:
OutputX(devHandle,data,strlen(data),1,1,0L,0,0L);
The
Output
function passes the device handle and data buffer to the
OutputX
function. It determines the
size of the data buffer that you provided, and passes that value as the
count
parameter. It specifies that the
forceAddr
flag is set
TRUE
, which causes Driver488 to address the device if an external device is
specified. The default terminators are chosen by specifying a
0
pointer as the
terminator
parameter.
Synchronous transmission is specified by sending
0
for the
async
parameter, and the completion status
value is ignored by sending a
0
for the
compStat
pointer.
OutputN
Syntax
LONG WINAPI OutputN(DevHandleT devHandle,LPBYTE data,DWORD
count);
Remarks
OutputN
is equivalent to the following call to
OutputX
:
OutputX(devHandle,data,count,0,1,0L,0,0L);
The
OutputN
function passes the device handle and a pointer to the data buffer to the
OutputX
function.
It specifies that the
forceAddr
flag is set
TRUE
, which causes Driver488 to address the device if an
external device is specified. The default terminators are chosen by specifying a
0
pointer as the
terminator
parameter. Synchronous transmission is specified by sending
0
for the
async
parameter, and
the completion status value is ignored by sending a
0
for the
compStat
pointer.
OutputMore
Syntax
LONG WINAPI OutputMore(DevHandleT devHandle, LPBYTE data);
Remarks
OutputMore
is equivalent to the following call to
OutputX
:
OutputX(devHandle,data,strlen(data),1,0,0L,0,0L);
The
OutputMore
function passes the device handle and data buffer to the
OutputX
function. It
determines the size of the data buffer that you provided, and passes that value as the
count
parameter. It
specifies that the
forceAddr
flag is set
FALSE
, so Driver488 does not re-address the device if it is the
same device as that previously used. The default terminators are chosen by specifying a
0
pointer as the
terminator
parameter. Synchronous transmission is specified by sending
0
for the
async
parameter, and
the completion status value is ignored by sending a
0
pointer for the
compStat
pointer.
OutputNMore
Syntax
LONG WINAPI OutputNMore (DevHandleT devHandle, LPBYTE data,
DWORD count);
Remarks
OutputNMore
is equivalent to the following call to
OutputX
:
OutputX(devHandle,data,0,0,0L,0,0L);
The
OutputNMore
function passes the device handle and a pointer to the data buffer to the
OutputX
function. It specifies that the
forceAddr
flag is set
FALSE
, so Driver488 does not re-address the device if
it is the same device as that previously used. The default terminators are chosen by specifying a
0
pointer
as the
terminator
parameter. Synchronous transmission is specified by sending
0
for the
async
parameter, and the completion status value is ignored by sending a
0
pointer for the
compStat
pointer.