openbci-archive / OpenBCI_NodeJS

Node.js SDK for the all OpenBCI Biosensor Boards
https://www.npmjs.com/package/openbci
137 stars 52 forks source link

ADD ability to determine if channel is railed #52

Open andrewjaykeller opened 8 years ago

andrewjaykeller commented 8 years ago

Would be nice if we could query a channel number and see if it is railed like

for ( i = 0; i < board.numberOfChannels(); i++) {
    var railed = board.isRailedChannel(i + 1);
    if (railed) console.log("Channel " + (i+1) " railed");
}