A ByteBlower stream is an object representing a stream of ByteBlower frames (Frame) used for transmission on a ByteBlower port. More...
Methods | |
Counters.Brief.Get | |
Returns a short list of values for the frames currently transmitted. More... | |
Counters.Clear | |
Resets the counter values to zero. More... | |
Counters.SizeDistribution.Get | |
Returns an extended list of values. More... | |
Description.Get | |
Returns a textual description of the object. | |
ErrorStatus.Get | |
Returns error status information. More... | |
Frame.Add | |
Adds a frame to the stream. More... | |
Frame.Get | |
Returns list of frames on this stream. More... | |
InitialTimeToWait.Get | |
Returns the time to wait before the first frame will be sent. More... | |
InitialTimeToWait.Set duration | |
Sets a delay before sending the first frame. More... | |
InterFrameGap.Get | |
Returns the inter-frame gap for the stream. More... | |
InterFrameGap.Set duration | |
Sets the inter-frame gap for the stream. More... | |
Modifier.Frame.Get | |
Returns the active frame modifier. More... | |
Modifier.Frame.Set type | |
Sets a frame modifier. More... | |
Modifier.Timing.Get | |
Returns the active timing modifier. More... | |
Modifier.Timing.Set type | |
Sets a timing modifier. More... | |
NumberOfFrames.Get | |
Gets the current burstcount of a stream. More... | |
NumberOfFrames.Set count | |
Sets the burst count of a stream. More... | |
Parent.Get | |
Returns the parent object. | |
Result.Clear | |
Resets the current result counters to zero and empties the Result.History. More... | |
Result.Get | |
Returns the current result counters. More... | |
Result.History.Get | |
Returns the current History counters. More... | |
Start | |
Starts the stream. More... | |
Status.Get | |
Returns status information. More... | |
Stop | |
Stops the stream. More... | |
A ByteBlower stream is an object representing a stream of ByteBlower frames (Frame) used for transmission on a ByteBlower port.
A ByteBlower stream contains the following data:
This example will show a typical stream usage flow.
Returns:
<Tx.Stream.ResultSnapshot object>
Tx.Stream::Counters.Brief.Get |
Returns a short list of values for the frames currently transmitted.
Returns:
NrOfFramesSent 12 Frame_1 4 Frame_2 8
Tx.Stream::Counters.Clear |
Resets the counter values to zero.
Tx.Stream::Counters.SizeDistribution.Get |
Returns an extended list of values.
Returns:
NrOfFramesSent 3 Frame_1 [ NrOfFrames 3 NrOfFramesPerSize [ 100 1 101 2 ] ]
Tx.Stream::ErrorStatus.Get |
Returns error status information.
Tx.Stream::Frame.Add |
Tx.Stream::Frame.Get |
Tx.Stream::InitialTimeToWait.Get |
Returns the time to wait before the first frame will be sent.
This example gets the current initial time to wait from a stream.
Returns:
9000000000
This stream will thus wait 9s before transmitting the first frame
Tx.Stream::InitialTimeToWait.Set | duration | ||
Sets a delay before sending the first frame.
duration | The amount of time to wait before sending the first frame.
ns |
This example sets the initial time to wait before sending the first frame.
Tx.Stream::InterFrameGap.Get |
Tx.Stream::InterFrameGap.Set | duration | ||
Sets the inter-frame gap for the stream.
duration | A time unit can be specified as a suffix. E.g: 20ms. If no time unit is specified then nanoseconds are used.
ns |
This example sets the inter-frame gap on a stream.
Tx.Stream::Modifier.Frame.Get |
Returns the active frame modifier.
Tx.Stream::Modifier.Frame.Set | type | ||
Sets a frame modifier.
type | The modifier type to set.
|
This example sets a growing frame modifier.
Returns:
<StreamFrameModifier.Growing object>
Tx.Stream::Modifier.Timing.Get |
Tx.Stream::Modifier.Timing.Set | type | ||
Sets a timing modifier.
type | The timing modifier type.
|
This example sets a multiburst timing modifier.
Returns:
<TimingModifier.MultiBurst object>
Tx.Stream::NumberOfFrames.Get |
Tx.Stream::NumberOfFrames.Set | count | ||
Sets the burst count of a stream.
This defines the number of frames a stream will send. -1 means continues.
count | The number of frames to set. Use -1 to send infinitely. |
This example sets the frame count of the stream.
Tx.Stream::Result.Clear |
Tx.Stream::Result.Get |
Returns the current result counters.
Returns:
<Tx.Stream.ResultSnapshot object>
Tx.Stream::Result.History.Get |
Returns the current History counters.
Returns:
<Tx.Stream.ResultHistory object>
Tx.Stream::Start |
Starts the stream.
The stream will be started when this method is called. This will also cause the results for the stream and attached frames to be cleared. The objects of the types below will thus be cleared.
Tx.Stream::Status.Get |
Returns status information.
Returns:
<Tx.Stream.RuntimeStatus object>