📄 pvcamcompile.m
字号:
function [] = pvcamcompile(source_path)
% PVCAMCOMPILE - script to compile PVCAM DLLs
%
% PVCAMCOMPILE(PATH) compiles the PVCAM code in the source directory.
% 3/9/07 SCM
if (nargin ~= 1)
warning('MATLAB:pvcamcompile', 'type ''help pvcamcompile'' for syntax');
return
elseif (~exist(source_path, 'dir'))
warning('MATLAB:pvcamcompile', 'path %s does not exist', source_path);
return
end
% compile files
old_path = pwd;
cd(source_path)
file_list = {'pvcamacq', 'pvcamclose', 'pvcamget', 'pvcamicl', 'pvcamopen', 'pvcamset', 'pvcamshutter'};
for i = 1 : length(file_list)
cell_args = {sprintf('-L%s', source_path), '-lpvcam32'};
if (strcmp(file_list{i}, 'pvcamicl'))
cell_args{end + 1} = '-lpv_icl32';
end
%cell_args{end + 1} = '-output';
%cell_args{end + 1} = sprintf('%s.dll', file_list{i});
cell_args{end + 1} = sprintf('%s.c', file_list{i});
cell_args{end + 1} = 'pvcamutil.c';
mex(cell_args{:});
end
cd(old_path)
return
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -