亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? gpib.c

?? 圖像處理的壓縮算法
?? C
字號:
/********************************************************************************
 * File Name: GPIB.c				 											*
 * Creation: 02/04/2001 JCG														*
 * Purpose: This OriginC sample code demonstrates how to use Origin C routines	*
 * to access HP34401A Digital MultiMeter by GPIB.								*
 * Copyright (c) OriginLab Corp.	2002, 2003, 2004, 2005, 2006, 2007			*
 * All Rights Reserved															*
 ********************************************************************************/

#include <origin.h>  // Origin C general header file
#include <NI488-2.h> // Prototypes for the National Instrument NI488.2 GPIB routines and constants.

//////////////////////////////////////////////////////////////////////////////////////////////
// There are two functions in this Origin C demo code 
// void Run() 
// void GpibError(char *msg);  
// See function discription below.
//
// After compliling, your can type the "run" command in 
// command pane of code builder to execute this program.  
////////////////////////////////////////////////////////////////////////////////////////////// 

// Define a micro to print out the error message.
#define CHECK_ERROR	if (user_ibsta & ERR) { GpibError("ibwrt or ibrd Error"); return; }

// Prototype for function GpibError
void GpibError(char *msg);       				 /* Error function declaration             */

// Global variable for the GPIB card
int Device = 0;                  				 /* Device unit descriptor                 */
int BoardIndex = 0;               				 /* Interface Index (GPIB0=0,GPIB1=1,etc.) */

//////////////////////////////////////////////////////////////////////////////////////////////
// Function: void Run()
// Purpose: 1) open the GPIB device
//			2) write GPIB command to device and read data.
//			3) Take the device offline 
// Argument(s): none.
// Return: void
//////////////////////////////////////////////////////////////////////////////////////////////
void Run() 
{
	// Define a double type vector to store the data. 
	vector<double> data(20);

	// Primary address of the device.
	int   PrimaryAddress = 8;      				/* Can be read from NI GPIB explorer       */
	
	// Secondary address of the device   
	int   SecondaryAddress = 0;    				/* No secondary	address				       */
	
	char  Buffer[21];              				/* Read buffer                             */
 
	// Initialization - Done only once at the beginning of your application.  
	// The application brings the multimeter online using ibdev. A
	// device handle, Dev, is returned and is used in all subsequent
	// calls to the device.

	Device = ibdev(                				/* Create a unit descriptor handle         */
	    BoardIndex,                				/* Board Index (GPIB0 = 0) 			       */
	    PrimaryAddress,            				/* Device primary address 8                */
	    SecondaryAddress,          				/* No secondary address   	               */
	    T10s,                     				/* Timeout setting (T10s = 10 seconds)     */
	    1,                        				/* Assert EOI line at end of write         */
	    0);                       				/* EOS termination mode                    */           
	
	CHECK_ERROR					       			/* Check error                             */
	
	ibclr(Device);                    			/* Clear the device                        */
	CHECK_ERROR					      			/* Check error 							   */

	char beep[] = "SYST:BEEP"; 		   			/* Beep once 							   */
	ibwrt(Device, beep, sizeof(beep));    
	CHECK_ERROR					   	  			/* Check error							   */

	char disp[] = "DISP:TEXT 'ORIGIN C'"; 		/* Textout Origin C 					   */
	ibwrt(Device, disp, sizeof(disp));    
	CHECK_ERROR					       			/* Check error 							   */
	
	Sleep(1000);								/* Delay 1 s 							   */

	char demo[] = "DISP:TEXT 'GPIB DEMO'"; 		/* Textout GPIB Demo					   */
	ibwrt(Device, demo, sizeof(demo));    
	CHECK_ERROR					  				/* Check error 							   */

	Sleep(1000);								/* Delay 1 s 							   */ 
	
	char rst[] = "*RST";		    			/* Reset 								   */
	ibwrt(Device, rst, sizeof(rst));    
	CHECK_ERROR					   				/* Check error 							   */
	
	char cls[] = "*CLS";		   				/* Clear register 						   */
	ibwrt(Device, cls, sizeof(cls));    
	CHECK_ERROR					  				/* Check error 							   */
	
	char meas[] = "CONF:VOLT:DC 10";			/* Measure Mode : DC 1v range			   */
	ibwrt(Device, meas, sizeof(meas));    
	CHECK_ERROR					   				/* Check error 							   */
	
	char coun[] = "SAMP:COUN 1";  				/* Data Sample counts 					   */
	ibwrt(Device, coun, sizeof(coun));    
	CHECK_ERROR					  				/* Check error 							   */
		
	for( int ii = 0; ii < data.GetSize(); ii++)
	{
		char read[] = "READ?";		  			/* Read query 							   */ 
		ibwrt(Device, read, sizeof(read));    
		CHECK_ERROR					   			/* Check error 							   */
		
		ibrd(Device, Buffer, 20);      			/* Read up to 20 bytes from the device     */
		CHECK_ERROR					   			/* Check error 							   */
	
		printf(Buffer);				   

		Buffer[user_ibcntl] = '\0';    			/* Null terminate the ASCII string         */
		data[ii] = atof(Buffer);
		
		Sleep(100)	// 0.1 second
	}
	
	printf("Finished");
	
	ibwrt(Device, beep, sizeof(beep));    
	CHECK_ERROR					   				/* Check error 							   */

	char end[] = "DISP:TEXT 'FINISHED'";
	ibwrt(Device, end, sizeof(end));    
	CHECK_ERROR					   				/* Check error 							   */

	//Uninitialization - Done only once at the end of your application.
	ibonl(Device, 0);             				/* Take the device offline                 */
	CHECK_ERROR					  				/* Check error 							   */

	ibonl(BoardIndex, 0);          				/* Take the interface offline              */
	CHECK_ERROR					   				/* Check error 							   */
}


