Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals | Related Pages

acq2xx_api_test.cpp File Reference

Example test harness for functional API. More...

#include "soapH.h"
#include "acq2xx.nsmap"
#include <iostream>
#include <vector>
#include "local.h"
#include <stdio.h>
#include <string.h>
#include "acq2xx_client_api.h"

Go to the source code of this file.

Namespaces

namespace  std

Functions

static int runTransaction (soap *soap, char *URL, acq2xx__Transaction *transaction)
int reportVoltsRange (char *URL)
 print the current volts ranges
int configureSoftTransient (char *URL)
 set up a SOFT_TRANSIENT capture.
int configureTriggeredContinuous (char *URL)
 set up a TriggeredContinuous mode capture.
static void dierr (int rc, acq2xx__Transaction &t)
static void dierr (int rc, const char *str)
int loop_test (char *URL)
 highly artificial test case - capture 100 shots, with incrementing sample count.
int main (int argc, char *argv[])

Variables

int verbose


Detailed Description

Example test harness for functional API.

Demonstrates use of high level function acq2xx__AcqControlTransaction()

Definition in file acq2xx_api_test.cpp.


Function Documentation

int configureSoftTransient char *  URL  ) 
 

set up a SOFT_TRANSIENT capture.

Parameters:
URL server URL eg "http://acq196_002:66666"

Definition at line 112 of file acq2xx_api_test.cpp.

References DI_NONE, MODE_SOFT_TRANSIENT, runTransaction(), and soap_new().

Referenced by main().

int configureTriggeredContinuous char *  URL  ) 
 

set up a TriggeredContinuous mode capture.

Parameters:
URL server URL eg "http://acq196_002:66666"

Definition at line 126 of file acq2xx_api_test.cpp.

References DI0, DI3, DO1, EDGE_FALLING, MODE_TRIGGERED_CONTINUOUS, runTransaction(), and soap_new().

Referenced by main().

static void dierr int  rc,
const char *  str
[static]
 

Definition at line 152 of file acq2xx_api_test.cpp.

static void dierr int  rc,
acq2xx__Transaction t
[static]
 

Definition at line 143 of file acq2xx_api_test.cpp.

References acq2xx__Transaction::print().

Referenced by loop_test().

int loop_test char *  URL  ) 
 

highly artificial test case - capture 100 shots, with incrementing sample count.

best way to view this test is to run an dt100rc concurrently, allow dt100rc to sit in the "Control" page polling status.

Parameters:
URL server URL eg "http://acq196_002:66666"

Definition at line 161 of file acq2xx_api_test.cpp.

References DI_NONE, dierr(), MODE_SOFT_TRANSIENT, acq2xx__AcqStatus::postlen, runTransaction(), soap_call_acq2xx__setArm(), soap_call_acq2xx__waitStop(), soap_destroy, soap_done(), soap_end(), soap_new(), ST_STOP, and acq2xx__AcqStatus::state.

Referenced by main().

int main int  argc,
char *  argv[]
 

Definition at line 225 of file acq2xx_api_test.cpp.

References configureSoftTransient(), configureTriggeredContinuous(), loop_test(), reportVoltsRange(), URL, and verbose.

int reportVoltsRange char *  URL  ) 
 

print the current volts ranges

Parameters:
URL server URL eg "http://acq196_002:66666"

Definition at line 83 of file acq2xx_api_test.cpp.

References acq2xx__GetAvailableChannelsTransaction::AI, acq2xx__GetVRangeTransaction::channels, acq2xx__GetVRangeTransaction::getVRange(), VRange::max, VRange::min, acq2xx__acq2scriptResponse::out, soap_call_acq2xx__acq2script(), and soap_new().

Referenced by main().

static int runTransaction soap soap,
char *  URL,
acq2xx__Transaction transaction
[static]
 

Definition at line 55 of file acq2xx_api_test.cpp.

References acq2xx__acq2scriptResponse::out, acq2xx__Transaction::print(), soap_call_acq2xx__acq2script(), SOAP_OK, and verbose.

Referenced by configureSoftTransient(), configureTriggeredContinuous(), and loop_test().


Variable Documentation

int verbose
 

Definition at line 17 of file acq2xx_client_api.cpp.

Referenced by acq2script(), acq2xx__acq2script(), acq2xx__Transaction::exec(), main(), acq2xx__ModeSetTransaction::run(), acq2xx__ShellTransaction::run(), and runTransaction().


Generated on Mon Aug 21 12:39:58 2006 for ACQ2XXWebServices by  doxygen 1.4.4