Python


Module include

- External function library module

To call the functions in our shared library with Python program, the external function library module (ctypes) is required.
Therefore, import the external function library module in the source code.
And, our shared library uses Windows-specific types, so please also import ctypes.wintypes

Description example :

import ctypes
import ctypes.wintypes
 

- C-WaveformGenerator definition module

To use C-WaveformGenerator functions in Python, the cgen_api.py file is required.
Copy the C-WaveformGenerator definition module (WaveformGenerator\SDK\Sample\APISample\Inc\cgen_api.py) to the directory containing the program to be created.
Import the C-WaveformGenerator definition module in the source code.

Description example :

import cgen_api
 

For more information, refer to the sample program source code.