-
Notifications
You must be signed in to change notification settings - Fork 0
2. Getting Started
It is recommended to use the latest release. You find it here: Latest telease on github
You will find the *tar.gz for linux and the *.zip version for Windows.
linux
Prerequistes: SDL2 must be installed if you want to use the graphic functions of the DLL. If it is not installed, open a command prompt:
'''bash sudo apt-get install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0 '''
Unzip the downloaded archive into a folder of your choice and open a command prompt in this directory. You will need the administrator password to install the drivers.
bash install.shWindows:
No installation is necessary. The DLL must only be accessible from the respective application. In the simplest case, the DLL contained in the archive is copied to the directory where the application is stored.
You may also register the DLL in the system. The DLL is then accessible system-wide and a copy of the DLL in the respective start folder of the application is not necessary.
The /share/C folder of the archive contains sample files for the C programming language.
You will find further information in the readme.md file.
If you only want to use python with biovision digitizers, no installation of drivers is neccessary. You only need a package of python (Pypi.org) Install in terminal:
pip install multidaq
This package needs numpy. pip will automaticly install numpy, if you did not before.
linux: Two important points: you need rights to access the devices and a installed SDL2 lib.
There are at least 3 ways to get the rights. Method 3 is the safest.
- Be administrator or open python with sudo, you have all rights.
- Add yoursel to dialout group: Open a terminal and enter following command with your <username>.
sudo usermod -a -G dialout <your_username>
- Use udev: First download the file from github and copy to a system location:
sudo cp 50-biovision-devices.rules /etc/udev/rules.d/50-biovision-devices.rulesSDL2 is widely used and probaly installed on your PC. If not, install at least:
sudo apt-get install libsdl2-2.0-0 libsdl2-ttf-2.0-0 libsdl2-image-2.0-0.
you may test the installation now in python console:
import multidaq
print(multidaq.multiDaq().listDevices())The output should be a list of strings describing the detected ports. if none is connected you see only an empty list ("[]").
launch demos: Open a terminal in the unpacked archive and launch the python scripts as usual. (e.g. "python demo1.py" in Windows console)
You did not install multidaq per pip command and want to use C or matlab simultanously with the device. Then manual install is approbiate.
linux: Driver must be installed for that purpose.
The /share/python folder of the archive contains the module multiDaq.py and sample files for Python. This module is the central hub for communication with the DLL and must be accessible in the folder where your script is located. In the simplest case copy multidaq.py to your folder.
multiDaq.py requires numpy. If numpy is not installed, install it within a command prompt:
pip install numpyWindows: If the DLL is not accessible system-wide, the DLL must first be copied to the working directory.
That's it. Now you can use the driver from source. But you have to take care that version of DLL and version of multidaq.py are compliant. The big advantage is, that you may use the driver simultanously from C, matlab or whatelse.
Open a command prompt in the /share/python folder of the archive. You may start for example
demo1.py:
python demo1.pySome examples require the matplot library. (install within command prompt: 'pip install matplotlib')
windows:
If the DLL is not accessible system-wide, the DLL must first be copied to the working directory.
copy ..\..\bin\biovisionMultiDaq.dll .
The /share/C folder of the archive contains example files for Matlab. The functionalities for Matlab are available in source and must first be translated.
Windows require the Mingw64 C compiler for Matlab, which can compile the required mex file from the code. Under Linux a GCC compiler is installed by default.
To install the compiler, use the Add-Ons menu.
- On the MATLAB Home tab, in the Environment section, click Add-Ons > Get Add-Ons.
- Search for MinGW or select from Features.
If you only have the MinGW compiler installed on your system, the mex command automatically chooses MinGW. Go to the next step. However, if you have multiple C or C++ compilers, use mex -setup to choose MinGW.
mex -setup
This step is the same for matlab and Octave. Change in matlab/octave to the share/matlab folder of the unpacked archive. The file translate.m to compile the source file is there and the environment is ok.
translateNow you should be able to start the demo scripts there.
Windows:
If the DLL is not accessible system-wide, the DLL must first be copied to the working directory. Open a command prompt in the /share/python folder of the unpacked archive and type:
copy ..\..\bin\biovisionMultiDaq.dll .
© Tantor GmbH (2024) All rights reserved