Once a node has been defined in the SDF with the proper I/O Configuration, the dynamic driver is used to parse the sensor serial number. This is used by the dynamic driver to validate sensor data.
Dynamic driver interfaces that require a sensor identifier accept the '-g' flag. We can spawn a node from the command line by referencing the node ID found in the SDF Configurator. It's strongly recommended to start the PolySync Manager before parsing the sensor identifier.
$ polysync-manager
$ polysync-dynamic-driver -n 1 -g -o
The information is written to the PolySync log file. You can 'tail' the log file to capture the output of the dynamic-driver.
- For versions V2.0.0-pr.1 -> V2.0.4-pr.3
-
$ tail -f /var/log/syslog
- For versions V2.0.4-pr.4+
-
$ tail -f /usr/local/polysync/polysync.log
The output shown in the animation above will show you which value represents the sensor identifier.
After we obtain the sensor identifier we update our node in the SDF Configurator.
0 Comments