ADWG TCL Library User's Guide Revision Feb-15 1/24

Similar documents
Analyser TCL Library

ADWGC C library User's Guide Revision February /20

SPI TCL Library User's Guide Revision Jan-12 1/24

8PI Control Panel. User's Guide

SVF TCL Library User's Guide Revision November /14

Wave Generator Xpress

Introducing SPI Xpress SPI protocol Master / Analyser on USB

LA Xpress. Data sheet

SPI Xpress. Data sheet

LOG Storm Studio. User's Guide. Revision Jan Byte Paradigm

SPI Storm Studio. Getting Started Guide. Revision Sep Byte Paradigm

LOG Storm. Data sheet

128 CH TDC-SCALER For 10x10 GEM

Reference. Menu Overview. Functions Common to Generator (TX) and Analyzer (RX) AC Power. Selecting 115 VAC or 230 VAC Operation

16. Design Debugging Using In-System Sources and Probes

TRANSCEIVER DATA PROGRAMMER TDP-136 INSTALLATION & OPERATING INSTRUCTIONS. Document No. 00RE277 Rev. C FEB Technisonic Industries Limited

SATA Host-IP Demo Instruction Rev Jan-18

4. Configuring Cyclone II Devices

HCTL-IP RAID0x8 DDR Demo Instruction Rev1.0 8-Mar-18

PMC-DA Channel 16 Bit D/A for PMC Systems REFERENCE MANUAL Version 1.0 June 2001

Help Volume Hewlett Packard Company. All rights reserved. Toolsets: IA Format Utility

MIDI CPU Firmware V User Manual

NVMe-IP Demo Instruction Rev Nov-17

GSC400 Series. GSC400 Programmer and PC Interface User Manual

PXDAC4800. Product Information Sheet. 1.2 GSPS 4-Channel Arbitrary Waveform Generator FEATURES APPLICATIONS OVERVIEW

TPMC Channel Motion Control. User Manual. The Embedded I/O Company. Version 1.0. Issue 1.3 March 2003 D

DELPHI CORPORATION. LIN to RS-232 Gateway Systems Analysis INterface Tool (SAINT) Users Guide

The following content has been imported from Legacy Help systems and is in the process of being checked for accuracy.

EXOSTIV Dashboard. User's Guide. Rev February 26,

power supply Tamper Detect function will detect possible data modification from outside magnetic

SR3_Analog_32. User s Manual

Configuring APEX 20K, FLEX 10K & FLEX 6000 Devices

4 DEBUGGING. In This Chapter. Figure 2-0. Table 2-0. Listing 2-0.

Winford Engineering ETH32 Protocol Reference

MAX11300/MAX11301 PIXI Configuration Software User Guide

Fixed bug on Digital output priority handling. Fixed bug in volume sensors with gallons unit measure. Memory Module GPS Module

Memory Module. GS-Dash Formula Steering Wheel 3. GPS Module Lambda Channel Expansion/TC Hub Remote buttons interface

This document contains the firmware release notes for two models. The SDS1202X-E is a dual channel 200 MHz scope.

SIXTEEN UNIVERSE CONTROLLER

Command Reference: A through M

NuSpeech Family N5132 High Sound Quality Voice Synthesizer Technical Reference Manual

DSP Terminal V1.5.7 Users Guide

System Debugging Tools Overview

ProgRock Operating manual _Pr1.02_

Pulse Streamer 8/2 Documentation

SV3C DPRX MIPI D-PHY Analyzer. Data Sheet

intan intan RHS2000 Application Note: Data File Formats RHS2000 Application Note Data Types TECHNOLOGIES, LLC

Fractional Divider Evaluation Board AD9858FDPCB

SIMREX Corporation Your Trusted Wireless Solution Provider

SPI Storm. Data sheet

NVMe-IP DDR Demo Instruction Rev Apr-18

BV4109. Serial LCD Controller. Product specification November ByVac 2006 ByVac Page 1 of 12

CAN / RS485. Product Description. Technical Reference Note. Interface Adapter. Special Features

MicroToys Guide: PS/2 Mouse N. Pinckney April 2005

QC External Devices (EXD)

5. Configuring Cyclone FPGAs

ProgRock Operating manual _Pr1.01a_

ACE USER MANUAL ACE Development Team ANALOG DEVICES, INC., OCTOBER 2015

DDS DAC Output Evaluation Board AD9858PCB

EXOSTIV Dashboard. Tcl User's Reference Guide. Rev March 30,

MODBUS Protocol. The ecode Encoders contain both single register (16 bit) and double register (32 bit) values.

EVAL-AD9913 GENERAL DESCRIPTION FEATURES PACKAGE CONTENTS EVALUATION BOARD BLOCK DIAGRAM

Read section 8 of this document for detailed instructions on how to use this interface spec with LibUSB For OSX

AT45DQ321. Features. 32-Mbit DataFlash (with Extra 1-Mbits), 2.3V Minimum SPI Serial Flash Memory with Dual-I/O and Quad-I/O Support

