speaker.m

来自「atport - Matlab接口模块 Matport是NTPort Libr」· M 代码 · 共 19 行

M
19
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?