This example demonstrates a simple ping application 'asynchronously' 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 to it's 'out' port
- a receiver that prints the received values to the terminal
While the application is running, it prints the index value from PingTxOp 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.
# C++
./examples/ping_simple_run_async/cpp/ping_simple_run_async
# Python
python3 ./examples/ping_simple_run_async/python/ping_simple_run_async.pyℹ️ Python apps can run outside those folders if
HOLOSCAN_INPUT_PATHis set in your environment (automatically done by./run launch).