
Spirent Vertex Channel Emulator Triggered Play
www.spirent.com 5
12. Click the Enable DEE button.
13. Click the Play button located at the bottom of the window.
Both Vertex units begin to play simultaneously.
Ruby Script Example
Refer to the following Ruby script example for triggered DEE play on two Vertex units.
# this is an example script for DEE triggered start
require 'net/telnet'
VERTEX1_address = '172.31.10.2'; #string with Vertex IP address
VERTEX2_address = '172.31.10.3'
Vertex1= Net::Telnet.new("Host" =>VERTEX1_address, "Port" => 3000,
"Timeout" => 240,"Waittime"=> 1, "Prompt"=>/Vertex/)
Vertex2= Net::Telnet.new("Host" =>VERTEX2_address, "Port" => 3000,
"Timeout" => 240,"Waittime"=> 1, "Prompt"=>/Vertex/)
sleep(1)
puts ("Step 1, Load Setup File")
Vertex1.cmd("LOAD D:\\FTPROOT\\SPIRENT\\PUBLIC\\TEST1.SDE");
sleep(30)
Vertex2.cmd("LOAD D:\\FTPROOT\\SPIRENT\\PUBLIC\\TEST2.SDE");
sleep(30)
puts ("Step 2, Load DEE files for both Vertex")
Vertex1.cmd("LOAD D:\\FTPROOT\\SPIRENT\\PUBLIC\\TEST1.vstb");
sleep(2)
Vertex2.cmd("LOAD D:\\FTPROOT\\SPIRENT\\PUBLIC\\TEST2.vstb");
sleep(2)
puts ("Step 3, Set secondary Vertex to Trigger start mode")
Vertex2.cmd("DEE:TYPe:TRIG")
puts ("Step 4, Compile DEE")
Vertex1.cmd("DEE:COMPile:FILE
D:\\FTPROOT\\SPIRENT\\PUBLIC\\TEST1.vstb");
sleep(2)
Vertex2.cmd("DEE:COMPile:FILE
D:\\FTPROOT\\SPIRENT\\PUBLIC\\TEST2.vstb");
sleep(2)