How to communicate with TCSPC via MATLAB?
3 views (last 30 days)
Show older comments
Hello
I'm a graduate student in bioimaging lab.
In our lab, we have TCSPC device from company Becker & Hickl (BH) and it is connected through PCI bus.
It's possible to use TCSPC via software developed from BH, but I want to use several functions of TCSPC via our imaging program written by MATLAB.
I tried to use several MATLAB functions ('visadev','visadevfind',etc.) to communicate with TCSPC, but I couldn't connect to TCSPC via MATLAB.
Here's the quetions to ask
1) Is there any reference code written in MATLAB which is used for communication with TCSPC via MATLAB?
2) If not, could I get some guidances for that? I downloaded .dll files from BH.
Answers (1)
Malay Agarwal
on 26 Aug 2024
If you have downloaded the DLLs from the vendor, you can use the "loadlibrary" function in MATLAB to load the DLL. Once the DLL is loaded, you can use the "calllib" function to call functions from the DLL. You can also view the functions and their signatures in the DLL using the function "libfunctionsview".
The following MATLAB Answers shows an example of loading and calling functions from a DLL: https://www.mathworks.com/matlabcentral/answers/841545-accessing-data-from-a-dll-file.
Please refer to the following resources for more information:
- "loadlibrary" documenation - https://www.mathworks.com/help/matlab/ref/loadlibrary.html.
- "calllib" documenation - https://www.mathworks.com/help/matlab/ref/calllib.html.
- "libfunctionsview" documentation - https://www.mathworks.com/help/matlab/ref/libfunctionsview.html.
Hope this helps!
0 Comments
See Also
Categories
Find more on Matrox Hardware in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!