⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 speaker.m

📁 atport - Matlab接口模块 Matport是NTPort Library的MatLab接口模块。借助Matport
💻 M
字号:
% NTPort Library Sample
% Copyright (c) 2001, Zeal SoftStudio.
% http://www.zealsoftstudio.com
% The program requires NTPort Library 2.3 or higher,
% MatLab 5.x or higher and Matport.dll 1.0

% After register NTPort Library,
% place your registration information here.
matport('LicenseInfo', 'Your Name', 0);

input('Press Enter key to turn on the speaker..');
% Turn on the speaker
% Outp(&H61, &HF)
matport('Outp', 97, 15);

input('Press Enter key to turn off the speaker...');
% Turn off the speaker
% Outp(&H61, &HC)
matport('Outp', 97, 12);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -