Q. Is there an easier way to use the python-ostinato API?¶
You can save streams from the GUI as a python script.
Note that since these are wrapper APIs, you still need the Ostinato API.
Q. I configured a stream and called
startTransmit(), but no packets are being transmitted. Why?¶
Stream.core.is_enabled is set to
Q. I configured multiple streams and called
startTransmit(), but streams are being transmitted in a random order. Why?¶
In case of multiple streams, streams are ordered by the
Stream.core.ordinal field (not by order of streams nor by stream id). Make sure you set the ordinal field in each stream correctly as per the required order.
Q. How do I find the version of the python bindings I'm using?¶
import ostinato print ostinato.__version__ print ostinato.__revision__
Q. Does the python package include any debugging features?¶
Yes. Add the following at the start of your script -
import logging logging.basicConfig(level=logging.DEBUG)
You can set the logging level for the ostinato module independently from your own script's logging level -