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:
  • buttonPressedstring the button that was pressed

  • secondsfloat the current frame, converted to seconds

  • levelint the “level” in the frequency space

  • stimRatefloat the current rate of stimulation, or whatever is being affected by the level

void close()

Closees the plotter connection.