How to communicate with TCSPC via MATLAB?
2 ビュー (過去 30 日間)
古いコメントを表示
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.
回答 (1 件)
Malay Agarwal
2024 年 8 月 26 日
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 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!