OptoDAC class

版本 1.0.0.0 (52.8 KB) 作者: Jakko de Jong
a driver class to control TUDelft Optodac equipment in matlab.
16.0 次下载
更新时间 2016/11/21

查看许可证

Driver class to connect matlab to a TUDelft OptoDAC instrument and set its channel voltages.
The class provides a level of usability by checking user input for compatibility with the equipment and returning informative warnings and error messages. The class is a singleton, preventing the user from accidentally instantiating multiple objects that control the same optodac interface. To instantiate optodac objects for multiple Optodac machines, the constructor should be modified. Since the TUDelft Optodac is kind of a blackbox, the most tricky part was finding the correct format to send it commands without freezing it. Using fwrite with 8-bit unsigned integers seems to give the correct behaviour.

Functions:
getInstance - instantiate the optodac object
OpenSerial - check if there is already an open serial connection with the optodac and if not, open it.
GetVoltage - return an array with the set voltages for all 8 DAC channels since instantiation.
SetVoltage - Set a single DAC channel to a required voltage.

A detailed description of all the class' functionality is provided by Optodac_matlab_class.pdf

引用格式

Jakko de Jong (2024). OptoDAC class (https://www.mathworks.com/matlabcentral/fileexchange/60329-optodac-class), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2013b
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Instrument Connection and Communication 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
版本 已发布 发行说明
1.0.0.0