OptoDAC class

버전 1.0.0.0 (52.8 KB) 작성자: Jakko de Jong
a driver class to control TUDelft Optodac equipment in matlab.
다운로드 수: 16
업데이트 날짜: 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