From the gUSBampSoftwareManual,
Code: Select all
Status = GT_SetBipolar(HANDLE hDevice, BIPOLAR bipoChannel);
Define the channels for a bipolar derivation.
The function returns true if the call succeeded otherwise it will return false.
Input:
hDevice HANDLE handle of the device
bipoChannel BIPOLAR
Channel1 UCHAR define the channel number for the bipolar derivation with channel 1. If channel 2 is selected, g.USBamp performs a bipolar derivation between channel 1 and 2. Set the channel number to zero if no bipolar derivation should be performed.
Channel2 UCHAR set to channel number or 0
...
Channel16 UCHAR set to channel number or 0
Output:
Status BOOL Status=0 command not successful
Status=1 command successful
Code: Select all
BIPOLAR BipolarDerivation
m_numdevices=Parameter("DeviceIDs")->NumValues();
int deviceChannelsOffset = 0;
for (int dev=0; dev<m_numdevices; dev++)
{
BipolarDerivation.Channel1=(int)Parameter("BipolarList")(deviceChannelsOffset + 0)
.
.
.
BipolarDerivation.Channel16=(int)Parameter("BipolarList")(deviceChannelsOffset + 15)
GT_SetChannels(m_hdev.at(dev), BipolarDerivation)
}
deviceChannelsOffset += 16;
So I can spend a day or so hacking something together for myself, or maybe someone else wants to do it properly and contribute it to the core? Is this a desirable feature?
-Chad