Data Sheet

Teledyne LeCroy Automation API Reference Manual for USBTracer, USB Advisor, and Voyager USB Protocol
Suite
7
1 Introduction
The USB Protocol Suite Automation is an Application Program Interface (API) that allows users to create
scripts or programs of commands and run these scripts or programs locally or remotely over a network.
The name Automation is derived from the goal of allowing engineers to automate test procedures.
The USBTracer, USB Advisor, and Voyager USB Protocol Suite Automation API is composed of a
command set that duplicates most of the functionality of the USB Protocol Suite Graphical User
Interfaces. Automation is implemented through the use of scripts or programs that the user can write
using late binding scripting languages such as VBScript and WSH or early binding languages such as
C++. Teledyne LeCroy provides examples of scripts written in WSH, VBScript, and C++.
Once an Automation script or program has been created, it can be run on the PC attached to or
transmitted to the PC over a network from a remote location. Automation uses the
Distributed Component Object Model (DCOM) protocol to transmit automation commands over a
network. When run over a network, the Host Controller is configured as a DCOM server and the remote
PC is configured as a DCOM client.
Note:
If you are using any application that uses the Automation Interface to the USB Protocol Suite, and the
system prompts you that it cannot write a trace file to disk:
1. Make sure that the trace-file destination folder has write/create permissions. (For example, the target
directory might be the network file system, which typically does not have write/create permissions.)
2. Make sure that the Windows (or other) Firewall Settings for USB Protocol Suite are set to Public.
1.1 System Requirements
Automation is supported with USB Protocol Suite software version 3.0 or higher. If you have an older
version of the software, you must upgrade. You can get a new version of software from the Teledyne
LeCroy web site, www.teledynelecroy.com/support. The Automation software including examples is
included in the installation of the USB Protocol Suite software.
IMPORTANT! To compile with the correct linkage to the USB Automation API code, you must move the
USBAutomation.tlb file from the application's installed directory into a directory from which your
compiler can access the file. For example, for Visual Studio, this typically is the directory that contains
your project file and sources.
1.2 Setting Up Automation for Local Use
If you intend to run Automation on the Analyzer Host Controller (the PC attached to the Analyzer), you
do not need to perform any special configuration. You can simply execute the scripts or programs you
have created, and they run the Analyzer.
1.3 Setting Up Automation for Remote Use
If you intend to run automation remotely over a network, you must perform DCOM configuration. These
steps are described in the Appendix.