Contributions:PegasusAstro
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.
Versioning
Authors
- Will Engelhardt (wengelhardt@wustl.edu)
- Alexander Belsten (belsten@neurotechcenter.org)
Version History
- 05/14/2021 - First working version
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 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 BCI Expression. When the condition expressed in each row is met, that USB will be turned off.

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.