User Manual. HEDS-8949 & HEDS-8969 Alignment Kit for AEAT-9000 Encoders. 1. Introduction. Overview. Features. Ordering Information

STUDY, DESIGN AND SIMULATION OF FPGA BASED USB 2.0 DEVICE CONTROLLER

Help Volume Agilent Technologies. All rights reserved. Agilent E2485A Memory Expansion Interface

HDV100A3 Command Response Protocol

Tutorial for I 2 C Serial Protocol

716/718 Converter User's Guide V 1.96

Camera control software GigaCam

Specification. Current Consumption Range 8m * Rotational Angle +/- 50 degrees * Shear Angle +/- 40 degrees *

Script Step Reference Information

Contents. Cortex M On-Chip Emulation. Technical Notes V

Using the Command-Line Interface

DigiView DV3500 Logic Analyzer

MCS-51 Serial Port A T 8 9 C 5 2 1

LAB A Translating Data to Binary

e-mmc Special Features via TL SEP 2017

EXOSTIV Dashboard Hands-on - MICA board

Pulse Streamer-API migration document

SPART. SPART Design. A Special Purpose Asynchronous Receiver/Transmitter. The objectives of this miniproject are to:

4-Megabit 2.7-volt Only Serial DataFlash AT45DB041. Features. Description. Pin Configurations

Using FlexIO to emulate communications and timing peripherals

EEG DE361 HD BAS Decoder Product Manual

W25X05CL/10CL/20CL 2.5 / 3 / 3.3 V 512K / 1M / 2M-BIT SERIAL FLASH MEMORY WITH 4KB SECTORS AND DUAL I/O SPI

4. The transport layer

DS21Q55 T1/E1/J1 Quad Transceiver

AT25PE40. 4-Mbit DataFlash-L Page Erase Serial Flash Memory ADVANCE DATASHEET. Features

hipecs-cio100 CANopen I/O module with 16/16 digital I/O

M1 Computers and Data

