
Programming
2714 & 2715 Programmer Manual
6–15
'=======================================
' begin read loop for response from 2714 or 2715
'=======================================
'
GOSUB READ.FOR.VERBOSE
'
EXIT SUB
'
'****************************************************************
' This routine will read the 2714 or 2715 response to get a
binary
*
' waveform.
*
'****************************************************************
'GET.BINARY.WAVEFORM:
'
GOSUB READ.FOR.VERBOSE
'
IF LEN(rd$) >= 14 THEN
rd$ = LEFT$(rd$, LEN(rd$) - 4)
'strip off checksum,
'
semiĆcolon and cr/lf
rd$ = RIGHT$(rd$, LEN(rd$) - 9) 'strip off header
'
and byte count
'
FOR x% = 0 TO 511
wfm%(x%) = ASC(MID$(rd$, x% + 1, 1))
'
convert each binary value
'
to ascii
NEXT
END IF
'
EXIT SUB
'
'****************************************************************
' This routine will display the error message if RS232
*
' communication cannot be established
*
'****************************************************************
'
ERROR.DISPLAY:
'
'
save cursor coordinates
'
hold.x% = POS(0)
hold.y% = CSRLIN
'=================
'save screen image
'=================
REDIM before$(7, 41), colr%(7, 41)
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: ......