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

📄 pvcamclose.c

📁 SDFGASFASFASFAS EDGSGA DGSFGSA
💻 C
字号:
/* PVCAMCLOSE - closes open PVCAM device

      STATUS = PVCAMCLOSE(HCAM) closes the PVCAM device specified by the
	  handle to the open camera HCAM.  STATUS is 1 if there are no errors.  */


/* 2/19/03 SCM */


// inclusions
#include "pvcamutil.h"


// gateway routine
void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) {

	// declarations
	int16		hcam;		// camera handle

	// validate arguments
	if ((nrhs != 1) || (nlhs > 1)) {
        mexErrMsgTxt("type 'help pvcamclose' for syntax");
    }

	// obtain camera handle
	if (!mxIsNumeric(prhs[0])) {
		mexErrMsgTxt("HCAM must be numeric");
	}
	else if (mxGetNumberOfElements(prhs[0]) != 1) {
		mexErrMsgTxt("HCAM must be a scalar");
	}
	else {
		hcam = (int16) mxGetScalar(prhs[0]);
	}

	// close camera and return boolean
	pvcam_close(hcam);
	plhs[0] = mxCreateLogicalScalar(true);
}

⌨️ 快捷键说明

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