multichannelsystems / McsUsbNet_Examples

C#, Python and Matlab code examples to interact with the McsUsbNet.dll
BSD 2-Clause "Simplified" License
7 stars 2 forks source link

README for McsUsbNet_Examples

This repository contains the McsUsbNet.dll for accessing MCS devices directly, as well as documentation and examples.

It does not contain any support for reading and writing specific MCS file formats like the MSRD file format of Multi Channel Experimenter, the MCD file format of MC_Rack or the STM file format of MC_Stimulus II.

Repository Structure

Please note that you need to have .NET Framework 4.7.2 and Microsoft Visual C++ Redistributable for Visual Studio 2019 installed to interact with the dll.

Please note as well: If you download this repository as a .zip archive, GitHub doesn't include the McsUsbNet submodule. Please download the McsUsbNet repository as well and copy its contents into the McsUsbNet_Examples/McsUsbNet folder.

Please note : The dll comes with an xml file McsUsbNet.xml, that allows, for example in Visual Studio, to have a code completion. We regard this a part of the documentation and you should use a tool that allows for code completion at least in parallel to you actual target development system.

Example Code

C

All example projects require .NET 4.7.2 or later.

Folder Purpose
\Examples\CSharp\MEA_Recording Data acquisition from MEA devices
\Examples\CSharp\MEA2100_Stimulation Stimulation for the MEA2100 device platform
\Examples\CSharp\STG_Stimulation Stimulation for STG devices

Python

All examples require .NET 4.7.2 or later. Tested with Python 3, use pip install pythonnet

File Purpose
\Examples\Python\Recording.py Data acquisition from MEA devices
\Examples\Python\Stimulation.py Stimulation for STG devices
\Examples\Python\DeviceList.py Enumerate MCS devices

Matlab

All examples require .NET 4.7.2 or later. Tested on Matlab 2019b.

Folder Purpose
\Examples\Matlab\MEA_Recording Data acquisition from MEA devices
\Examples\Matlab\MEA2100_Stimulation Stimulation for the MEA2100 device platform
\Examples\Matlab\STG_Stimulation Stimulation for STG devices