Gx TIME CHART RECORDER APPLICATION (Catalog # SFT133) USER S MANUAL

Description of the JRA1 Trigger Logic Unit (TLU)

Programmer Manual. DG2020A Data Generator

Logic Analyzer Software Manual

Embedded programming, AVR intro

USB board Mk2 INSTRUCTION MANUAL

RT209 OEM 2d Scan Engine User Guide

NEW CEIBO DEBUGGER. Menus and Commands

Introduction. LiFePO 4 wered/pi3

Transcription:

Revision 1.11 13-Feb-15 1/24 Byte Paradigm info@byteparadigm.com

Table of Content 1 Introduction... 4 2 TCL Interpreter... 5 2.1 Starting a TCL Session... 5 2.2 Getting Information on TCL Procedures... 7 3 Arbitrary Waveform Library - ADWGTclLib... 8 3.1 Quick Reference Table... 8 3.2 Procedures Detailed Description... 10 3.3 Reference Sequences and Scripts... 24 Table of Tables Table 1 Quick reference table of ADWG procedures (by functionality)... 8 Table of Pictures Figure 1 Tcl session start-up example... 5 Figure 2 TCL console shortcut in 8PI Control Panel program group... 6 Figure 3 Tcl console at startup... 6 Figure 4 Program group with TCL script examples... 24 Revision 1.11 13-Feb-15 http//www.byteparadigm.com 2/24

References [] History Version Date Description 1.00 31-Aug-2005 Initial revision 1.01 15-Sep-2005 Completed the TCL procedures description 1.02 01-Nov-2005 Reviewed 1.03 15-Feb-2006 Updated to comply with software version 1.03 1.04 22-May-2006 Some corrections 1.05 09-Nov-2006 Update for software revision 1.04 1.06 05-Mar-2007 Update with infinite loop / trigger auto rearm functions 1.07 31-May-2007 Added edge triggering functions 1.08 13-Nov-2007 Update for GP Series introduction 1.09 16-Feb-2010 Review for release 1.08f. 1.10 20-Jan-2012 Added IO voltage selection 1.11 13-Feb-2015 Minor corrections Revision 1.11 13-Feb-15 http//www.byteparadigm.com 3/24

1 Introduction The objective of this document is to list and describe all the TCL procedures available in the ADWG library provided to control the ADWG operating mode of the GP Series device. Each procedure functionality and are described in detail. Scripts examples, that use some of these procedures are also provided to help the users build their own test environments. A section is also dedicated to the TCL interpreter provided with the 8PI Control Panel application. The way to start it and to use it is briefly described. Revision 1.11 13-Feb-15 http//www.byteparadigm.com 4/24

2 TCL Interpreter 2.1 Starting a TCL Session To start a TCL session from the 8PI Control Panel GUI From the 8PI Control Panel GUI, access the desired operating mode sheet. Click on the Open Tcl Console button (Figure 1). This opens the Tcl console, loads the Tcl libraries relative to the chosen operating mode and initialises the Tcl session. Figure 1 Tcl session start-up example Open Tcl Console button Revision 1.11 13-Feb-15 http//www.byteparadigm.com 5/24

To start a stand-alone TCL session (without running GUI) 1. From the Byte Paradigm > 8PI Control Panel program group, click on the TCL Console shortcut. This starts the Wish84 interpreter with the tkcon console. 2. In the Tcl console, type % source ADWGTclLib.tcl This initialises your TCL session in ADWG operating mode. Figure 2 TCL console shortcut in 8PI Control Panel program group Tcl Console shortcut By default, the GP Series device software environment uses the WISH interpreter with the TKCON console (interactive mode) (Figure 3). For more information about the TKCON console, please check the following links http//tkcon.sourceforge.net/ - http//wiki.tcl.tk/1878. Please note that TCL is case sensitive. Figure 3 Tcl console at startup Loaded library TCL console prompt Tcl and Tk versions Revision 1.11 13-Feb-15 http//www.byteparadigm.com 6/24

2.2 Getting Information on TCL Procedures Tcl provides built-in commands for getting information about the elements loaded in memory during a Tcl session. We simply describe a few of them for those unfamiliar to the Tcl language. To list the libraries loaded in the TCL environment % info loaded To list all the procedures loaded in the TCL environment % info procs To list the arguments of a given procedure % info args <procedure name> To list the body of a given procedure % info body <procedure name> To learn more about the TCL/TK language, numerous man pages, tutorials and references can be found at the following location http//www.tcl.tk/doc/. Revision 1.11 13-Feb-15 http//www.byteparadigm.com 7/24

3 Arbitrary Waveform Library - ADWGTclLib This library contains all the procedures available to control the GP Series device when operating in arbitrary digital waveform generator mode (ADWG mode). Using these procedures in scripts or command lines allows the user to send out sequences of samples to the system connector of the GP Series device. 3.1 Quick Reference Table Table 1 gives a list of all procedures available for the ADWG mode. functionality. They are grouped by type and Table 1 Quick reference table of ADWG procedures (by functionality) Procedures Description Clock Configuration UseIntClock {} Configures the device to operate with the internal clock as reference. UseExtClock {} Configures the device to operate with an externally supplied clock as reference. GetClockSource {{Display 1}} Returns the selected clock source configured in the device. SetReqClock {Freq} Defines the requested operating clock frequency (in Hz). GetReqClock {} Returns the requested operating clock frequency (Hz) GetSynthClock {} Returns the synthesised operating clock frequency (Hz). It can differ from the requested frequency due to the limited accuracy of the device frequency divider. SetClockDisablePLL {Disable {Display 1}} Forces disabling the PLL or let the device enable it automatically when possible. GetClockDisablePLL {{Display 0}} Gets the operating mode of the PLL (disabled/automatic) SetOutputClock {Output {Display 1}} Enables or disables the generation of an output clock GetOutputClock {} Gets the status of the output clock generation (enabled or disabled) SetOutClockRatio {Ratio} Defines the integer output clock ratio with respect to the operating clock. GetOutClockRatio {} Returns the current value of the output clock ratio. GetSynthOutClock {} Returns the achieved frequency (Hz) of the output clock. This value depends on the operating clock frequency and the output clock ratio. SetHoleClock {} Enables the hole mode to generate the output clock. In this mode, a clock pulse is generated only when a data is sent out. When no data is sent out, the clock remains low. SetContinuousClock {} Sets the output clock generation in continuous mode. In this mode, a permanent and continuous clock is generated independently of the data stream. GetClockContinuity {{Display 0}} Returns the current continuity mode used to generate the output clock (hole or continuous) SetClockEdge {Pos {Display 1}} Defines the phase relation between the output clock and the device internal clock. GetClockEdge {} Returns the phase relation between the device internal clock and the generated output clock. SetInternalTrigger {Internal {Display 1}} GetInternalTrigger {{Display 0}} SetEdgeTrigger {Enable {Display 1}} Triggering Configuration Defines the triggering mode (internal or external) Returns the current triggering mode Selects the triggering mode (edge or level) Revision 1.11 13-Feb-15 http//www.byteparadigm.com 8/24

Procedures GetEdgeTrigger {{Display 0}} Description Returns the triggering mode (edge or level) SetCtrlTrigMask {Mask {Display 1}} GetCtrlTrigMask {} SetCtrlTrigPattern {Pattern {Display 1}} GetCtrlTrigPattern {} SetAutoReArm {AutoReArm} GetAutoReArm {{Display 0}} EnCtrlSeq {} DisCtrlSeq {} GetCtrlSeqEn {} GetCtrlSeqLength {} EnDefaultCtrl {{Display 0}} DisDefaultCtrl {} GetDefaultCtrlEn {{Display 0}} SetCtrlMaskOut {MaskOut {Display 1}} GetCtrlMaskOut {} SetCtrlDefaultVal {Val {Display 1}} GetCtrlDefaultVal {} SetDataMaskOut {MaskOut {Display 1}} GetDataMaskOut {} SetStaticData {Data {Display 1}} GetStaticData {} GetNrSamples {} AdwgRun {SendSamples {Display 1} {PopUp 0}} AdwgRunLoop {SendSamples {Display 1} {PopUp 0}} Abort {} SetInfiniteLoop {Enable} GetInfiniteLoop {} Unsupervised {Enable {Display 1}} SetAdwgContMode {Continuous {Display 1}} GetAdwgContMode {} ClearBuffer {} WriteSingleSample {Sample {Display 0}} ReadConfFile {FileName {Display 0} {PopUp 0}} WriteConfFile {FileName} MakeConfFileTemplate {FileName} ReadConfAndDataFile {FileName {Display 0} {PopUp 0}} WriteConfAndDataFile {FileName} ReadDataFile{FileName {Display 0} {PopUp 0}} Defines the triggering mask to select the control lines to use as trigger inputs. Returns the triggering mask Defines the pattern to detect on the trigger inputs to generate the trigger event. Returns the triggering pattern. Enables or disables the trigger auto rearm feature. Return the auto-rearm state. Control Lines Sequence Configuration Enables the generation of static or periodic sequence on the control lines. Disables the generation of static and periodic sequence on the control lines. Returns the current status for the control sequence generation. Returns the current length of the periodic sequence to apply on the control lines. Enables applying default static levels on the control lines. Disables applying a forced default level on the control lines. Returns the status of the default level feature. The control mask selects the control lines on which the default static levels or the periodic pattern have to be applied. Returns the control mask value. Defines the default level to apply on the control lines. Returns the current default level applied on the control lines. Data Lines Configuration Selects the data lines to enable as outputs. Returns the data mask value. Static Mode Operations Applies the data pattern to the device system connector pins Returns last static data value sent to the device. File Mode Operations Returns the total number of data samples loaded in memory. Starts transferring data to the GP Series device. Starts transferring data to the GP Series device. This function must be used when the loop features. Aborts the ADWG running in loop / trigger auto rearm modes. Enables / disables the infinite loop mode. Returns the enabled/disabled status of the infinite loop mode. Enables or disables the unsupervised operating mode. Enables or disables the continuous operating mode. Returns the status of the continuous operating mode. Clears the data buffer loaded in memory. Appends the memory data buffer with the data sampe specified as argument. File Management Reads the device controls and configuration from a file. Writes the current configuration to a file. Creates a configuration file template. Reads the device controls, configuration, data header and the data samples to transfer from a file. Writes the device configuration and the data samples to a file. Reads the data header configuration and a set of data to be sent from the specified file. Revision 1.11 13-Feb-15 http//www.byteparadigm.com 9/24

Procedures SelectIOVoltage {IOVoltage} GetLastError {} ResetCfg {} InitVars {} ADWGConfig {} Ver {} IsDeviceReady {} Terminate {} Description Others Selects the user interface voltage. Returns the last error detected during the data transfer. Reset the device to its default configuration. Initialises local variables to a default value. Displays the ADWG session configuration. Displays the software version. Checks if the device is properly connected to the host PC. Closes the ADWG TCL session. 3.2 Procedures Detailed Description This section gives a detailed description of each procedure available to control the GP Series device arbitrary waveform operating mode. The procedures are listed in alphabetical order. ADWGConfig {} returns description conditions see also none Displays the ADWG session configuration. AdwgRun {SendSamples {Display 1} {PopUp 0}} SendSamples integer value that specifies the number of samples to transfer for the device. Display Optional parameter. Displays additional information messages when set to 1. Display disabled when set to 0. By default set to 1. PopUp Optional parameter. Enables the pop-up messages when set to 1. By default set to 0. returns An integer error code 0 if successful. description Starts transferring data to the GP Series device. The specified number of samples are applied to the system connector of the device. Only the pins enabled and configured as output are driven, the other ones remain in high impedance state. conditions If the device is not configured to operate in ADWG file mode, this procedure automatically configures it with the current defined settings. see also AdwgRunLoop {SendSamples {Display 1} {PopUp 0}} SendSamples integer value that specifies the number of samples to transfer for the device. Display Optional parameter. Displays additional information messages when set to 1. Display disabled when set to 0. By default set to 1. PopUp Optional parameter. Enables the pop-up messages when set to 1. By default set to 0. returns An integer error code 0 if successful. description Starts transferring data to the GP Series device. The specified number of samples is applied onto the device system connector. Only the pins Revision 1.11 13-Feb-15 http//www.byteparadigm.com 10/24

conditions enabled and configured as output are driven; the other ones remain in high impedance state. This function must be used to start runs with the infinite loop and the trigger auto rearm features. see also Abort {} returns description conditions see also Aborts the ADWG running in loop / trigger auto rearm modes. ClearBuffer {} returns description conditions see also Clears the data buffer loaded in memory. Before being sent to the device, the data samples are stored in a memory area. This function allows to completely clear the area of the memory where the samples are buffered. WriteSingleSample{} DisCtrlSeq {} returns description conditions see also Disables the generation of static and periodic sequences on the control lines. EnCtrlseq{}, EnDefaultCtrl{}, DisDefaultCtrl{} DisDefaultCtrl {} returns description conditions see also Disables applying a forced default level on the control lines EnDefaultCtrl{}, EnCtrlseq{}, DisCtrlseq{} EnCtrlSeq {} returns description conditions see also Enables the generation of the static or periodic sequences on the control lines. DisCtrlSeq{}, EnDefaultCtrl{}, DisDefaultCtrl{} Revision 1.11 13-Feb-15 http//www.byteparadigm.com 11/24

EnDefaultCtrl {{Display 0}} Display returns description conditions see also Optional parameter. Displays additional information messages when set to 1. Display disabled when set to 0. By default set to 0. Enables applying default static levels on the control lines. When this feature is enabled, static levels can be set on the selected control lines. Valid for File or Static modes. To enable the default level feature for the control lines, the control sequence feature has to be enabled. Using EnDefaultCtrl{} automatically calls EnCtrlSeq{} if needed. If Display is set to 1, a message is displayed to report the control sequence enabling. DisDefaultCtrl{}, EnCtrlseq{}, DisCtrlseq{}, SetDefaultVal{} GetAdwgContMode {} returns 1 if continuous mode is enabled 0 if continuous mode is disabled description Returns the status of the continuous operating mode. conditions The continuous mode is only defined for File mode. see also SetAdwgContMode{} GetAutoReArm {} returns description conditions see also Display optional parameter. Displays additional information messages when set to 1. Display disabled when set to 0 by default set to 0. 0 if the trigger auto rearm feature is disabled. 1 if the trigger auto rearm feature is enabled. Returns the status of the trigger auto rearm feature. Trigger auto rearm only works with an external trigger. SetAutoReArm{}, AdwgRunLoop{} GetClockContinuity {{Display 0}} Display Optional parameter. Displays additional information messages when set to 1. Display disabled when set to 0. By default set to 0. returns 1 if the Hole clock mode is enabled 0 if the Continuous clock mode is enabled If the Display parameter is set to 1, the following text messages are displayed depending on the clock continuity status. 'HOLE' clock 'CONTINUOUS' clock description Returns the output clock operating mode. conditions see also SetHoleClock{}, SetContinuousClock{} GetClockDisablePLL {{Display 0}} Display optional parameter. Displays additional information when set to 1. By default set to 0. returns 1 when the internal device PLL is disabled 0 when the automatic PLL control mode is enabled description Returns the control mode of the device internal PLL. Revision 1.11 13-Feb-15 http//www.byteparadigm.com 12/24

conditions see also SetClockDisablePLL{} GetClockEdge {} returns 1 Output data lines are generated in phase with the rising edge of the output clock. 0 Output data lines are generated in phase with the falling edge of the output clock description Returns the phase relation between the device internal clock and the generated output clock. conditions see also SetClockEdge{} GetClockSource {{Display 1}} Display Optional parameter. Displays additional information messages when set to 1. Display disabled when set to 0. By default set to 1. returns 1 Internal reference clock is used 0 External reference clock is used When Display is set to 1, and additional text message is returned depending on the selected clock source. Source INTERNAL clock Source EXTERNAL clock description conditions see also Returns the reference clock source used to generate the device operating clock. UseIntClock{}, UseExtClock{} GetCtrlDefaultVal {} returns description conditions see also A hexadecimal value prefixed with 0x Returns the current default level pattern defined for the 6 control lines. The LSB of the value corresponds to control line 0 and the MSB corresponds to control line 5. SetCtrlDefaultVal{}, EnDefaultCtrl{} GetCtrlMaskOut {} returns description conditions see also A hexadecimal value prefixed with 0x Returns a mask value representing the control lines enabled as output. The LSB of the value corresponds to control line 0 and the MSB corresponds to control line 5. When a bit is set to 1, the corresponding control line is configured as an output. When a bit is set to 0, the corresponding pin remains in high impedance state and can be used as an input for external triggering. SetCtrlMaskOut{}, SetCtrlTrigMask{} Revision 1.11 13-Feb-15 http//www.byteparadigm.com 13/24

GetCtrlSeqEn {} returns 1 when the control sequence feature is enabled 0 when the control sequence feature is disabled description Returns the status of the enable control sequence feature. conditions see also EnCtrlSeq{}, EnCtrlDefault{} GetCtrlSeqLength {} returns description conditions see also A decimal value Returns the current length of the defined control sequence. ReadConfAndDataFile{} GetCtrlTrigMask {} returns description conditions A hexadecimal value prefixed with 0x Returns the mask applied on the control lines to detect the external trigger pattern. SetCtrlTrigMask{}, SetCtrltrigPattern{}, SetInternalTrigger{} GetCtrlTrigPattern {} returns description conditions see also A hexadecimal value prefixed with 0x Returns the pattern to detect on the selected control lines to generate a trigger event to start applying data samples on the GP Series device system connector. SetCtrlTrigPattern{}, SetCtrlTrigMask{}, SetInternalTrigger{} GetDataMaskOut {} returns description conditions see also A hexadecimal value prefixed with 0x Returns a mask value representing the data lines enabled as output. The LSB of the value corresponds to data line 0 and the MSB corresponds to data line 15. When a bit is set to 1, the corresponding data line is configured as an output. When a bit is set to 0, the corresponding pin remains in high impedance state. SetDataMaskOut{} GetDefaultCtrlEn {{Display 0}} Display optional parameter. Displays additional information in the TCL shell when set to 1. By default set to 0. returns 1 when the default level feature is enabled 0 when the default level feature is disabled description Returns the status of the default level feature for the control lines. Revision 1.11 13-Feb-15 http//www.byteparadigm.com 14/24

conditions see also EnDefaultCtrl{}, EnCtrlSeq{} GetEdgeTrigger {{Display 0}} Display Optional parameter. Displays additional information messages when set to 1. By default set to 0. returns description Returns the current triggering mode 1 for edge triggering mode ; 0 for level triggering mode. see also GetInternalTrigger {{Display 0}} Display optional parameter. Displays additional information in the TCL shell when set to 1. By default set to 0. returns 1 when internal triggering mode is enabled 0 when external triggering mode is enabled description Returns the triggering mode in use. conditions see also SetInternalTrigger{}, SetExternalTrigger{} GetInfiniteLoop {} returns description conditions see also 1 when the infinite loop mode is enabled 0 when the infinite loop mode is disabled Returns the enable/disable status of the infinite loop mode. SetInfiniteLoop{} GetLastError {} returns description conditions see also A decimal value Returns the last error code returned by the device. 1 underflow error the system available bandwidth is not sufficient. Please reduce the used clock frequency. Any other value different from 0 system error. Please report error to Byte Paradigm. This procedure can be used in unsupervised mode, after having used AdwgRun, to check if the last set of data was sent without error. Unsupervised{}, AdwgRun{} GetNrSamples {} returns description conditions see also A decimal value Returns the total number of data samples loaded in memory. ReadConfAndDataFile{} Revision 1.11 13-Feb-15 http//www.byteparadigm.com 15/24

GetOutClockRatio {} returns description conditions see also A decimal value Returns the integer ratio used to generate the output clock. SetOutClockRatio{} GetOutputClock {} returns 1 when the output clock is enabled 0 when the output clock is disabled description Returns status of the output clock. conditions see also SetOutputClock{}, SetOutClockRatio{} GetReqClock {} returns description conditions see also A decimal value Returns the requested frequency for the device operating clock (unit = Hz) GetSynthClock{}, SetReqClock{} GetStaticData {} returns description conditions see also A hexadecimal value prefixed with 0x Returns the last static data transferred to the device. SetStaticData{} GetSynthClock {} returns description conditions see also A decimal value Returns the achieved frequency for the system operating clock. As the operating clock is generated using an integer ratio to divide a reference clock, not all frequencies can be generated. This procedure returns the achieved frequency value. This value can differ from the requested clock frequency. If the requested frequency can not be achieved, the device uses the first achievable frequency smaller than the requested one. SetReqClock{}, GetReqClock{} GetSynthOutClock {} returns description see also A decimal value Returns the achieved frequency of the output clock (unit = Hz). SetOutClockRatio{} Revision 1.11 13-Feb-15 http//www.byteparadigm.com 16/24

IsDeviceReady {} returns description see also 1 if device is connected. Checks if the device is properly connected to the host PC. InitVars {} returns description conditions see also none Initialises local variables to a default value. MakeConfFileTemplate {FileName} FileName specifies the procedure output file name (including path). returns 0 when file generation is complete description Creates a standard template to be used as configuration file with the device. conditions see also ReadConfAndDataFile {FileName {Display 0} {PopUp 0}} FileName specifies the procedure input file name (including path). Display optional parameter. When set to 1, it enables TCL shell information messages. By default set to 0 (disabled). PopUp optional parameter. When set to 1, it enables the information and error pop up windows. By default set to 0 (disabled). returns 0 if read succesful; another value if read failed. description Reads the device configuration, control sequence configuration, data header and a set of data to be sent from the specified file. conditions see also ReadConfFile{}, ReadDataFile{} ReadConfFile {FileName {Display 0} {PopUp 0}} FileName specifies the procedure input file name (including path) Display optional parameter. When set to 1, it enables TCL shell information messages. By default set to 0 (disabled). PopUp optional parameter. When set to 1, it enables the information and error pop up windows. By default set to 0 (disabled). returns 0 if read succesful; another value if read failed. description Reads the device configuration and the control sequence configuration from the specified file. Skips the data header and any set of data defined in the input file. conditions see also ReadConfAndDataFile{}, ReadDataFile{} Revision 1.11 13-Feb-15 http//www.byteparadigm.com 17/24

ReadDataFile {FileName {Display 0} {PopUp 0}} FileName specifies the procedure input file name (including path) Display optional parameter. When set to 1, it enables TCL shell information messages. By default set to 0 (disabled). PopUp optional parameter. When set to 1, it enables the information and error pop up windows. By default set to 0 (disabled). returns 0 if read succesful; another value if read failed. description Reads the data header configuration and a set of data to be sent from the specified file. Skips the device and the control sequence configurations. conditions see also ReadConfAndDataFile{}, ReadConfFile{} ResetCfg {} returns description conditions Resets the device to a default state. SetAdwgContMode {Continuous {Display 1}} Continuous Display Optional parameter. Displays additional information default set to 1. returns description conditions see also Enables or disables the continuous operating mode. In continuous mode, the amount of data specified with the AdwgRun{} should be transferred as a single continuous run. If the device fails to do so, an underrun condition is reported. In non-continuous mode, pause times are allowed inside the data run to provide enough data to the device. AdwgRun{} SetAutoReArm {AutoReArm} AutoReArm boolean value (0 or 1) Returns An integer error code 0 when successful. description Enables (AutoReArm = 1) or disables (AutoReArm = 0) the trigger auto rearm feature. When an external trigger is selected, the auto rearm feature allows to automatically send the same ADWG run, loaded into the GP Series device embedded memory, upon the arrival of a new external trigger. Two operating modes exist GP Series device driven the pattern fits un the 16Mbytes memory of the GP-20050, as such it is locally stored in the device and independent of the USB bandwidth Software driver the pattern is too large to fit in the GP Series device memory, in this case it is streamed from the host computer and the throughput is dependant of the USB bandwidth Not that the selection between both operating modes is done automatically based on the size of the pattern. conditions The trigger auto rearm feature is only available when an external trigger is used. see also GetAutoReArm{}, AdwgRunLoop{} Revision 1.11 13-Feb-15 http//www.byteparadigm.com 18/24

SetClockDisablePLL {Disable {Display 1}} Disable valid values 0 or 1. Specifies whether the PLL must be disabled (1) or left enabled when needed (0). Display Optional parameter. Displays additional information default set to 1. Returns Description Conditions Forces the disabling of the device internal PLL used for the connector clock generation. For the generation of the connector clock, a PLL embedded in the device can be used. When the Disable parameter is set to 0, the PLL will be automatically enabled if possible. When Disable is set to 1, the PLL is not used. SetClockEdge {Pos {Display 1}} Pos valid values 0 or 1. Specifies the output clock edge on which the output data toggle. 1 for rising edge; 0 for inverted clock. Display Optional parameter. Displays additional information default set to 1. returns description conditions Defines the phase relation between the output clock and the device internal clock. When the clock edge is set to 1, the output clock is in phase with the device internal clock; when set to 0, there is a 180 phase shift between the clocks. SetContinuousClock {} returns description conditions. Sets the output clock generation in continuous mode. In this case, a permanent and continuous clock is generated independently of the data stream. SetCtrlDefaultVal {Val {Display 1}} Val hexadecimal (decimal) input value ranging from 0x00 (0) to 0x3F (63). Display Optional parameter. Displays additional information default set to 1. returns description conditions The static pattern is applied on the control lines with the first data sent out to the device. The level remains constant until a new control pattern is defined. If a new pattern is defined, it will only be applied on the control lines with the next outgoing data sample. SetCtrlMaskOut {MaskOut {Display 1}} MaskOut hexadecimal (decimal) input value ranging from 0x00 (0) to 0x3F (63). Revision 1.11 13-Feb-15 http//www.byteparadigm.com 19/24

returns description conditions Display Optional parameter. Displays additional information default set to 1. The control mask selects the device control lines on which the default static levels or the periodic patterns have to be applied. When a mask bit is set to 0, the corresponding control line is masked. The mask is given as a hexadecimal value; each of its bits corresponds to one of the six control lines, MSB to LSB. SetCtrlTrigMask {Mask {Display 1}} Mask hexadecimal (decimal) input value ranging from 0x00 (0) to 0x3F (63). Display Optional parameter. Displays additional information default set to 1. returns description conditions When the external triggering is used, the trigger mask selects the control lines to be used as trigger inputs. When a mask bit is set to 0, the corresponding control line is masked for triggering. The mask is given as a hexdecimal value; each of its bits corresponds to one of the six control lines, MSB to LSB SetCtrlTrigPattern {Pattern {Display 1}} Pattern hexadecimal (decimal) input value ranging from 0x00 (0) to 0x3F (63). Display Optional parameter. Displays additional information default set to 1. returns description conditions Defines the pattern to detect on the trigger inputs to generate the trigger event. SetDataMaskOut {MaskOut {Display 1}} MaskOut hexadecimal (decimal) input value ranging from 0x0000 (0) to 0xFFFF (65535). Display Optional parameter. Displays additional information default set to 1. returns description conditions Applies a mask onto the data output lines to enable / disable them. The mask MSB and LSB respectively correspond to data line 15 and data line 0. A mask bit set to 1 enables the data line; a mask bit set to 0 disables it the corresponding data line is in high-impedance. SetEdgeTrigger {Enable {Display 1}} Enable Valid values 0 or 1 0 for level trigger, 1 for edge trigger Display Optional parameter. Displays additional information Revision 1.11 13-Feb-15 http//www.byteparadigm.com 20/24

returns description default set to 0. Selects the triggering mode in edge triggering mode (Enable = 1), the ADWG run will be triggered upon detection of a transition to the programmed trigger pattern. In level triggering mode (Enable = 0), the ADWG run is triggered upon detection of the programmed trigger pattern. see also SetHoleClock {} returns description conditions Enables the hole mode to generate the output clock. In this mode, a clock pulse is generated only when a data is sent out. When no data is sent out, the output clock remains at a low level. SetInfiniteLoop {Enable} returns description conditions Enable boolean value (0 or 1). Enables / disables the infinite loop mode. In this mode, the device infinitely loops over the set of loaded data. The amount of data to transmit must not exceed the device embedded memory. SetInternalTrigger {Internal {Display 1}} Internal valid values 0 or 1. Display Optional parameter. Displays additional information default set to 1. returns description conditions Defines the triggering mode. When Internal is set to 1, the internal triggering mode is selected; when Internal is set to 0, the external triggering mode is selected. SelectIOVoltage {IOVoltage} IOVoltage integer value representing the IO voltage, the IO voltage can be internally generated of user applied. The voltage level is defined in millivolts. returns description This function only takes the following predefined values 3300, 2500, 1800, 1500 and 1200. The nearest value must be selected when the user applies a different external voltage level. For example, set IOVoltage to 2500 when 2.7V is applied. The default value is 3300. conditions SetOutClockRatio {Ratio} Ratio decimal value ranging from 1 to 65535. Revision 1.11 13-Feb-15 http//www.byteparadigm.com 21/24

returns description conditions Defines the output clock ratio with respects to the operating clock Frequency(Output Clock) = Frequency(Operating Clock) / Ratio. SetOutputClock {Output {Display 1}} Output valid values 0 or 1. Display Optional parameter. Displays additional information default set to 1. returns description Enables or disables the generation of an output clock. Output set to 1 enables the generation of the output clock; Output set to 0 disables it. conditions see also SetOutClockRatio{}, SetHoleClock{}, SetClockEdge{} SetReqClock {Freq} returns description conditions see also Freq integer value representing the requested frequency in Hz. Range from 800 (800 Hz) to 100000000 (100 MHz), according to the used device's specifications. Defines the requested operating clock frequency. The device will actually set the operating clock frequency to the closest frequency available. GetReqClock{}, GetSynthClock{} SetStaticData {Data {Display 1}} Data hexadecimal (decimal) input value ranging from 0x0000 (0) to 0xFFFF (65535). Display Optional parameter. Displays additional information default set to 1. returns description Applies the specified data pattern to the device system connector pins. conditions Terminate {} returns description conditions Closes the ADWG TCL session. This function unloads from memory the class instance used to interact with the GP Series device in ADWG mode, and hence unconnects the ADWG session from the Smart Router. Unsupervised {Enable {Display 1}} Enable valid values 0 or 1. Display Optional parameter. Displays additional information default set to 1. returns description Enables or disables the unsupervised operating mode. In this mode, the Revision 1.11 13-Feb-15 http//www.byteparadigm.com 22/24

conditions traffic part reserved to the control between the host and the device is reduced to a minimum. As a consequence, more bandwidth is available for the data. UseExtClock {} returns description conditions. Configures the device to operate with an externally supplied operating clock as reference. UseIntClock {} returns description conditions. Configures the device to operate with the internal operating clock as reference. Ver {} returns description conditions. A decimal value representing the software version. Returns the software version as a decimal value. Example software version 1.04 returns 0x104 converted as a decimal value 260. WriteConfAndDataFile {FileName} FileName specifies the procedure output file name (including path). returns 0 when write succesful. description Writes the device configuration and the data samples to a file. conditions WriteConfFile {FileName} FileName specifies the procedure output file name (including path). returns 0 when write succesful. description Writes the device configuration to a file. conditions WriteSingleSample {Sample {Display 0}} Sample Value of the sample to be written into memory. Display optional. When 1, enables the display of messages in the TCL shell. returns 0 when write succesful. description Appends the memory data buffer with the data sample specified as argument. With multiple calls to this functin, it is possible to create a set of samples to be transmitted with the device without having to use a data file, potentially offering a fast way to load data into memory. conditions Revision 1.11 13-Feb-15 http//www.byteparadigm.com 23/24

3.3 Reference Sequences and Scripts Examples of the TCL scripts are provided with the TCL library. They can be accessed in the Examples group located under the 8PI Control Panel program group created in your start menu during the installation of the application and driver on your computer. Figure 4 Program group with TCL script examples Revision 1.11 13-Feb-15 http//www.byteparadigm.com 24/24