Recording Data

The easiest way to record data is by using Studio's [record module](/articles/?p=1626). Custom nodes cannot automatically record and replay data. They must use PolySync APIs to manage logfile data, for example the PolySync-provided nodes. PolySync-provided nodes each implement file reading and writing routines using the PolySync [Logfile API]( The nodes also need to listen for the `ps_rnr_msg`, which uses the [Record & Replay API]( to instruct nodes regarding what files they should open, and when to start/stop recording and replaying data. Applications like Studio's replay module implement the Record & Replay API in instructing which directory nodes should record data to, and when to start writing data to the disk.