ar_plotter: Arduino Plotter

Description Usage Arguments

View source: R/ar_plotter.R

Description

Arduino Plotter

Usage

1
2
3
ar_plotter(fd, names = NULL, sep_fun = ar_sep_comma,
  reduce_freq = TRUE, flush_time = 0.05, eolchar = "\n",
  buf_max = 256, timeout = 5000)

Arguments

fd

File descriptor returned by ar_init(). Should be an integer.

names

Labels for variables

sep_fun

A function that separates the inline string into different variables. By default, it is ar_sep_comma, which splits the string by comma. You can easily write your own function, which can even do additional calculation.

reduce_freq

T/F. It might be the case that plotly streaming API can't process frequency > 25 Hz (40ms delay time) or it might be the case that my computer doesn't have enough power. Anyway, I set this option here to add 40ms delay time to reduce the sampling frequency.

flush_time

Time to flush buffed results in the serial channel

eolchar

End of line character. Default value is '\n'

buf_max

Maximum length of one line of entry. Default is 256.

timeout

Timeout for reads in millisecs. Default is 5000 ms.


hebrewseniorlife/arduinor documentation built on May 24, 2019, 8:51 a.m.