
Programming
6–12
2714 & 2715 Programmer Manual
'
IF x = 8 AND y = 11 TH EN '
BEEP
'cannot backspace beyond
'
area of window
RETURN
'
ELSEIF x = 8 TH EN
y = y - 1
'backspace to end of
'
previous line
LOCATE y, 73
'and locate cursor
ELSE
LOCATE y, x - 1
'locate cursor one position
'
back
END IF
'
PRINT " " + CHR$(29);
'erase the character and then
'
back up
wrt$ = LEFT$(wrt$, LEN(wrt$) - 1) 'remove one character from the
'
string of saved input
'
RETURN
END SUB
'****************************************************************
' This procedure performs all RS232 calls. All information
*
' needed has been defined as global variables:
*
'
rd$ = returned info from RS232 call
*
'
wrt$ = info to send to device
*
'
func% = identifies which RS232 function to perform
*
'
wfm% = array to hold waveform
*
'****************************************************************
SUB RS232.CALLS
'
IF func% = 1 TH EN
GOTO SELECT.DEVICE
ELSEIF func% = 3 TH EN
GOTO SEND.MESSAGE.TO.DEVICE
ELSEIF func% = 5 TH EN
GOTO GET.BINARY.WAVEFORM
END IF
'
'****************************************************************
' This routine opens COM PORT 1 for communication via RS232,
*
' opened for random so can handle both input and output
*
'****************************************************************
' SPEED = 9600 (bits per second-also called BAUD RATE)
*
' PARITY = NONE (parity bit not used)
*
' DATA = 8 (number of data bits per byte)
*
' STOP = 1 (number of stop bits)
*
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: ......