
Programming
2714 & 2715 Programmer Manual
6–13
' EOL = CRLF (carriage return/line feed as terminator)
*
' FLOW CONTROL = NONE (no "handshaking")
*
' ECHO = OFF (only needed for terminal emulation)
*
' VERBOSE = ON (guarantees a response for each communication
*
'****************************************************************
' If the 2714 or 2715 has not been configured to agree with the
above
*
' parameters, the program will display an error message and
*
' force the user to change the 2714 or 2715. Program will not
execute
*
' otherwise.
*
'****************************************************************
' CS = 0 (suppress checking the CLEAR TO SEND line)
*
' DS = 0 (suppress checking the DATA SET READY line)
*
' RB = 2048 (size in bytes of the receive buffer
*
' TB = 2048 (size in bytes of the transmit buffer)
*
'****************************************************************
'
SELECT.DEVICE:
'
buffer$ = "N"
'initialize these two
'
indicators
read.error% = 0
'
OPEN "com1:9600,n,8,1,CS,DS,rb 2048,tb 2048" FOR
RANDOM AS #1
'
' =====================================================
' clear the RS232 buffers and reset STATUS reporting to
' insure no messages pending
=======================================================
'
lc.status = INP(&H3FB)
'get line control register
'
(COM1)
lc.status = lc.status OR 64
'set the break bit to on
OUT &H3FB, lc.status
'send the modified
'
register contents back
'
SLEEP 1
'wait 1 second
'
lc.status = INP(&H3FB)
'get line control register
'
(COM1)
lc.status = lc.status AND (NOT 64) 'reset the break bit
OUT &H3FB, lc.status
'send the modified register
'
contents back
'
========================================================
Содержание 2714
Страница 4: ......
Страница 11: ...Introduction ...
Страница 12: ......
Страница 38: ...Introduction to Programming 1 26 2714 2715 Programmer Manual ...
Страница 39: ...Message Structure ...
Страница 40: ......
Страница 54: ...Instrument Specific Message Structure 2 14 2714 2715 Programmer Manual ...
Страница 55: ...Functional Groups ...
Страница 56: ......
Страница 85: ...Command Query ...
Страница 86: ......
Страница 179: ...Status Reporting ...
Страница 180: ......
Страница 197: ...Programming ...
Страница 198: ......
Страница 266: ...Programming 6 68 2714 2715 Programmer Manual ...
Страница 267: ...Appendices ...
Страница 268: ......
Страница 276: ...Appendix A RS 232 Concepts A 8 2714 2715 Programmer Manual ...
Страница 296: ...Appendix B GPIB System Concepts B 20 2714 2715 Programmer Manual ...
Страница 297: ...Index ...
Страница 298: ......
Страница 307: ......
Страница 308: ......