Import And Export Logfiles

This article was written for version 2.3.1 of Core. Click here for the most recent version of the help center.

Studio provides an interface to export recorded logfile sessions, from a single-host or a distributed system, and import the logfile session to any other PolySync Core system.

Always follow this process to export and import logfile data. Never manually copy files to or from the PolySync Core install directory.

1. Exporting from Studio

Once a logfile session has been recorded and is visible in the logfile manager, it can be exported with a few quick steps using Studio’s logfile management tools.

Studio can export any PolySync Core logfile session, even it was recorded using custom or command line tools like the rnr-control C API example.

  1. Ensure the Core manager is running
    • $ sudo service polysync-core-manager start
  2. Start Studio with the application icon, or with the command:
    • $ polysync-core-studio
  3. Click the Logfile manager icon Studio landing screen
  4. Right-click on a logfile session, and click Export Studio logfile manager export option

2. Importing to Studio

The Studio logfile manager has an interface to import logfile sessions that were recorded on another PolySync Core system. Once the data is imported, Studio and other nodes are able to detect, load, and access the logfile data.

2.1 Download or transfer logfile data

Logfile sessions must be exported from the original system. A properly exported logfile session can be replayed on any other PolySync Core system, even different architectures.

Once the data is downloaded or copied to the target machine, Studio is able to import the logfile session using the logfile manager module.

PolySync Core provides logfile sessions with real-world data on the help center download page.

  1. Copy the logfile session to the local ECU
    • If you do not have logfile data, you can download the logfile session 1000 to the Downloads/ directory
  2. Extract the files from the tarball archive
    • $ cd ~/Downloads/
    • $ tar xf polysync-logfile-session-1000_core_V0.1.tar.gz
    • This creates the directory ~/Downloads/1000/, containing the replay SDF and plog logfile data

Ensure that you have read/write access to the files before importing the logfile session.

2.2 Import a logfile session

Follow these steps to import a previously exported logfile session.

  1. Start the PolySync Core manager
    • polysync-core-manager
  2. Start Studio with the application icon, or the command
    • polysync-core-studio
  3. Click the Logfile manager icon icon Studio landing screen
  4. Right-click within the logfile manager section, or select the Logfile manager import icon icon Logfile manager area
  5. Navigate to and select the extracted logfile session in the Downloads folder, click the Import button Logfile manager import window
  6. Allow the logfile session to fully import, wait for the session to show up in the logfile manager Importing In-progress

Studio will begin importing the files to the logfile management section. The import status is shown with a loading bar. A textual status and description of the file transfer is provided in the console debug log messages.

Once the session is visible within the logfile manager, it can be selected for playback by dragging the folder to the playlist.