Appendix D

ChartScan Program Examples

 

 

 

 

Collecting Binary-Formatted HLL Data using BIN_HLL.BAS

The following program, BIN_HLL.BAS, in the EXAMPLES directory will set up the ChartScan to collect High/Low/Last channel readings in a binary format rather than the default ASCII format. This is inherently faster than ASCII format, but the data must be deciphered after it is collected to yield temperature values.

This program configures the channels, uploads HLL data in High speed binary mode, decodes this data and displays it on the screen.

Although not necessary, it is good practice to reset the ChartScan at the beginning of your application by sending it the “*R” command and then waiting a few seconds.

'Establish communication with the DRIVER488

OPEN "\DEV\IEEEOUT" FOR OUTPUT AS #1

IOCTL #1, "BREAK"

PRINT #1, "RESET"

OPEN "\DEV\IEEEIN" FOR INPUT AS #2

PRINT #1, "TIMEOUT 5"

PRINT #1, "ERROR ON"

PRINT #1, "FILL ERROR"

PRINT #1, "TERM IN LF EOI"

'Program the ChartScan to power on with Factory default

PRINT #1, "CLEAR 07"

PRINT #1, "OUTPUT 07;*S1X"

'Reset ChartScan and make sure it is ready

CLS : PRINT "The ChartScan is resetting.."

PRINT #1, "OUTPUT 07;*RX"

SLEEP 3

WHILE (S% AND 4) = 0

PRINT #1, "SPOLL 07"

INPUT #2, S%

WEND

'Setup the ChartScan for line cycle integration mode

PRINT #1, "OUTPUT 07;M#0X"

PRINT #1, "OUTPUT 07;W#32X"

'Setup ChartScan for 16 channels TC type J and 16 Volts channels

PRINT #1, "OUTPUT 07;C1-16,1X"

PRINT #1, "OUTPUT 07;C17-32,14X"

'Program the ChartScan for binary format

PRINT #1, "OUTPUT 07;F0,1X"

'Start an acquisition with 1 pretrigger scan to enable the ChartScan 'to start scanning

PRINT #1, "OUTPUT 07;Y1,0,0X"

PRINT #1, "OUTPUT 07;T1,1,0,0X"

'Pause for key press

PRINT "The ChartScan is collecting High/Low/Last for all 32 channels.." PRINT "Hit a key to start or stop reading HLL data.."

WHILE INKEY$ = "": WEND

CONST CHANNELS% = 32, BYTES = CHANNELS% * 20

DIM READS AS STRING * BYTES

S% = VARSEG(READS)

O% = VARPTR(READS)

ChartScan User’s Manual

D-11

Page 248
Image 248
Omega Vehicle Security 1400 Collecting Binary-Formatted HLL Data using BINHLL.BAS, Print #1, Clear Print #1, Output 07*S1X

1400 specifications

The Omega Vehicle Security 1400 stands out as a premier solution for vehicle protection, offering a blend of advanced technology and user-friendly features. With the increasing rise of vehicle thefts, incorporating a robust security system has become essential for vehicle owners. The Omega 1400 aims to address these concerns effectively, ensuring peace of mind for users.

One of the key features of the Omega Vehicle Security 1400 is its sophisticated alarm system. The device is equipped with a motion sensor that activates the alarm when unauthorized movement is detected. This feature provides an added layer of protection, alerting owners to potential threats even when they are away from their vehicles. Additionally, the system comes with multiple sensors that monitor doors and trunk openings, fortifying security against tampering.

A standout component of the Omega 1400 is its remote control functionality, which allows users to arm and disarm the alarm with ease. Featuring a user-friendly remote, drivers can secure their vehicles from a distance, ensuring convenience and accessibility. The remote not only operates the alarm system but also integrates a panic button, which can be used in emergency situations to deter potential threats.

The Omega Vehicle Security 1400 is also designed with cutting-edge technology, offering compatibility with smartphone applications. This innovation enables users to monitor their vehicles in real-time, providing alerts directly to their mobile devices. Users can check the status of their vehicle, adjust settings, and receive notifications if the alarm is triggered, ensuring they are always connected to their vehicle's security.

Another remarkable characteristic of the Omega 1400 is its built-in GPS tracking capability. In the unfortunate event of a theft, the GPS feature allows vehicle owners to track the location of their vehicle, increasing the chances of recovery. This technology proves invaluable for users who prioritize the safety of their assets.

Additionally, the Omega Vehicle Security 1400 supports a robust battery backup system. This ensures that the alarm remains functional even if the vehicle's power supply is compromised. The reliability and durability of this security system make it a worthy investment for anyone looking to safeguard their vehicle.

In summary, the Omega Vehicle Security 1400 brings together advanced alarm technologies, remote access, GPS tracking, and reliable power support, creating a comprehensive security solution tailored for modern vehicle owners. Each feature has been designed with user convenience and vehicle protection in mind, making it a top choice in the vehicle security landscape.