Contributions:LabJackADC
Synopsis
A BCI source module that allows recording of digital/analog inputs and streaming of digital inputs.
Location
http://www.bci2000.org/svn/trunk/src/contrib/SignalSource/LabJackSource
Versioning
Authors
Robert Ellis (ellis@neurotechcenter.org)
Version History
V1.0-12/15/2022-Allows acquisition of digital/analog signals using a LabJack device
Source Code Revisions
None
Functional Description
Allows recording of digital and analog inputs using a LabJack T4 or T7. The first instance of a flexible input/output (FIO) channel listed will be recorded as a digital stream. This module has been tested with a LabJack T7 connected via USB, though it should also function with a LabJack T4 and with ethernet connection.
Usage
Make sure to install the necessary drivers here beforehand. In CMake, enable “BUILD_CONTRIB” under “BUILD”. To use with a batch file, append “Start executable LabJackADC --local” under “Startup system localhost”.
Parameters
SourceCh
Number of source channels to be used. Currently supports up to 18 channels (AIN0-13, FIO0-3).
SampleBlockSize
Number of samples to be collected before processing
SamplingRate
Number of samples to be collected per second. Maxes out at 100k, but the true maximum sampling rate depends on your setup (connection type, numbers of channels used, resolution, etc). Information about LabJack’s sampling rate can be found here.
ChannelNames
Channel names must be entered in the format of their label (ex: “AIN0”, ”FIO3”). The first FIO channel listed will have data stored as a stream under “DigitalStream”. AIN0-13 and FIO0-3 are supported
SourceChGain
Factor by which channel’s data will be scaled
SourceChOffset
Value by which each channel’s data will be offset
Resolution
Allows the user to adjust the resolution used. Takes a value between 0 and 8, where 0 is the default/recommended value. More information on resolution here.
Range
The amplitude of the signal, between 0V and 10V. Higher ranges get processed faster, while lower ranges take more time to process. More information here.
States
None.