Microsoft / Lattice C Example; Fortran Example; Ieee Bus Commands And Functions - Brainboxes IE-340 User Manual

Pc ieee 488 interface
Table of Contents

Advertisement

PC IEEE Reference
__________________________ _

Microsoft / Lattice C Example.

#include <stdio.h>
int ieeedata,ieeectrl;
char buffer[255];
void main(){
ieeedata=open("IEEEDATA",O_RDWR);
ieeectrl=open("IEEECTRL",O_RDWR);
write(ieeectrl,"REMOTE 5 OUTPUT 'R3T3X'\n",24);
read(ieeedata,buffer,255);
printf("%s\n",buffer); }

Fortran Example.

_______________ _
CHARACTER BUFFER*255
OPEN(1,FILE='IEEECTRL',STATUS=OLD, ACCESS='SEQUENTIAL')
OPEN(2,FILE='IEEEDATA',STATUS=OLD, ACCESS='SEQUENTIAL')
WRITE(1,*)"REMOTE 5 OUTPUT 'R3T3X'"
READ(2,*)BUFFER
WRITE(*,*)'',BUFFER
________________________________ _

IEEE Bus Commands And Functions.

ABORT
Resets bus, pulse IFC, assert REN, assert ATN.
BASE=
Sets the PC IEEE board base i/o address.
CLEAR
Returns some or all devices to predetermined state.
CONFIGURE
Specifies how device responds to PPOLL.
DISABLE
Prevents some or all devices responding to PPOLL.
END=
Sets End of Sequence method for OUTPUTs.
ENTER
Ask for data from IEEE device.
EOS=
Specifies EOS byte for IEEE data INPUTs to PC.
INIT
Restores IEEE bus and driver to defaults state.
LOCAL
Enable front panel control. REN, ATN sent false.
LOCKOUT
Disable front panel controls. Performs LLO.
NO TO
Disables time out.
OUTPUT
Sends literal data string to addressed devices.
PPOLL
Performs a complete Parallel Poll
READ
Reads one byte of data from addressed talker.
REMOTE
Puts some or all devices under PSI BOX control.
SLAVE
Puts PC into peripheral mode.
SPOLL
Serially Polls one or more devices.
STRING
Sends literal data string to current bus device.
TO
Sets an i/o timeout value.
TRIGGER
Initiates pre programmed action in devices.
UNCONFIGURE Prevents devices responding to Parallel Poll.
WAIT SRQ
Waits till SRQ is asserted by device.
WAIT MLA
Waits till PC is addressed to listen.
WAIT MTA
Waits till PC is addressed to talk.
NO ATN
Set ATN false.
NO REN
Set REN false.
LISTEN
Sends one or more Listen Addresses.
ATN
Asserts ATN line true.
Page 8
World Of PC IEEE.
Chapter 1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ie-736Ie-769Ie-780Pc ieee card

Table of Contents