Omega Engineering OMB-CHARTSCAN 1400 User Manual page 238

Portable data recorder
Table of Contents

Advertisement

Appendix D
ChartScan Program Examples
Reference Note: You may find Appendix A useful while reading through these examples. Appendix A
contains descriptions and examples of the Application Program Interface (API) Commands.
Contents
Overview ------------------------------------------------------------------------------------------------------------------------D-1
Reading HLL Status using HLL16.BAS --------------------------------------------------------------------------------D-2
Reading HLL Data from T/C and Volts Cards using HLL32.BAS------------------------------------------------D-2
Acquiring Pre-& Post-Trigger Data at Data at Different Rates using SLOW_ACQ.BAS-------------------D-3
Operating Alarms using ALARM2.BAS---------------------------------------------------------------------------------D-6
Using the IEEE 488 SRQ with Alarms using ALAR2SRQ.BAS --------------------------------------------------D-8
Collecting Data in Binary Format using BIN_ACQ.BAS------------------------------------------------------------D-9
Collecting Binary-Formatted High/Low/Last Data using BIN_HLL.BAS ---------------------------------------D-11
Configure for 12 Channels with Continuous Binary Upload using CONTIN_D.BAS ------------------------D-14
Overview
This chapter walks through the example programs that are supplied on the release disk in the EXAMPLES
subdirectory of the CHARTVIEW directory. This directory has additional examples for serial users.
Although written in QuickBASIC, the program logic and the ChartScan device-dependent commands apply
to all languages and computers.
The first group of examples uses the IEEE 488 bus through the Personal488 interface to communicate with
the ChartScan. Each one of these programs begins with a short preamble that opens the driver and
substantiates communications.
After the driver is opened, commands are issued to the driver through character strings in quotes.
QuickBASIC's
commands used most commonly are
ENTER
where addr is the IEEE 488 address of the instrument. To bring the data into a language variable, the
QuickBASIC
OUTPUT
data
send to the device.
SPOLL
instrument. The syntax of the
of the instrument. Right after the
bring the data into a language variable.
Note:
ChartScan User's Manual,
1-14-99
and
commands are used to communicate with the driver. The driver
PRINT
INPUT
gets data from the selected device. The syntax of the
function must be used right after the
INPUT
sends data to the selected device, The syntax of the
", where addr is the IEEE 488 address of the instrument, and out data the string of characters to
is an abbreviation for a Serial Poll that retrieves an 8-bit status response from the selected
SPOLL
The ChartScan is at IEEE 488 address 07 for all IEEE 488 examples.
,
, and
ENTER
OUTPUT
SPOLL
ENTER
command is "
SPOLLaddr
command, the QuickBASIC
SPOLL
.
command is "ENTERaddr",
ENTER
command.
command is "
OUTPUT
OUTPUTaddr;out
", where addr is the IEEE 488 address
function must be used to
INPUT
D-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Omb-chartscan-1400

Table of Contents