Chapter 8 Advanced Remote Operation
Waveform Memory Format -
Binary Download Test Program for GPIB
Binary Download Test Program for GPIB
REM 2411B BINARY DOWNLOAD TEST PROGRAM FOR GPIB
REM Language : Microsoft Quick Basic
REM Computer : IBM AT or better
REM GPIB Board : National Instruments AT-GPIB, IEEE488.2
REM Function : The program downloads a 8400 point Sine Wave into Wave 1, starting at
REM Address 0. The data transfer occurs in 5 blocks, the first four blocks containing 2048
REM Data Points and the last containing 208 Data Points.
REM $INCLUDE: 'qbdecl.bas'
COMMON SHARED Arb%
PRINT
PRINT "Initializing GPIB & resetting ARB"
PRINT
CALL IBDEV(0, 16, 0, 12, 1, 0, Arb%)'connect Arb at add 16
CALL ibwrt(Arb%, "*idn?")
ArbResponse$ = SPACE$(100)
CALL IBRD(Arb%, ArbResponse$)
IF IBCNT% > 0 THEN
PRINT "Unit is a : "; MID$(ArbResponse$, 1, IBCNT%)
GOTO GpibWasOk
END IF
PRINT ">>GPIB ERROR <<"
PRINT "Corrective Action REQUIRED"
STOP
GpibWasOk:
SetupParameters:
MaxBlockSize& = 2048
Length& = 8400
DIM ArbData&(Length&)
NumBlocks& = INT(Length& / MaxBlockSize&)
NumPartial& = Length& - NumBlocks& * MaxBlockSize&
PRINT "Calculating a sample Sinewave"
Pie =3.141593
FOR x& = 0 TO Length&
ArbData&(x&) = 32767*SIN((x& / Length& * 10)*2*Pie) + 32767
IF ArbData&(x&) > 65535 OR ArbData&(x&) < 0 THEN STOP
NEXT x&
8-25
Summary of Contents for 2411B
Page 10: ...1 Quick Start...
Page 22: ......
Page 23: ...2 About Arbitrary Waveforms...
Page 30: ......
Page 31: ...Chapter 2 About Arbitrary Waveforms 2411B Block Diagram 2 8 Block Diagram...
Page 32: ...3 Front Panel Menu Operation...
Page 41: ...4 Waveform Creation System...
Page 43: ...Chapter 4 Waveform Creation System User Interface for the Waveform Creation System 4 3...
Page 61: ...5 Multi Instrument Operation...
Page 68: ...6 Performance Verification...
Page 71: ...Chapter 6 Performance Verification Verification Test Sheet 6 4...
Page 72: ...7 Remote Interface Operation...
Page 78: ...Chapter 7 Remote Interface Operation Command Set Command Set 7 7...
Page 79: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 8...
Page 80: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 9...
Page 81: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 10...
Page 82: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 11...
Page 83: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 12...
Page 84: ...Chapter 7 Remote Interface Operation Command Set continued Command Set continued 7 13...
Page 91: ...8 Advanced Remote Operation...
Page 125: ...Appendix...
Page 133: ...AMPLITUDE OFFSET RANGES...
Page 134: ...INDEX...
Page 140: ......