Jump to content

Contributions:LabJackADC: Difference between revisions

From BCI2000 Wiki
Rlellis (talk | contribs)
Rlellis (talk | contribs)
No edit summary
Line 17: Line 17:


==Functional Description==
==Functional Description==
Allows recording of digital and analog inputs using a LabJack T4 or T7. The first instance of a digital input (FIO, MIO, EIO, CIO) 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.
Allows recording of digital and analog inputs using a LabJack T4 or T7. The first instance of a digital input channel (FIO, MIO, EIO, CIO) 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===
===Usage===
Make sure to install the necessary drivers [https://labjack.com/pages/support?doc=/software-driver/installer-downloads/ljm-software-installers-t4-t7-digit/#section-header-two-fhnxc here] beforehand. In CMake, enable “BUILD_CONTRIB” under “BUILD”. To use with a batch file, append “Start executable LabJackADC --local” under “Startup system localhost”.
Make sure to install the necessary drivers [https://labjack.com/pages/support?doc=/software-driver/installer-downloads/ljm-software-installers-t4-t7-digit/#section-header-two-fhnxc here] beforehand. In CMake, enable “BUILD_CONTRIB” under “BUILD”. To use with a batch file, append “Start executable LabJackADC --local” under “Startup system localhost”.

Revision as of 17:22, 16 December 2022

Synopsis

A BCI source module that allows recording of digital/analog inputs and streaming of digital inputs with a LabJack device (T4 or T7).

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 digital input channel (FIO, MIO, EIO, CIO) 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 36 channels (AIN0-13, FIO0-7, MIO0-1, EIO0-7, CIO0-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.


See also

User Reference:Filters, Contributions:ADCs