Using record and playback
Shuffleboard can log all widget updates during a session. Later the log file can be "played back" to see what happened during a match or a practice run. This is especially useful if something doesn't operate as intended during a match and you want to see what happened. Each recording is captured in a recording file.
Creating a recording
When shuffleboard starts it begins recording to all the NetworkTable values are recorded and continues until stopped by hitting the record/stop button in the recorder controls as shown below. If a new recording is desired, such as when a new piece of code or mechanical system is being tested, stop the current recording if it is running, and click the record button. Click the button again to stop recording and close the recording file. If the button is round (as shown) then click it to start a recording. If the button is a square, then a recoding is currently running so click it to stop the recording.
Playing back a recording
Previous recordings can be played back by:
- selecting the "Recording" menu then click "Load playback".
- Choose a recording from the from the directory shown. Recordings are grouped by date and the file names are the time the recording was made to help identify the correct one. Select the correct recording from the list.
Controlling the playback
Selecting the recoding file will begin playback of that file. While the recording is playing the recording controls will show the current time within the recording as well as the option to loop the recording while watching it. When the recording is being played back the "transport" controls will allow the playback to be controlled.
The controls work as follows:
- The left double-arrow button backs up the playback to the last changed data point
- The play/pause controls starts and stops the playback
- The square stop button stops playback and resumes showing current robot values
- The right double-arrow skips forward to the next changed data value
- The scrubber is a slider that allow direct positioning to any point in time to view different parts of the recording
- The loop switch turns on playback looping, that is, the playback will run over and over until stopped
- The time shows the current point within the recording and the total time of the recording
Graphs won't display properly while scrubbing the timeline but if it is playing through where the graph history can be captured by the graph then they will display as in the original run. Currently images will not play back correctly from your recordings. We are working on adding this function inn the future.