Sample Program


We provide the basic usage and the skill as the sample program with the source code. Because the sample programs are made as simply as possible, you need to make good use of these for programming.

File Structure

The following figure shows the structure of the folder in which API-GPIB(WDM) is installed.
The folder structure is the same for both 32-bit and 64-bit OS environments

C:\Users\Public\Documents\CONTEC\API-TOOL\GPIBWDM\

     |

     |________ Sample\
     |         |
     |         |________ Inc\            Include file for each language
     |         |
     |         |________ Lib_amd64\      Library files for each language (64bit)
     |         |
     |         |________ Lib_i386\       Library files for each language (32bit)
     |         |
     |         |
     |         |________ VB\
     |         |         |________ DotNetFramework4\      Visual Basic.Net (.NET Framework) Sample
     |         |         |________ DotNet6\               Visual Basic.Net (.NET) Sample
     |         |
     |         |________ VC\
     |         |         |________ Vc2015\                Visual C++ (MFC) Sample
     |         |
     |         |________ VC#\
     |                   |________ DotNetFramework4\      Visual C# (.NET Framework) Sample
     |                   |________ DotNet6\               Visual C# (.NET) Sample
     |
     |
     |________ SampleExe\
               |________ 64bit\          Sample EXE file (64bit)
               |________ 32bit\          Sample EXE file (32bit)

 

 

Note: The underlined part is the default folder name of the API-TOOL installer.
      If the default folder name is changed during API-TOOL installation, it will be changed.

 

In the folder of each language above, sample programs are stored in the following configuration.

Each language sample folders
     |
     |________Master        Sample folder for Master
     |
     |________Slave         Sample folder for Slave
     |
     |________ConRec        Sample folder for Continuous Event Receiving

 

Content of Sample Program

Windows Samples for GPIB Communication

Master

Sample of operating as master(controller). It can be used to send/receive data, poll and transmit various commands.

Slave

Sample of operating as slave(non-controller). It can be used to send SRQ and parallel poll.

ConRec

Sample of receiving data continuously by SRQ event. It can be used to send/receive data and save the continuous event receiving data to CSV file.