Printer FriendlyEmail Article Link

How to preview the streamblock using Spirent TestCenter TCL API

Answer

set hStreamPreviewData [stc::get streamblock2 -children-PreviewData] 
puts "\n $hStreamPreviewData [stc::get $hStreamPreviewData]"

set lstStreamPreviewColumn [stc::get $hStreamPreviewData -ColumnHeaders]
set lstStreamPreviewData [stc::get $hStreamPreviewData -Data]
puts "\n lstStreamPreviewData $lstStreamPreviewData "

set index 1
foreach header $lstStreamPreviewColumn {
 puts "Column $index. $header"
 incr index
}

set index 1
foreach data $lstStreamPreviewData {
 puts "\n $index. [split $data ";"]"
 incr index
}
 


Product : L2-3,API,Spirent TestCenter