Replay Logs And Visualize Sample Data (2.0-pr.1 – 2.0-pr.7)

### 1. Open sample data To begin you will need to place the SDF file─`psync.sdf`─in to the `PSYNC_HOME/db/` directory. The sample data ships with the original SDF. ```bash $ cp $PSYNC_HOME/rnr_logs/1000/psync.sdf $PSYNC_HOME/db $ polysync-sdf-configurator # the Host Wizard will ensure the system is configured correctly ``` ### 2. Run PolySync manager You can now use the PolySync manager to start the predefined nodes from the System Design File (SDF). ```bash $ polysync-manager -n -w 2033-08-10 17:57:34 DEBUG [8854:src/polysync_core.c:884] manager_daemon : created daemon process ``` ### 3. Visualize sample data Studio will allow for a visualization of data being published to the PolySync bus and debug a system that is misbehaving. Studio also provides a replay module that allows for the management of runtime nodes. This is accomplished by instructing which logfile sessions to load to the active nodes. Start PolySync Studio from the Ubuntu icon, or from the command line: ```bash $ polysync-studio ``` Use the plugin loader to open the System Hierarchy and 3D View plugins. These plugins will allow you to view the runtime status of the nodes, and view the data captured in the logfiles. ### 4. Check for errors Check the System Hierarchy for nodes that are in an error state. If the yellow `!` appears, please check the [Console]( find the cause of the error. Then the data can be replayed. ![Missing Nodes]( The System Hierarchy plugin shows that the SDF has defined three nodes. Each one is associated with a particular sensor. ![Replay 2 Ok Nodes]( ### 5. Replay module To replay a logfile session, select the replay tab in the upper right corner of the Studio window. A list of sessions that have been recorded will be visible. These are stored in the directory defined within the SDF. Next, double click on session **1000**. You should also see the play button change to black to indicate that all nodes are synchronized and the playback of data can begin. ### 6. Start replaying data Press play to see data in the 3D View plugin. ![Replay 3 Playback]( ### Conclusion Congratulations! You have now successfully replayed and visualized your sample data.