Plotter

Overview

Members

class Plotter

Public Functions

Plotter()

Construct a new Plotter object.

void sync()

Syncs with Python plotter. Note that this function will block until the plotter is ready.

void sendFrequencyGameData(string buttonPressed, float seconds, int level, float stimRate)

sends data to python plotter for real-time plotting

This function MUST be called only after syncing both end of the plotter.

Parameters:
  • buttonPressed – string the button that was pressed

  • seconds – float the current frame, converted to seconds

  • level – int the “level” in the frequency space

  • stimRate – float the current rate of stimulation, or whatever is being affected by the level

void close()

Closees the plotter connection.