
Wavemeter
jr
Operating Manual
Appendix A
Burleigh Instruments, Inc. (04659-M-00 Rev E)
page A-1
Burleigh Park, Fishers, NY 14453
APPENDIX A. SAMPLE PROGRAM
This Appendix contains an illustrative sample program for receiving data from the
Wavemeter
jr
and displaying it on a computer. You can copy and compile this
program as written, or embed sections in your own program as needed to suit the
application.
// filename - wavewmtr.c
// copyright 1995 Burleigh Instruments
// #####-#-## Rev.A
// Assembly:
// Compiler/Assembler
// Description
// this code was written using Microsoft C/C++ language
// it has been tested using the WA2500
// the example is intended to be illustrative not exhaustive
// The _bios_serialcom routine uses INT 0x14 to provide serial communications
// services. The serial_port parameter is set to 0 for COM1, to 1 for COM2,
// and so on.
// The service parameter can be set to one of the following constants:
// _COM_INIT - Sets the port to the specified parameters
// _COM_SEND - Transmits the data characters over the selected serial port
// _COM_RECEIVE - Accepts an input character from the selected serial port
// _COM_STATUS - Returns the current status of the selected serial port
// The data parameter is ignored if service is set to _COM_RECEIVE or
// _COM_STATUS. The data parameter for _COM_INIT is created by combining
// (with the OR operator) one or more of the following constants:
// _COM_CHR7 7 data bits
// _COM_CHR8 8 data bits
// _COM_STOP1 1 stop bit
// _COM_STOP2 2 stop bits
// _COM_NOPARITY No parity
// _COM_EVENPARITY Even parity
// _COM_ODDPARITY Odd parity
// _COM_110 110 baud
// _COM_150 150 baud
// _COM_300 300 baud
// _COM_600 600 baud
// _COM_1200 1200 baud
// _COM_2400 2400 baud
// _COM_4800 4800 baud
// _COM_9600 9600 baud
// The function returns a 16-bit integer whose high-order byte contains status
// bits. The meaning of the low-order byte varies, depending on the service
// value. The high-order bits have the following meanings:
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Summary of Contents for WAVEMETER JR WA-2500
Page 3: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 29: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 33: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 35: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 43: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...
Page 45: ...Artisan Technology Group Quality Instrumentation Guaranteed 888 88 SOURCE www artisantg com...