ChartScan Program Examples

Appendix D

 

 

Reading HLL Status using HLL16.BAS

The following program is HLL16.BAS in the EXAMPLES directory. It will configure 16 channels, collect the HLL (high/low/last) data, and post 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 then waiting a few seconds.

PRINT #1, “OUTPUT 07;*RX”

SLEEP 4

To be certain that the reset was successful and the device is ready, serial poll the device until the proper status is returned.

WHILE (S% AND 4) = 0

PRINT #1, “SPOLL 07"

INPUT #2, S%

WEND

The C command will be used to configure a range of channels from 1 to 16 as T-type thermocouples.

PRINT #1, “OUTPUT 07;C1-16,3X”

The next three lines tell you to hit a key to start the acquisition. The program will not proceed until a key is pressed.

PRINT “The ChartScan is collecting High/Low/Last for all 16 channels”

PRINT “Hit a key to start or stop retrieving HLL data..”

WHILE INKEY$ = “”: WEND

Until another key is pressed to exit the loop, the U4 command is issued and the high/low/last data is collected. The OUTPUT command sends U4 to the device, the ENTER command requests the data, then QuickBASIC’s LINE INPUT gets the data from the IEEE 488 driver and places it in the variable U$. The FOR loop extracts the data for the individual channels from the string U$ and places them on the screen.

WHILE INKEY$ = “”

PRINT #1, “OUTPUT 07;U4X”

PRINT #1, “ENTER 07"

LINE INPUT #2, U$

FOR i = 1 TO 16

PRINT “High, Low and Last readings of Channel”; i

PRINT MID$(U$, (i * 66) - 65, 66)

NEXT i

WEND

Time and date information is also available in the high/low/last data.

Reading HLL Data from T/C & Volts Cards using HLL32.BAS

The following program is HLL32.BAS in the EXAMPLES directory. It will configure 16 Temperature and 16 volts channels then collect the high/low/last data and post 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.

PRINT #1, “OUTPUT 07;*RX”

SLEEP 4

To be certain that the reset was successful and the device is ready, serial poll the device until the proper status is returned.

WHILE (S% AND 4) = 0

PRINT #1, “SPOLL 07"

INPUT #2, S%

WEND

The C command will be used twice to configure a range of channels from 1 to 16 as T-type thermocouples and a range of channels from 17 to 32 as +/- 10 volt inputs.

PRINT #1, “OUTPUT 07;C1-16,3X”

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

The next three lines tell you to hit a key to start the acquisition. The program will not proceed until a key is pressed.

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

WHILE INKEY$ = “”: WEND

D-2

ChartScan User’s Manual

Page 239
Image 239
Omega Vehicle Security 1400 Reading HLL Status using HLL16.BAS, Reading HLL Data from T/C & Volts Cards using HLL32.BAS

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.