Printer FriendlyEmail Article Link

Attero: Automation - How do I start an impairment, run for a specified amount of time, then stop it using the Tcl API?

Objective/Summary

In the Attero GUI, impairments are started and stopped via the Start/Stop Impairments button, respectively. 
This article explains how to do this in the Attero Tcl API.

Environment/Versions
  • Attero X hardware
  • Attero GUI
    • 40.04.08
  • Tcl script running Attero API commands
Procedure

Issue the following lines of code:

# Load the Calnex supplied interface file 
source "C:/Program Files (x86)/Calnex/Attero/attero.tcl" 
 
# Make the application connect to the instrument with IP address 10.11.12.13
connect 10.11.12.13

# atteroset Impair ImpairProfile #<port> #<flow> FixedDelay <fixedDelay in usec> 
#                                 |                               
#                                 +--------- ports are 0-based
atteroset Impair ImpairProfile #0 #3 FixedDelay 1000000
atteroset Impair ImpairProfile #1 #3 FixedDelay 500000

# in msecs
set impairmentDuration 1000

startimpairment
after $impairmentDuration
stopimpairment

# And disconnect 
Disconnect


Product : Impairment,Automation,Attero