()
| 132 | } |
| 133 | |
| 134 | private getLib() |
| 135 | { |
| 136 | try |
| 137 | { |
| 138 | const lib = koffi.load(this.dllPath); |
| 139 | return lib; |
| 140 | } |
| 141 | catch (err) |
| 142 | { |
| 143 | console.error(err); |
| 144 | throw new BrainFlowError (BrainFlowExitCodes.GENERAL_ERROR, |
| 145 | `${'Could not load BoardController DLL - path://'}${this.dllPath}`); |
| 146 | } |
| 147 | } |
| 148 | |
| 149 | public static getInstance(): BoardControllerDLL |
| 150 | { |