beautypg.com

Outputi (peripheral mode) – Measurement Computing Personal488 rev.3.0 For DOS & Windows 3.Xi User Manual

Page 355

background image

15B. Driver488/SUB, W31, W95, & WNT

III. COMMAND REFERENCES - 15. Command References

III-340

Personal488 User’s Manual, Rev. 3.0

OutputI Function

Terminators

Variable

OutputXI(ADC,IResp (0),1000,1,Term,1,1)

Choice

Pass starting location

OutputI (ADC, IRESP())
OutputMoreI (ADC, IResp ())

Yes

Pass entire array

OutputNI (ADC< IResp (0), 1000)
OutputNMoreI (ADC, IResp (0), 1000)

No

Pass starting location

where:

SResp

is

String * 1000

, and

IResp(1000)

is

integer

.

OutputI (Peripheral Mode)

Driver488/W31 only (Visual Basic only)

OutputXI

SYNTAX

OutputXI (ByVal devHandle%, data%, ByVal count&, ByVal last%,

ByVal forceAddr%, Term As terms, ByVal async%, compstat%)
As Long

devHandle%

refers to either an interface or an external device.

data%

points to the bytes to send.

count&

is the number of characters to send.

last%

is a flag that forces the device output terminator to be sent with the data.

forceAddr%

is ignored.

terms

is a pointer to a terminator structure that is used to set up the output

terminators. If

terms

is set to

0

, the default terminator is used.

async%

is a flag that allows asynchronous data transfer.

compStat%

is a pointer to an integer containing completion status information.

RETURNS

-1 if error; otherwise, the number of characters transferred

MODE

*CA

BUS STATES

Determined by the Controller.

SEE ALSO

EnterI, Term, TimeOut, Buffered

The

OutputI

commands for Visual Basic are identical to the standard

Output

commands except that

they use an integer array for the output data rather than a string.

In Peripheral mode, the

OutputXI

command sends data to the interface under control of the Active

Controller. The Active Controller must put the interface into the Talk state and configure some bus
device to accept the transferred data. The Talk state can be checked with the

Status

command, or can

cause an interrupt via the

Arm

command. A time-out error occurs, if enabled, if no bus device accepts

the data within the time out period after issuing the

OutputXI

command. Even as a Peripheral,

Driver488 might be the System Controller. If Driver488 is the System Controller and

AutoRemote

is

enabled, then Driver488 asserts Remote Enable (

REN

) before sending any data. The

OutputXI

command in Peripheral mode is otherwise identical to the

OutputXI

command in Controller mode.

Additional OutputI Functions

Driver488 provides additional

OutputI

functions that are short form versions of the

OutputXI

function. The additional

OutputI

functions are:

OutputI

and

OutputNI

. In Peripheral mode, the

device handle must always refer to an I/O adapter, and the

forceAddr%

flag is ignored. Thus,

OutputMoreI

is equivalent to

OutputI

, and

OutputNMoreI

is equivalent to

OutputNI

.