//////////////////////////////////////////////////////////////////////////////////////////////
// Function:void GpibError(char *msg); 
// Purpose:	This function will notify you that a NI-488 function failed by
// 			printing an error message.  The status variable user_ibsta will also be
// 			printed in hexadecimal along with the mnemonic meaning of the bit
// 			position. The status variable user_iberr will be printed in decimal
// 			along with the mnemonic meaning of the decimal value.  The status
// 			variable user_ibcntl will be printed in decimal.

// 			The NI-488 function IBONL is called to disable the hardware and
// 			software.
// Argumnent(s): msg the error message will be out put
// Return: void					
//////////////////////////////////////////////////////////////////////////////////////////////

void GpibError(char *msg) 
{
    printf ("%s\n", msg);

    printf ("ibsta = &H%x  <", user_ibsta);
    if (user_ibsta & ERR )  printf (" ERR");
    if (user_ibsta & TIMO)  printf (" TIMO");
    if (user_ibsta & END )  printf (" END");
    if (user_ibsta & SRQI)  printf (" SRQI");
    if (user_ibsta & RQS )  printf (" RQS");
    if (user_ibsta & CMPL)  printf (" CMPL");
    if (user_ibsta & LOK )  printf (" LOK");
    if (user_ibsta & REM )  printf (" REM");
    if (user_ibsta & CIC )  printf (" CIC");
    if (user_ibsta & ATN )  printf (" ATN");
    if (user_ibsta & TACS)  printf (" TACS");
    if (user_ibsta & LACS)  printf (" LACS");
    if (user_ibsta & DTAS)  printf (" DTAS");
    if (user_ibsta & DCAS)  printf (" DCAS");
    printf (" >\n");

    printf ("iberr = %d", user_iberr);
    if (user_iberr == EDVR) printf (" EDVR <DOS Error>\n");
    if (user_iberr == ECIC) printf (" ECIC <Not Controller-In-Charge>\n");
    if (user_iberr == ENOL) printf (" ENOL <No Listener>\n");
    if (user_iberr == EADR) printf (" EADR <Address error>\n");
    if (user_iberr == EARG) printf (" EARG <Invalid argument>\n");
    if (user_iberr == ESAC) printf (" ESAC <Not System Controller>\n");
    if (user_iberr == EABO) printf (" EABO <Operation aborted>\n");
    if (user_iberr == ENEB) printf (" ENEB <No GPIB board>\n");
    if (user_iberr == EOIP) printf (" EOIP <Async I/O in progress>\n");
    if (user_iberr == ECAP) printf (" ECAP <No capability>\n");
    if (user_iberr == EFSO) printf (" EFSO <File system error>\n");
    if (user_iberr == EBUS) printf (" EBUS <Command error>\n");
    if (user_iberr == ESTB) printf (" ESTB <Status byte lost>\n");
    if (user_iberr == ESRQ) printf (" ESRQ <SRQ stuck on>\n");
    if (user_iberr == ETAB) printf (" ETAB <Table Overflow>\n");

    printf ("ibcntl = %ld\n", user_ibcntl);
    printf ("\n");

    /* Call ibonl to take the device and interface offline */
    ibonl (Device,0);
    ibonl (BoardIndex,0);

    return;
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲精品国产第一综合99久久 | 91麻豆国产香蕉久久精品| 99这里只有精品| 日韩一区二区三免费高清| 亚洲欧洲韩国日本视频| 日产欧产美韩系列久久99| 99麻豆久久久国产精品免费优播| 91精品福利在线一区二区三区 | 久久精子c满五个校花| 一区二区三区四区激情| 国产精品1区2区| 5566中文字幕一区二区电影| 一区二区三区不卡视频在线观看| 国产在线不卡一区| 日韩视频免费直播| 午夜视频久久久久久| 91麻豆国产福利在线观看| 国产目拍亚洲精品99久久精品| 久久国产精品一区二区| 欧美精品第1页| 亚洲影视在线观看| 一本久久精品一区二区| 国产免费久久精品| 成人性色生活片| 国产日韩视频一区二区三区| 国产在线国偷精品产拍免费yy| 欧美一区二区三级| 三级影片在线观看欧美日韩一区二区 | 国产三级一区二区| 韩日精品视频一区| 精品国产乱码久久久久久久| 精品一区二区免费视频| 日韩亚洲欧美在线| 麻豆91在线观看| 精品日韩一区二区| 狠狠色2019综合网| 国产亲近乱来精品视频| 波多野结衣欧美| 国产精品国产三级国产| 9久草视频在线视频精品| 亚洲视频狠狠干| 在线日韩国产精品| 亚洲第一搞黄网站| 欧美成人精品1314www| 久久99精品久久久久久久久久久久| 精品久久免费看| 成人午夜在线播放| 亚洲乱码日产精品bd| 欧美日韩三级在线| 久久成人羞羞网站| 久久九九国产精品| 91尤物视频在线观看| 亚洲成av人片| 欧美精品一区二| 成人动漫视频在线| 午夜精品一区在线观看| 精品99一区二区三区| 成人国产精品免费网站| 一级日本不卡的影视| 日韩午夜中文字幕| 成人午夜伦理影院| 无码av免费一区二区三区试看 | 91精品国模一区二区三区| 麻豆传媒一区二区三区| 中国色在线观看另类| 91蜜桃视频在线| 日本欧洲一区二区| 中文字幕久久午夜不卡| 欧美高清视频不卡网| 国产精品一区二区黑丝| 亚洲美女精品一区| 欧美mv日韩mv亚洲| 一本一道综合狠狠老| 久久国产精品一区二区| 亚洲精品一二三| 久久久久久久免费视频了| 日本精品一级二级| 国产福利不卡视频| 日韩av一级电影| 亚洲色欲色欲www在线观看| 欧美一区二区三区婷婷月色| 不卡的av网站| 久久66热偷产精品| 天天色天天操综合| 国产精品国产三级国产有无不卡 | 久久精品亚洲麻豆av一区二区 | 97精品国产露脸对白| 日本在线观看不卡视频| 中文字幕一区在线| 精品国产凹凸成av人导航| 精品视频123区在线观看| www.在线欧美| 国产成人精品www牛牛影视| 亚洲成人综合视频| 亚洲免费在线视频| 国产精品全国免费观看高清| 日韩精品一区二区三区视频| 欧美久久免费观看| 色婷婷久久一区二区三区麻豆| 波多野结衣中文字幕一区| 国模套图日韩精品一区二区| 日本色综合中文字幕| 亚洲国产精品久久人人爱蜜臀| 日韩一区日韩二区| 久久久亚洲精品石原莉奈 | ...av二区三区久久精品| 国产片一区二区三区| 久久综合丝袜日本网| 欧美电影免费观看高清完整版在线 | 欧美成人一区二区三区| 欧美日本高清视频在线观看| 91豆麻精品91久久久久久| 成人aaaa免费全部观看| 大白屁股一区二区视频| 国产毛片一区二区| 国产成人精品影视| 国产精品1区2区3区在线观看| 国产电影精品久久禁18| 国产99久久久久| av男人天堂一区| 91久久奴性调教| 91精品欧美一区二区三区综合在| 欧美丝袜丝nylons| 欧美丝袜自拍制服另类| 欧美三级欧美一级| 3751色影院一区二区三区| 日韩欧美一区在线| 精品国产电影一区二区| 国产女同性恋一区二区| 亚洲欧洲av在线| 亚洲一区二区三区免费视频| 日欧美一区二区| 久久不见久久见免费视频1| 国产馆精品极品| 99re热视频精品| 在线不卡免费欧美| www国产精品av| 亚洲欧洲精品一区二区精品久久久| 亚洲视频1区2区| 日本va欧美va瓶| 丁香啪啪综合成人亚洲小说 | 欧美一区二区性放荡片| 欧美r级电影在线观看| 国产精品久久久久久久蜜臀| 亚洲成a人在线观看| 裸体在线国模精品偷拍| aaa欧美色吧激情视频| 欧美精品乱码久久久久久| 欧美精品一区视频| 亚洲欧美视频一区| 久久精品国产第一区二区三区| 国v精品久久久网| 欧美日韩在线一区二区| 久久影院电视剧免费观看| 亚洲精品乱码久久久久久日本蜜臀| 日本亚洲三级在线| 精品制服美女丁香| 色女孩综合影院| 久久色中文字幕| 亚洲午夜在线视频| 国产成人超碰人人澡人人澡| 欧美日韩日日夜夜| 日本一区二区三区久久久久久久久不| 亚洲一级不卡视频| 高清国产午夜精品久久久久久| 欧美日韩国产中文| 国产精品久久久久婷婷二区次| 日韩精品免费专区| 91香蕉视频mp4| 久久久精品影视| 奇米在线7777在线精品| 在线中文字幕一区| 中文字幕欧美国产| 狠狠色狠狠色合久久伊人| 欧美日韩国产系列| 日韩美女久久久| 国产 日韩 欧美大片| 精品国产91洋老外米糕| 日韩va欧美va亚洲va久久| 在线观看亚洲a| 夜夜操天天操亚洲| 91在线小视频| 亚洲同性同志一二三专区| 丁香啪啪综合成人亚洲小说| 精品国产凹凸成av人导航| 免费观看成人av| 欧美一级欧美一级在线播放| 亚洲午夜久久久久久久久久久| 91在线精品一区二区| 国产欧美日韩卡一| 国产精一品亚洲二区在线视频| 91精品国产麻豆国产自产在线| 午夜精品一区二区三区免费视频| 欧美性感一区二区三区| 夜夜亚洲天天久久| 欧美唯美清纯偷拍| 日韩精品午夜视频| 日韩三级视频在线看| 久久国产乱子精品免费女| 精品国一区二区三区|