question

pecastillo avatar image
pecastillo asked bhavani.geepalem answered

iTest TCL STC API modify read only streamblock attribute

Hi there,

I am trying to modify the MbpsLoad parameter from a streamblock using TCL STC API but it is coming back with the error "couldn't set the read only attribute":

TestCenter>eval stc::config streamblock5 -MbpsLoad 5

Failed to evaluate tcl command 'stc::config streamblock5 -MbpsLoad 5'

TestCenterException

StdOut =

StdErr =

Result = RuntimeError in config: couldn't set the read only attribute -MbpsLoad

Does anybody know how to modify this parameter? or is there a way to change the attribute "read only" to allow changes?

Thank you!!!

iTestSpirent TestCenter (STC)stc-gui
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
bhavani.geepalem avatar image
bhavani.geepalem answered

As MbpsLoad is the readonly attribute, we can not modify the value of it.

Where as we can modify the loadunit to MEGABITS_PER_SECOND. For this, we need to get the streamblockloadprofile1 to modify it.

The API commands to modify the loadunit to Mbps is: eval stc::config streamblockloadprofile1 -loadunit MEGABITS_PER_SECOND -load 50

Attached is the screenshot for your reference.


stc-mbpsload.jpg (73.7 KiB)
10 |950

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.