Hi, glad you got it working.
To answer your questions:
1) Yes, the runtime running on the Pi is getting the data from the
camera via USB and then sending it out to your laptop via a DV TCP
Output Server module. When you create a visualizer in the GUI, it adds
such a module on the Pi automatically and connects to it. You can also
add them manually, see the dv-python examples for that:
https://gitlab.com/inivation/dv/dv-python#configure-dv
2) The configuration is saved locally to your machine, but is deployed
to the remote Pi when you select it. It will remain deployed there and
should automatically resume if you reboot the Pi (careful, if you kill
the Pi by just unplugging its power DV-runtime won't be able to
gracefully shutdown and save its configuration, in which case it will
resume from either an empty state or the last successfully saved
state).
3) The easiest way is to compile on the Pi as per instructions there.
If you want to be able to test everything locally on your PC and then
cross-compile to deploy on the Pi that is also possible:
https://inivation.gitlab.io/dv/dv-docs/docs/qtcreator-crosscompilation/
But just having your module in some git repo and then just 'git pull &&
compile' on the Pi is by far the easiest way to set this up.
4) That's possible. You wouldn't use the Trigger data type, that's
mainly meant to 'represent' possible triggers from the camera. To
actually do something on the Pi, such as set one of its GPIOs, you
would simply include the relevant Pi-GPIO libraries in your custom
module and do the action there, something like:
>> if (events_per_second > 1M) rpi_gpio_set(44, true);
Hope this helps, have a great week!
--
Luca Longinotti (llongi)
Software Engineer
iniVation AG -
https://inivation.com/
Zurich, Switzerland
Office:
+41 44 500 32 14
Support -
https://inivation.com/support/