Sample Programs

Basic usage and frequently used techniques are provided as sample programs with source code.
The sample program has been created as simple as possible, so please use it when programming.

Folder structure

The sample program folder is configured as follows in the installed location.
The folder structure is the same for both 32-bit and 64-bit OS environments

C:\Users\Public\Documents\CONTEC\DAQfast\DAQ-LIBMB-WIN\

     |

     |________ 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
     |         |         |________ DotNet8\               Visual Basic.Net (.NET) Sample
     |         |
     |         |________ VC\
     |         |         |________ Vc2015\                Visual C++ (MFC) Sample
     |         |
     |         |________ VC#\
     |         |         |________ DotNetFramework4\      Visual C# (.NET Framework) Sample
     |         |         |________ DotNet8\               Visual C# (.NET) Sample
     |         |
     |         |________ Python\
     |                   |________ Python3\               Python Sample
     |
     |
     |________ SampleExe\
               |________ 64bit\          Sample EXE file (64bit)
               |________ 32bit\          Sample EXE file (32bit)

 

 

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

 

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

 

 Sample folder

     |

     |________ ModbusTcpMaster          ModbusTcp master sample

     |

     |________ ModbusRtuMaster          ModbusRtu master sample