Run a Python Application
The EDEM install directory contains a coupling library. You must ensure that you have access to the library when running a Python application.
-
Enter the following command:
# Import Coupling Class from EDEM_Coupling import Coupling as EDEM_Coupling # Start Connection # This will use the defaults that are supplied by EDEM, connection option are available, # please see documentation coupling = EDEM_Coupling.EDEMPyCoupling() coupling.connectCoupling()Note:- Before running your Python application, ensure that the library has been correctly installed.
- Ensure that the Coupling server is running within EDEM.
- Setup your Python script and connect to the EDEM server using the example from Step 1.
-
If the connection is successful, the Python terminal displays the following
message:
Connecting... Getting port number Establishing connection.. Connected