Measurement-computing Analyzer488 Manual do Utilizador Página 267

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 281
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 266
Appendix F Sample BASIC Program
F.1
Sample BASIC Program
10 'Program to illustrate use of the ARM command
20 'This program uses the Wave488 as a bus device at
30 'address 20 to Generate a Service Request
35 'and provide data
40 '
50 PRINT"ARM SRQ, TRIGGER ,CAPTURE Demo Program"
55 '
60 OPEN "COM2: 9600,N,8,2,CS,DS" AS 1
70 PRINT#1,"@@" 'Reset the Analyzer488
80 GOSUB 440 'Delay
90 PRINT#1,"ERASE" 'Clear the Analyzer488 capture buffer
100 GOSUB 440 'Delay
105 'Put the Analyzer488 in High Level Mode
110 PRINT#1,"CONTROLLER ON"
120 PRINT#1,"abort" 'Clear the Wave488
130 'Configure the Analyzer488 to trigger on
140 'the SRQ line asserted during one data transfer,
145 'wait for 11,000 bytes to be transfered,
150 'capture 15,000 bytes (after waiting
155 'for the initial 11,000), and after the capture
160 'sequence has completed, use step mode handshaking
170 PRINT#1,"SET TRIGGER ON SRQ COUNT 1 DELAY 11000 POST
15000 ATEND STOP"
180 'Arm the Analyzer488 for the events SRQ, TRIGGER,
CAPTURE
190 PRINT#1,"ARM SRQ TRIGGER CAPTURE"
195 'Make the Wave488 generate an SRQ after 2 seconds
200 PRINT#1,"OUTPUT20;t2000x"
210 PRINT "Wave should generate an SRQ in 2 seconds"
220 'Put the Analyzer in Low Level Controller mode
225 'to allow the use of
230 'different handshake selections
240 PRINT#1,"controller off"
250 PRINT#1,"handshake step"
255 'Assert ATN and REN
258 'to make the Wave488 listen to the following commands
260 PRINT#1,"ASSERT REN ATN"
270 'Make the Analyzer488 a talker
Vista de página 266
1 2 ... 262 263 264 265 266 267 268 269 270 271 272 ... 280 281

Comentários a estes Manuais

Sem comentários