Jump to content

Contributions:PegasusAstro: Difference between revisions

From BCI2000 Wiki
No edit summary
mNo edit summary
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Image:PegasusAstro_Display.png |500px|right|thumb|frame| The PegasusAstro USB Control Hub]]
==Introduction==
==Introduction==
[[File:PegasusAstro_Display.png | 800 px | center | The PegasusAstro USB Control Hub]]
The PegasusAstro USB Control Hub allows for easy control of up to 6 USBs. This can be used for robust control of switching between different units. See the [https://pegasusastro.com/products/usb-control-hub/ PegasusAstro USB Control Hub website] for more information.  
The PegasusAstro USB Control Hub allows for easy control of up to 6 USBs. This can be used for robust control of switching between different units. See the [https://pegasusastro.com/products/usb-control-hub/ PegasusAstro USB Control Hub website] for more information.  


==Location==
http://www.bci2000.org/svn/trunk/src/contrib/SignalProcessing/PegasusAstroFilter


==Versioning==
==Versioning==
Line 11: Line 13:


===Version History===
===Version History===
* 05/14/2021 - First working version
* 06/08/2021 - First working version
 
===Source Code Revisions===
*Initial development: 6304
*Tested under: 6304
*Known to compile under: 6306
*Broken since: --
 
==Integration into BCI2000==
Insert <code>Start executable PegasusAstroFilter --local</code> into the batch file that you want to run.


==Parameters==
==Parameters==
===EnableUSBHub===
When false (the box is not checked), this parameter keeps any processing from happening. When true (the box is checked), the program runs as it should.
===COMPort===
This is where the active COM port is defined. This COM Port is the location that the USB Hub is connected to. This information can be found on Device Manager, where it should list the COM port that is being used by the USB. If incorrect, the program will not run.


===ToggleUSBs===
===ToggleUSBs===


This parameter defines the trigger expressions to turn off the USB. Each row has the label of the USB number it corresponds to. Figure 1 shows the correct layout of which number corresponds to which USB. The column label identifies that each input must be a [https://www.bci2000.org/mediawiki/index.php/User_Reference:Expression_Syntax BCI Expression]. When the condition expressed in each row is met, that USB will be turned off.  
This parameter defines the trigger expressions to turn off the USB. Each row label contains the USB number it corresponds to. Each input must be a [https://www.bci2000.org/mediawiki/index.php/User_Reference:Expression_Syntax BCI Expression]. In the example shown in the figures, StimulusCode is the used expression. When the condition expressed in each row is met, that USB will be turned off.  


[[File:PegasusAstroNumbering.png | 500 px | thumb | center| The layout of the numbers of the USBs]]
[[File: PegasusAstro_ParameterMatrix.png | thumb | right | 545 px |An example of expressions in the ToggleUSBs parameter matrix]]


[[File: PegasusAstro_States.png | thumb | center | 900 px | Viewing each USB's state and the StimulusCode together. This example has the expressions listed in the figure to the right.]]


==States==
==States==


===Port1 - Port6===
===Port1 - Port6===
1 bit states that relay when a USB port is on or off. There are 6 separate state variables, one for each USB. 1 for on, 0 for off.
1 bit states that relay when a USB port is on or off. There are 6 separate state variables, one for each USB. 1 for on, 0 for off. The default state is that they are on.
 
[[File: PegasusAstroNumbering.png | thumb | center | 900 px | The layout of the numbers of the USBs]]
 


==See also==
==See also==

Latest revision as of 22:50, 11 April 2023

The PegasusAstro USB Control Hub

Introduction

The PegasusAstro USB Control Hub allows for easy control of up to 6 USBs. This can be used for robust control of switching between different units. See the PegasusAstro USB Control Hub website for more information.

Location

http://www.bci2000.org/svn/trunk/src/contrib/SignalProcessing/PegasusAstroFilter

Versioning

Authors

  • Will Engelhardt (wengelhardt@wustl.edu)
  • Alexander Belsten (belsten@neurotechcenter.org)

Version History

  • 06/08/2021 - First working version

Source Code Revisions

  • Initial development: 6304
  • Tested under: 6304
  • Known to compile under: 6306
  • Broken since: --

Integration into BCI2000

Insert Start executable PegasusAstroFilter --local into the batch file that you want to run.

Parameters

EnableUSBHub

When false (the box is not checked), this parameter keeps any processing from happening. When true (the box is checked), the program runs as it should.

COMPort

This is where the active COM port is defined. This COM Port is the location that the USB Hub is connected to. This information can be found on Device Manager, where it should list the COM port that is being used by the USB. If incorrect, the program will not run.

ToggleUSBs

This parameter defines the trigger expressions to turn off the USB. Each row label contains the USB number it corresponds to. Each input must be a BCI Expression. In the example shown in the figures, StimulusCode is the used expression. When the condition expressed in each row is met, that USB will be turned off.

An example of expressions in the ToggleUSBs parameter matrix
Viewing each USB's state and the StimulusCode together. This example has the expressions listed in the figure to the right.

States

Port1 - Port6

1 bit states that relay when a USB port is on or off. There are 6 separate state variables, one for each USB. 1 for on, 0 for off. The default state is that they are on.

The layout of the numbers of the USBs


See also

User Reference:Filters, Contributions:SignalProcessing