Skip to contents

Construct an LSL outlet

Usage

lslOutlet(
  info,
  chunk_size = 0L,
  max_buffered = 360L,
  backend = getOption("PhysioStream.lsl_backend", "auto")
)

Arguments

info

A valid numeric regular-rate or string irregular-rate StreamInfo.

chunk_size

Exact non-negative LSL chunk preference.

max_buffered

Exact positive LSL sender buffer bound.

backend

Exact backend, currently "auto" or "pylsl".

Value

An LSLOutlet in state "created".

Examples

# \donttest{
# Publishing requires the LSL runtime (pylsl/liblsl).
if (lslAvailable()) {
  info <- streamInfo("demo", type = "EEG",
                     channel_names = c("C3", "C4"), nominal_srate = 100)
  outlet <- streamOpen(lslOutlet(info))
  lslPush(outlet, matrix(as.double(1:4), 2, 2))
  streamClose(outlet)
}
# }