This example demonstrates how to use Holoscan::PeriodicCondition.
Visit the SDK User Guide to learn more about the Periodic Condition.
This example has two operators involved:
- a transmitter, set to transmit a string message
Periodic ping...
on portout
. This operator is configured to be executed 10 times each subsequent message is sent only after a period of 200 milliseconds has elapsed. - a receiver that prints the received values to the terminal.
Built with the SDK, see instructions from the top level README.
First, go in your build
or install
directory (automatically done by ./run launch
).
Then, run:
./examples/conditions/periodic/cpp/periodic_ping
This example demonstrates the use of PeriodicCondition using python API. This is a simple ping application with two operators connected using add_flow().
There are two operators involved in this example:
- a transmitter, set to transmit a sequence of integers from 1-10 on its 'out' port and each subsequent message is sent only after a period of 200 milliseconds has elapsed.
- a receiver that prints the received values to the terminal
Built with the SDK, see instructions from the top level README.
First, go in your build
or install
directory (automatically done by ./run launch
).
Then, run the following command.
python3 ./examples/conditions/periodic/python/ping_periodic.py