598220
433
Verklein
Vergroot
Pagina terug
1/476
Pagina verder
Controller Programs
2001-900-01 Rev. K / August 2010 F-9
IBM PC/XT/AT with National
GPIB PC Interface
F.12 Introduction
The following program sends a command message to the
Model 2001 from an IBM PC/XT/AT computer and displays
a response message on the CRT. The computer must be
equipped with the National GPIB PC Interface and the DOS
2.00 (or later revision) operating system. Interface software
must be installed and configured as described in the instruc-
tion manual.
F. 13 D i re c t io n s
1. Using the front panel MENU key and the GPIB menu
item, set the primary address of the Model 2001 to 16.
2. With the power off, connect the Model 2001 to the
IEEE-488 interface installed in the IBM computer.
3. Type in BASICA on the computer keyboard to get into
the IBM interpretive BASIC language.
4. Place the interface software disk in the default drive,
type LOAD “DECL”, and press the return key.
5. Add the lines below to lines 1-6 which are now in mem-
ory. Modify the address in lines 1 and 2, as described in
the National instruction manual.
6. Run the program and type in the desired command mes-
sage. For example, to request a reading, type in
:FETCh? and press return. The reading will be displayed
on the CRT.
NATIONAL
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
CLS
NA$=”GPIB0”:CALL IBFIND(NA$,BRD0%)
NA$=”DEV1”:CALL IBFIND(NA$,M2001%)
V%=16:CALL IBPAD(M2001%,V%)
V%=&H102:CALL IBPOKE(BRD0%,V%)
V%=1:CALL IBSRE(BRD0%,V%)
INPUT “Enter Program Message “;CMD$
IF CMD$=”EXIT” THEN 210
IF CMD$=”” THEN 70
CALL IBWRT (M2001%,CMD$)
Length = LEN(CMD$)
FOR I = 1 TO Length
Char$ = MID$(CMD$, I, 1)
IF Char$ = “?” THEN GOTO 170
NEXT
GOTO 70
RD$=SPACE$(100)
CALL IBRD(M2001%,RD$)
PRINT RD$
GOTO 70
V%=0:CALL IBONL(M2001%,V%)
CALL IBONL(BRD0%,V%)
END
Clear screen.
Find board descriptor.
Find instrument descriptor.
Set primary address to 16.
Set timeouts.
Set REN true.
Prompt for commands.
See if program is to be halted.
Check for null input.
Send command string.
Determine length of input string.
Identify character in string.
If “?”, then goto 170.
If not a query, goto 70.
Define reading input buffer.
Address 2001 to talk.
Display response message.
Repeat.
Close instrument file.
433

Hulp nodig? Stel uw vraag in het forum

Spelregels

Misbruik melden

Gebruikershandleiding.com neemt misbruik van zijn services uitermate serieus. U kunt hieronder aangeven waarom deze vraag ongepast is. Wij controleren de vraag en zonodig wordt deze verwijderd.

Product:

Bijvoorbeeld antisemitische inhoud, racistische inhoud, of materiaal dat gewelddadige fysieke handelingen tot gevolg kan hebben.

Bijvoorbeeld een creditcardnummer, een persoonlijk identificatienummer, of een geheim adres. E-mailadressen en volledige namen worden niet als privégegevens beschouwd.

Spelregels forum

Om tot zinvolle vragen te komen hanteren wij de volgende spelregels:

Belangrijk! Als er een antwoord wordt gegeven op uw vraag, dan is het voor de gever van het antwoord nuttig om te weten als u er wel (of niet) mee geholpen bent! Wij vragen u dus ook te reageren op een antwoord.

Belangrijk! Antwoorden worden ook per e-mail naar abonnees gestuurd. Laat uw emailadres achter op deze site, zodat u op de hoogte blijft. U krijgt dan ook andere vragen en antwoorden te zien.

Abonneren

Abonneer u voor het ontvangen van emails voor uw Keithley 2001 bij:


U ontvangt een email met instructies om u voor één of beide opties in te schrijven.


Ontvang uw handleiding per email

Vul uw emailadres in en ontvang de handleiding van Keithley 2001 in de taal/talen: Engels als bijlage per email.

De handleiding is 2,31 mb groot.

 

U ontvangt de handleiding per email binnen enkele minuten. Als u geen email heeft ontvangen, dan heeft u waarschijnlijk een verkeerd emailadres ingevuld of is uw mailbox te vol. Daarnaast kan het zijn dat uw internetprovider een maximum heeft aan de grootte per email. Omdat hier een handleiding wordt meegestuurd, kan het voorkomen dat de email groter is dan toegestaan bij uw provider.

Uw handleiding is per email verstuurd. Controleer uw email

Als u niet binnen een kwartier uw email met handleiding ontvangen heeft, kan het zijn dat u een verkeerd emailadres heeft ingevuld of dat uw emailprovider een maximum grootte per email heeft ingesteld die kleiner is dan de grootte van de handleiding.

Er is een email naar u verstuurd om uw inschrijving definitief te maken.

Controleer uw email en volg de aanwijzingen op om uw inschrijving definitief te maken

U heeft geen emailadres opgegeven

Als u de handleiding per email wilt ontvangen, vul dan een geldig emailadres in.

Uw vraag is op deze pagina toegevoegd

Wilt u een email ontvangen bij een antwoord en/of nieuwe vragen? Vul dan hier uw emailadres in.



Info