Newport serial device communcation

版本 1.2 (9.0 KB) 作者: Adriaan Taal
This code is developed to automate your Newport serial devices through MATLAB.
518.0 次下载
更新时间 2020/9/17

查看许可证

This code is developed to automate your Newport serial devices through MATLAB.

It uses a .NET Framework instance. Newport doesnt support matlab, and the link to .NET not that trivial, so maybe by sharing this code I can save a few people some hours figuring it out.

I used a 1936-R powermeter over USB. This code can be generalized to any newport serial device by setting the device ID and installing the corresponding drivers.

How to set up the NEWPORT 1936-R powermeter on MATLAB 64bit
1). Install USB driver 64bit, v5.0.8, can be downloaded from https://www.newport.com/p/1936-R
2). Install Computer interface software 64bit v3.0.4
3). Install .NET Framework (code is tested on 4.7)
4). Power cycle the powermeter before running code
5). Run MATLAB functions on 64 bit

Function NP_USB_connect.m does most of the magic, the other functions just improve conciseness and code readability.

Function NP_SUB_reperror.m is a simple wrapper for reporting succes/fail. Sometimes the device reports error USBDUPLICATEADDRESS even when the code executed just fine.

Adriaan Taal - Columbia University
at3111@columbia.edu

引用格式

Adriaan Taal (2024). Newport serial device communcation (https://www.mathworks.com/matlabcentral/fileexchange/64704-newport-serial-device-communcation), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2019a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Startup and Shutdown 的更多信息
致谢

启发作品: New Focus Picomotor 8742 example

Community Treasure Hunt

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

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

Had to remove the USB driver from the package because it goes against MathWorks policy.

1.1

Retested on W10, now packaged with updated device driver (v5.0.8) required for W10

1.0.0.0

added tags