<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.bci2000.org/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lisongwei</id>
	<title>BCI2000 Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.bci2000.org/mediawiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Lisongwei"/>
	<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php/Special:Contributions/Lisongwei"/>
	<updated>2026-06-13T00:27:14Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://www.bci2000.org/mediawiki/index.php?title=User_Reference:gHIamp&amp;diff=8531</id>
		<title>User Reference:gHIamp</title>
		<link rel="alternate" type="text/html" href="https://www.bci2000.org/mediawiki/index.php?title=User_Reference:gHIamp&amp;diff=8531"/>
		<updated>2020-08-17T08:06:53Z</updated>

		<summary type="html">&lt;p&gt;Lisongwei: The location of this module has been change in to core, this page need an update.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Synopsis==&lt;br /&gt;
The g.HIamp is a 256 analog channel and 16 digital channel amplifier from g.tec.  The contributed source module acquires raw signals from the amplifier in real time for use in BCI2000.&lt;br /&gt;
&lt;br /&gt;
==Location==&lt;br /&gt;
http://{{SERVERNAME}}/svn/trunk/src/core/SignalSource/g.HIampSource&lt;br /&gt;
&lt;br /&gt;
==Versioning==&lt;br /&gt;
&lt;br /&gt;
===Authors===&lt;br /&gt;
Griffin Milsap (griffin.milsap@gmail.com)&lt;br /&gt;
Rensselaer Polytechnic Institute &lt;br /&gt;
&lt;br /&gt;
Kristopher Kaleb Goering (kaleb.goering@gmail.com)&lt;br /&gt;
University of Kansas&lt;br /&gt;
&lt;br /&gt;
===Version History===&lt;br /&gt;
Version 0.9: August 2011&lt;br /&gt;
* Supports one g.HIamp&lt;br /&gt;
* Supports Filters&lt;br /&gt;
* Referencing by any channel&lt;br /&gt;
* Future compatible with g.HIamp master/slave configurations&lt;br /&gt;
* Using g.HIamp C API version 1.11.02&lt;br /&gt;
&lt;br /&gt;
Version 1.0 June 2015&lt;br /&gt;
* Digital Inputs enabled&lt;br /&gt;
* Using g.HIamp C API version 2.14.03&lt;br /&gt;
&lt;br /&gt;
===Source Code Revisions===&lt;br /&gt;
*Initial development: 3472&lt;br /&gt;
*Tested under: 4908&lt;br /&gt;
*Known to compile under: 4908&lt;br /&gt;
*Broken since: --&lt;br /&gt;
&lt;br /&gt;
==Functional Description==&lt;br /&gt;
Acquires raw data from the g.HIamp.&lt;br /&gt;
&lt;br /&gt;
==Installation==&lt;br /&gt;
Compile the gHIampSource module using [[Programming_Reference:Build_System#How_To_Build_Using_CMake|CMake and your compiler]].  The resulting gHIampSource.exe should be placed in the prog directory automatically.&lt;br /&gt;
&lt;br /&gt;
==Parameters==&lt;br /&gt;
* &#039;&#039;&#039;SourceCh&#039;&#039;&#039; represents the total number of channels to be logged from the source module.&lt;br /&gt;
* &#039;&#039;&#039;SampleBlockSize&#039;&#039;&#039; should be set equal to the size of the sample block pulled from the device. &amp;lt;br/&amp;gt;&lt;br /&gt;
** &#039;&#039;&#039;NOTE:&#039;&#039;&#039; &amp;lt;span style=&amp;quot;text-decoration: underline;&amp;quot;&amp;gt;Only specific combinations of SampleBlockSize and SampleRate are valid!  See [[#Valid Operating Modes]]&amp;lt;/span&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;SampleRate&#039;&#039;&#039; determines the rate at which the device samples data. &amp;lt;br/&amp;gt;&lt;br /&gt;
** &#039;&#039;&#039;NOTE:&#039;&#039;&#039; &amp;lt;span style=&amp;quot;text-decoration: underline;&amp;quot;&amp;gt;Only specific combinations of SampleBlockSize and SampleRate are valid!  See [[#Valid Operating Modes]]&amp;lt;/span&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;ChannelNames&#039;&#039;&#039; is a convenience parameter.  Name channels here and they can be referenced by these names later.&lt;br /&gt;
* &#039;&#039;&#039;SourceChOffset&#039;&#039;&#039; should be set to a list of &amp;quot;0&amp;quot;s -- one 0 for each channel as indicated by SourceCh, separated by spaces.&lt;br /&gt;
* &#039;&#039;&#039;SourceChGain&#039;&#039;&#039; should be set to a list of &amp;quot;1&amp;quot;s -- one 0 for each channel as indicated by SourceCh, separated by spaces.&lt;br /&gt;
* &#039;&#039;&#039;DeviceIDMaster&#039;&#039;&#039; is the serial number identifier of the master g.HIamp device.  This serial can be found on the physical device and is typically in a &amp;quot;&#039;&#039;&#039;HA-20XX.XX.XX&#039;&#039;&#039;&amp;quot; format.  This parameter can also be set to &amp;quot;&#039;&#039;&#039;auto&#039;&#039;&#039;&amp;quot; if there is only one g.HIamp device connected to the machine.&lt;br /&gt;
* &#039;&#039;&#039;DeviceIDs&#039;&#039;&#039; is a list of device serials (typically in &amp;quot;&#039;&#039;&#039;HA-20XX.XX.XX&#039;&#039;&#039;&amp;quot; format) which corresponds to the devices to record channels from.  One of these serials must be specified as the master device in the &amp;quot;DeviceIDMaster&amp;quot; parameter.  This parameter can also be set to &amp;quot;&#039;&#039;&#039;auto&#039;&#039;&#039;&amp;quot; if there is only one g.HIamp device connected to the machine.  &amp;lt;br/&amp;gt;&lt;br /&gt;
** &#039;&#039;&#039;NOTE:&#039;&#039;&#039; &amp;lt;span style=&amp;quot;text-decoration: underline;&amp;quot;&amp;gt;Device slaving is not yet supported by the module OR the g.HIamp C API. -- This parameter only exists for future compatibility. &amp;lt;/span&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;RefChList&#039;&#039;&#039; is a list of channels which can act as &amp;quot;Reference&amp;quot; channels for each amp.  If left blank, no channel will be used as a reference, and the raw signal will be recorded in the output.  &amp;lt;br/&amp;gt;&lt;br /&gt;
** &#039;&#039;&#039;NOTE:&#039;&#039;&#039; &amp;lt;span style=&amp;quot;text-decoration: underline;&amp;quot;&amp;gt;If specifying reference channels, there must be one reference channel per device specified in &amp;quot;DeviceIDs&amp;quot; in the same order. &amp;lt;/span&amp;gt;&lt;br /&gt;
* &#039;&#039;&#039;SourceChList&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;FilterEnabled&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;FilterHighPass&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;FilterLowPass&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;FilterModelOrder&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;FilterType&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NotchEnabled&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NotchHighPass&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NotchLowPass&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NotchModelOrder&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;NotchType&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;SourceBufferSize&#039;&#039;&#039;&lt;br /&gt;
* &#039;&#039;&#039;EnableDigitalInputs&#039;&#039;&#039; is a toggle button to enable both digital input ports and store them in synchronous states DigitalInput1 - DigitalInput16.&lt;br /&gt;
** &#039;&#039;&#039;NOTE&#039;&#039;&#039; &amp;lt;span style= &amp;quot;text-decoration: underline;&amp;quot;&amp;gt; To record digital input, at least one analog channel must also be recorded. &amp;lt;/span&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Valid Operating Modes===&lt;br /&gt;
The gHIamp only accepts specific combinations of sampling rates and sample block sizes.  The following table shows all valid combinations of sample rate and block size.  Operating outside of these modes is untested and could result in problems.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot;&lt;br /&gt;
!Sample Rate&lt;br /&gt;
!Valid Sample Block Sizes&lt;br /&gt;
|-&lt;br /&gt;
|256 Samples per second&lt;br /&gt;
|1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 32 64 128 256&lt;br /&gt;
|-&lt;br /&gt;
|512 Samples per second&lt;br /&gt;
|2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 32 64 128 256&lt;br /&gt;
|-&lt;br /&gt;
|600 Samples per second&lt;br /&gt;
|4 5 6 7 8 9 10 11 12 13 15 16 17 32 64 128 256&lt;br /&gt;
|-&lt;br /&gt;
|1200 Samples per second&lt;br /&gt;
|8 9 10 11 12 13 14 15 16 32 64 128 256&lt;br /&gt;
|-&lt;br /&gt;
|2400 Samples per second&lt;br /&gt;
|16 32 64 128 256&lt;br /&gt;
|-&lt;br /&gt;
|4800 Samples per second&lt;br /&gt;
|32 64 128 256&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==Digital Input==&lt;br /&gt;
The g.HIamp has two digital input ports which give a total of 16 digital input channels, see figures below. These channels can be read and stored in synchronous states and the same sample rate as the analog channels. More information on the states are below.&lt;br /&gt;
&lt;br /&gt;
[[File:DigIn1.JPG]]&lt;br /&gt;
&lt;br /&gt;
[[File:DigIn2.JPG]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===State Variables===&lt;br /&gt;
&lt;br /&gt;
The state name gives which pin the value was read from. They are saved synchronously as the signals are read. Their value can be either a 0 or a 1.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-----------------------------------------&lt;br /&gt;
StateName           == Sensor&lt;br /&gt;
-----------------------------------------&lt;br /&gt;
DigitalInput1  == Digital In 1 Pin1&lt;br /&gt;
DigitalInput2  == Digital In 1 Pin2&lt;br /&gt;
DigitalInput3  == Digital In 1 Pin3&lt;br /&gt;
DigitalInput4  == Digital In 1 Pin4&lt;br /&gt;
DigitalInput5  == Digital In 1 Pin5&lt;br /&gt;
DigitalInput6  == Digital In 1 Pin6&lt;br /&gt;
DigitalInput7  == Digital In 1 Pin7&lt;br /&gt;
DigitalInput8  == Digital In 1 Pin8&lt;br /&gt;
DigitalInput9  == Digital In 2 Pin1&lt;br /&gt;
DigitalInput10 == Digital In 2 Pin2&lt;br /&gt;
DigitalInput11 == Digital In 2 Pin3&lt;br /&gt;
DigitalInput12 == Digital In 2 Pin4&lt;br /&gt;
DigitalInput13 == Digital In 2 Pin5&lt;br /&gt;
DigitalInput14 == Digital In 2 Pin6&lt;br /&gt;
DigitalInput15 == Digital In 2 Pin7&lt;br /&gt;
DigitalInput16 == Digital In 2 Pin8&lt;br /&gt;
-----------------------------------------&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[[User Reference:Filters]], [[Contributions:ADCs]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Contributions]][[Category:Data Acquisition]]&lt;/div&gt;</summary>
		<author><name>Lisongwei</name></author>
	</entry>
</feed>