Get Up and Running Quickly!
The CTI-AR4000 Software Library provides a "plug-and-play" software interface
to the Acuity Research AR4000 laser distance sensor, so you can concentrate
on your application functionality, rather than on hardware
interfacing or data collection details.
Rapid Prototyping!
Install the software, then use Excel to acquire and
analyze sensor data immediately. No programming required!
Your Choice of Languages!
Develop in C, C++ or [on Windows] Visual Basic or Visual Basic for Applications.
The same features are supported by all languages - you make the choice!
Windows or Linux!
Available for Windows 2000 and XP and for Linux. You pick the system
that suits you best.
Easy to Use!
The numerous sample programs, the simple,
intuitive, english-like application programming interface (API) and the
extensive Programmers's Guide permits
the programmer to rapidly develop applications to acquire sensor data
without being concerned with the complexities of serial communications
or hardware interfacing issues.
The library provides full support for
all models of the AR4000 sensor family, and the full AR4000 command set.
This library should be used when data acquisition will be done using the AR4000's serial
interface without the Accurange high-speed interface card.
For sensors equipped with the Accurange high-speed interface card,
the CTI-HSIF Library or CTI-HSIF-PCI Library should be used.
The image shown is from one of the numerous sample programs included
with the software, and the Visual Basic® code below illustrates how only a
few lines of code are required to acquire and display range data from the sensor.
Dim rc As Long, numRead as Long, i as Long
Dim samples(1000) As Double
Dim mySensor As CTI_AR4000 'Declare an AR4000 sensor variable
Set mySensor = New CTI_AR4000 'Create new instance of the AR4000 sensor class
mySensor.setCommOpen("com1:", 9600) 'Set serial port and baud rate
mySensor.setSamplesPerSec(150) 'Set 150 samples per second
mySensor.setLaserOn() 'Turn on the laser
numRead = mySensor.getSamples(samples, 100) 'Read 100 range samples
For i = 1 To numRead
MsgBox "Sample" + Str(i) + " = " + Str(samples(i)), vbInformation
Next i
|
Numerous other code samples are available in our Code Sample library.
For further information, please consult the FAQ list,
or the
library's datasheet (PDF 72 KB).
Don't miss our
"Top Ten Reasons to Buy!"
Programmer's Guide
The complete Programmer's Guide and Reference Manual may be
downloaded
here (PDF 425 KB).
Note: You will need Adobe Acrobat Reader to read these documents. If you do
not already have it installed, you may download it for free by clicking on this logo: