07/10/2015
VTI Instruments (an Ametek Instruments Company).

DISCLAIMER: These tools are provided as-is for developer use only. Do not use them incorrectly, as they can render a 10xxA inoperative. VXI Technology is not responsible for damage resulting from the use of these tools. No distribution of this source code, binaries, auto generated code, or basically anything that comes out of this .tar.gz file or the compiler used on it can be distributed by anybody for any reason without express written permission of VTI Instruments.

EX1629 Linux Client Tools Release Notes
---------------------------------------
v1.1.0
------
 - Re-organized the client code with examples.

v1.0.0
------
 - Initial version of the Linux Client Tools for EX1629.

Notes on using the Linux EX1629 command-line tools:

Basics
------

These command-line tools provide a simple interface to EX1629 instruments.  They are intended primarily for testing and development.

All of the tools are built into a single executable, client, whose execution behavior varies depending on the name used to invoke it.  The commands are symlinks to this executable.

Help
----
Each command-line tool provides a minimal amount of help information if it is invoked with a --help parameter:

>readfifo --help
Usage: readfifo          -v            verbose (generates more output)
         -c count      count (default is 1)
                       (set to -1 for continuous gather)
         -p pages      number of data pages per request (0 queries FIFO count;
                         -1 requests max; pages>1 requests pages)
                       (default is 0)
         -s            output data in CSV format
         -d            discard data (do not display on stdout)
         -x            display throughput data (KB/sec)
         filename      output file name (default stdou)


If in doubt, look at the source code.


Environment Variables
---------------------

All of the command-line tools support a Unix environment variable, EX1629OPTS, that can be used to store common command-line arguments.  

To common command-line arguments, supported by all of the tools are

-h <host>	specify the host ip to communicate with

The environment variable can be set in a shell startup file, such as .bashrc, using vi or your favorite editor:

export EX1629OPTS="-h 10.1.2.103"


Important Command Summary
---------------
trigabort	abort the current acquisition
exreset		reset the instrument to the power-on defaults
getconversion	get channel EU conversions
getfreqs	get channel frequency filter settings
getscanlist	get scanlist channels
readfifo	read data from the FIFO
resetfifo	reset the FIFO
setconversion	set channel EU conversions
setscanlist	set scanlist channels
settriggerparam	sets many trigger functions
setfilter       sets the filter settings
triginit	initiate trigger and acquisition


Examples and Usage
------------------

To perform a simple acquisition, the following commands might be used (assumes EX1629OPTS environment variable has been set)

# reset the instrument
exreset
# configure the scanlist for channels 0,1,4,5,6,7,8
setscanlist 0 1 4-8
# set trigger source to be the trigger timer
settriggersrc timer
# set pretrigger sample count (not used) to 0, trigger count to 100, trig/arm delays to 0, trig/arm count to 1, timer period and init continuous to 0
settrigcount 0 100 0 0 1 1 0 0
# initiate the trigger
triginit
# read data continuously in CSV format
# Use CTRL-C to stop readfifo
readfifo -s -p -1 -c -1 ~/temp/data1.csv

