與我們聯絡

與 Tek 業務代表即時對談。 上班時間:上午 6:00 - 下午 4:30 (太平洋時間)

致電

請致電

與 Tek 業務代表即時對談。 上班時間:上午 8:30 - 下午 5:30 (太平洋時間)

下載

下載手冊、產品規格表、軟體等等:

下載類型
機型或關鍵字

意見回饋

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

檢視所有常見問答集 »