![Wavelength Electronics LFI-3751 User Manual Download Page 124](http://html1.mh-extra.com/html/wavelength-electronics/lfi-3751/lfi-3751_user-manual_3839339124.webp)
124
Chapter 4 - Remote Interface Reference
Example BASIC Control Program for IBM PC Compatible Machines
Example BASIC Control Program for IBM PC
Compatible Machines
1000 ‘ LFI-3751 RS-232 Control Program for IBM PC Compatible Machines
1001 ‘
1002 ‘ Confi gure the COM Port #1 for RS-232 communications with the following settings
1003 ‘
1004 ‘
Baud: 19200
1005 ‘
Parity: None
1006 ‘
Data: 8
1007 ‘
Stop: 1
1008 ‘
1009 OPEN “COM:19200,N,8,1,CD0,CS0,DS0,RB256,RS” FOR RANDOM AS #1 LEN=256
1010 ‘
1011 ‘ Get the instruments RS-232 address
1012 ‘
1013 PRINT “Enter instrument’s RS-232 address [i.e. 01]”;
1014 INPUT ADDRESS$
1015 ‘
1016 ‘ The following loop issues command packets to the instrument and prints out the
1017 ‘ instrument’s response packets
1018 ‘
1019 RS232LOOP:
1020 ‘
1021 ‘ Determine if the command is a read or write command and enter a valid command
1022 ‘ code. Enter a valid data fi eld.
1023 ‘
1024 PRINT “Enter command type [ 1 - Read , 2 - Write]:”;
1025 INPUT TYPE$
1026 PRINT “Enter command code:”;
1027 INPUT CODE$
1028 IF TYPE$=”1" THEN DATA$=”+000.000"
1029 ELSE PRINT$ “Enter data [i.e. “xxx.xxx]:”;:INPUT DATA$
1030 COMMAND$=”!1"+ATYPE$+CODE$+DATA$
1031 ‘
Summary of Contents for LFI-3751
Page 10: ...10 This page intentionally left blank ...
Page 13: ...1 Chapter 1 Quick Start 13 1 ...
Page 20: ...20 This page intentionally left blank ...
Page 21: ...2 Chapter 2 Front Panel Operation 21 2 ...
Page 34: ...34 This page intentionally left blank ...
Page 54: ...54 This page intentionally left blank ...
Page 68: ...68 This page intentionally left blank ...
Page 69: ...3 Chapter 3 Rear Panel Operation 69 3 ...
Page 75: ...3 4 Chapter 4 Remote Interface Reference 75 4 ...
Page 88: ...88 This page intentionally left blank ...
Page 127: ...5 Chapter 5 Specifications 127 5 ...
Page 131: ...Appendix CAT 220 Cable Accessory Diagram 131 ...