ChartScan Program ExamplesAppendix D

The T command sets up the trigger parameters for the acquisition. In this example, the start event is an ‘@’ character sent by the controller, and the stop event is also an ‘@’ character. The auto-rearm flag is set to 0 (off), so that the ChartScan will not re-arm itself for another acquisition after this acquisition is complete.

The synchronization flag is also off, so the ChartScan will not re-synchronize itself to the trigger point when the start event begins. When the ChartScan encounters the X command, it will be armed and start the collection of the pre-trigger data.

PRINT #1, “OUTPUT 07;T1,1,0,0X”

The next four lines, prompt you to hit a key to trigger the ChartScan. When a key is hit, the ‘@’ character is sent, which is the system’s start event.

PRINT “The ChartScan is collecting pre-triggered data and is ready for a trigger..”

PRINT “Press a key to trigger the start of Acquisition..” WHILE INKEY$ = “”: WEND

PRINT #1, “OUTPUT 07;@X”

While in the post-trigger state, our application will first check for a scan to be available by serial polling the device and comparing the response with an 8. If a scan is available, the R1 command tells the ChartScan to send the oldest scan to the controller. ENTER requests the response data from the device. QuickBASIC’s INPUT command places the retrieved data into the variable READINGS$.

Note that the program can go to other “foreground” tasks while ChartScan is acquiring data, and only occasionally query the unit and collect its data. This is possible since the acquisition is slow, and ChartScan’s buffer can be relatively large.

‘Upload data as it becomes available

PRINT “The program is currently collecting data as it becomes available..” PRINT “Hit a key to stop Acquisition ..”

i = 0

WHILE INKEY$ = ‘’

i = i + 1

 

S% = 0

 

WHILE ((s% and 8) <>8)

‘Is scan available?

PRINT #1, “SPOLL 07"

 

INPUT #2, S%

 

WEND

PRINT #1, “OUTPUT 07;R1X” ‘Ask for one scan

PRINT#1, “ENTER 07"

INPUT#2, READING$

LOCATE7, 1: PRINT “The scan”; i; “was::”; READING$

WEND

After a key has been pressed, the program proceeds to the next block where the ‘@’ character is issued again, ending the post-trigger state and entering the post-stop state.

PRINT #1, “OUTPUT 07;@X”

Now the collection of the post-stop data begins by querying for new scans and requesting the data. The program is done when the acquisition is complete.

i=0

WHILE INKEY$="" i=i+1

s%=0

WHILE ((S% AND 8) <> 8) PRINT #1, “SPOLL07" INPUT #2, S%

WEND

PRINT #1, “OUTPUT07;R1X” PRINT #1, ENTER 07" INPUT #2, READING$

LOCATE 7, 1:PRINT “The scan ”;i:was:’; READING$ PRINT #1, “OUTPUT07;UOX:

PRINT #1, :ENTER07" OUTPUT #2, U%

if U%=1 then END WEND

D-4

ChartScan User’s Manual

Page 241
Image 241
Omega Vehicle Security 1400 manual While INKEY$ = ‘’, PRINT#1, Enter INPUT#2, READING$, Print #1, ENTER07 Output #2, U%

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.