
Programming
6–22
2714 & 2715 Programmer Manual
'
NOTE:
'
see explanation of CURVE
'
command for explanation of
'
calculating checksum
'
check.sum& = 3
'
FOR x% = 0 TO 511
check.sum& = check.sum& + wfm%(x%)
NEXT
'
check.sum& = check.sum& MOD 256
check.sum& = (256 - check.sum&) MOD 256
'
IF check.sum& < 16 THEN
wrt$ = wrt$ + "0"
END IF
'
wrt$ = wrt$ + HEX$(check.sum&)
'
'
finally the waveform is ready
'
to send
'
func% = 3
CALL RS232.CALLS
'
RETURN
'
'
display up to 5 lines of
'
response, 66 characters
'
per line
'
FRAGMENT.RESPONSE:
'
display.line% = 1
DO WHILE display.line% < 6
rd1$ = MID$(rd$, 1, 66)
posit = 1
DO WHILE posit <> 0
posit = INSTR(rd1$, CHR$(10))
IF posit <> 0 THEN
MID$(rd1$, posit, 1) = " "
END IF
LOOP
posit = INSTR(rd1$, CHR$(13))
IF posit <> 0 THEN
rd1$ = LEFT$(rd1$, posit - 1)
Summary of Contents for 2714
Page 4: ......
Page 11: ...Introduction ...
Page 12: ......
Page 38: ...Introduction to Programming 1 26 2714 2715 Programmer Manual ...
Page 39: ...Message Structure ...
Page 40: ......
Page 54: ...Instrument Specific Message Structure 2 14 2714 2715 Programmer Manual ...
Page 55: ...Functional Groups ...
Page 56: ......
Page 85: ...Command Query ...
Page 86: ......
Page 179: ...Status Reporting ...
Page 180: ......
Page 197: ...Programming ...
Page 198: ......
Page 266: ...Programming 6 68 2714 2715 Programmer Manual ...
Page 267: ...Appendices ...
Page 268: ......
Page 276: ...Appendix A RS 232 Concepts A 8 2714 2715 Programmer Manual ...
Page 296: ...Appendix B GPIB System Concepts B 20 2714 2715 Programmer Manual ...
Page 297: ...Index ...
Page 298: ......
Page 307: ......
Page 308: ......