联系我们

与泰克代表实时聊天。 工作时间:上午 9:00 - 下午 5:00(太平洋标准时间)。

电话

致电我们 1-800-833-9200

工作时间:上午9:00-下午5:00(太平洋标准时间)

下载

下载手册、产品技术资料、软件等:

下载类型
型号或关键字

反馈

What files do I need in order to write a C/C++ console application for KPCI-488 or KPC-488.2?

问题:

What files do I need in order to write a C/C++ console application for KPCI-488 or KPC-488.2?

答案:

What files do I need in order to write a console app with a CEC KPCI-488 card and VC++6.0?

You will need to add the following files from the CEC488 directories to your project:

  • ieee-cpp.h (c folder)
  • ieee_32m.lib (win32 folder)

Add the following line in your .cpp file: #include "ieee-cpp.h" (c folder)

 

A very simple program is demonstrated below:

#include <ieee-c.h>

#define Address 16 // address of your GPIB instrument

void main ()

{

int status,l;

char r[80];

initialize (21,0); // make PC a controller at address 21

send (Address,"F0R0X",&status); // device command to set mode

enter (r,80,&l,Address,&status); // read a voltage

printf ("Data received=%s\n",r);

}


此常见问题适用于:

无产品系列

产品:

常见问题 ID 69881

查看所有常见问题 »