ChartScan Program Examples

Appendix D

 

PRINT “The ChartScan is currently collecting pre-trigger data..”

PRINT “The ChartScan has not been triggered..”

 

PRINT “Hit a key to start a trigger event ..”:

 

WHILE INKEY$ = “”: WEND

 

PRINT #1, “output07;@X”

 

WHILE (S% AND 2) <> 2

 

PRINT #1, “SPOLL 07"

 

INPUT #2, S%

 

WEND

 

PRINT “A Start Trigger has been detected..”

 

PRINT “Waiting for acquisition complete..including Post and

Post-Stop

Scans”

 

Using the event status register command “U0X”, we now wait until the acquisition complete event which includes the stop event.

WHILE (E% AND 1) <> 1

PRINT #1, “OUTPUT 07;U0X”

PRINT #1, “ENTER 07"

INPUT #2, E%

WEND

PRINT “The Acquisition is now complete”

Before reading the data, the F command is sent, instructing the ChartScan to return the data in a binary format where every value will be 2 bytes in length. This command could have been issued anytime after the initial reset and stays in effect until the unit is reset again or another F command is issued.

PRINT #1, “OUTPUT 07;F0,1X”

During or after the acquisition has been completed, the internal buffer can be queried for the amount of data available for transfer. The U6 command will return the trigger block number, the current scan number, the current read pointer, the trigger time/date stamp, the scan number where the stop event occurred, the stop time/date stamp, the scan number of the end of the trigger block, and the block complete flag.

This example uses the last parameter in the return string as an indicator of how much data is available to transfer to the controller. QuickBASIC’s MID$ function extracts 6 characters from the string U$ starting at character 8.

‘Query the ChartScan for the # of scans available in the Buffer PRINT #1, “OUTPUT 07;U6X”

PRINT #1, “ENTER 07" LINE INPUT #2, U$

PRINT U$

UA$ = MID$(U$, 9, 7) UA% = VAL(UA$)

PRINT UA%

PRINT “The ChartScan collected ”; UA%; “ scans of data”

After calculating the number of scans, an integer-type buffer is then prepared for the data. The offset and segment pointers are supplied to the IEEE 488 driver so that the data can be transferred using DMA (direct memory access).

The R2 command instructs the ChartScan to supply the entire block of data that is presently available.

CHANNELS = 16

DIM CBUFFER%(UA% * CHANNELS)

SE% = VARSEG(BUFFER%(0))

OF% = VARPTR(BUFFER%(0))

B& = UA% * CHANNELS * 2

PRINT “Total number of Bytes available : ”; B&

PRINT #1, “OUTPUT 07;R2X”

PRINT “Uploading data..”

WHILE INKEY$ = “”: WEND

PRINT #1, “ENTER 07 #”; B&; “BUFFER ”; SE%; “:”; OF%; “ DMA”

At the completion of the DMA transfer, the integer data is now in the buffer BUFFER%. To convert the integer data into temperatures, a simple calculation is performed.

BINARY DATA%/10 = °C

D-10

ChartScan User’s Manual

Page 247
Image 247
Omega Vehicle Security 1400 Print #1, Enter 07 Line Input #2, U$ Print U$, Print #1, Output 07R2X, Binary DATA%/10 = C

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.