CRI ADX  Last Updated: 2024-07-17 10:47 p
Execution from other programming languages

Execution from other programming languages

Remote execution of Python script introduced how to use CRI Atom Craft from an external Python program.
You can also use other programming language to externally work with CRI Atom Craft.

Differences between running in Python and other programming languages

Whether to include the wrapper function of the connection library

When executing with Python, a module that acts as the wrapper for connection library is needed. The functions described in the Connection Module are implemented.
When connecting with other programming languages, it will directly use the connection library CriAcApiClient.dll (or CriAcApiClient.dylib ).
The connection library is located in:

Windows

If you placed CRI Atom Craft (CRI ADX SDK) under C-drive, it is located in the following location:

C:\cri\tools\ADX2\ver.3\robot\remote\Python\cri\atomcraft\CriAcApiClient.dll

Mac

For Ver.3.44 series, it is located in the following location:

/Applications/CRIWARE/CRI ADX2/Tools Ver.3.44/robot/remote/Python/cri/atomcraft/CriAcApiClient.dylib

For details about the entry point of connection library, refer to Dynamic library interface for connection .

Whether to include the wrapper functions of each function

When running in Python, the function described in the Module reference are implemented.
All of these functions are wrapper functions for the Call function of the connection library.
Call function is used for sending the JSON-format command string to CRI Atom Craft.
When connect with other programming languages, this Call function will be executed directly.
For details about JSON-format, refer to Use JSON-format to send and receive .

Operation Process

  1. Use the criAcApiClient_Initialize function to initialize the connection library.
  2. Use the criAcApiClient_Connect function to connect with CRI Atom Craft.
  3. Use the criAcApiClient_Call function to send the JSON-format command string to CRI Atom Craft to execute the API.
  4. Use the criAcApiClient_Disconnect function to disconnect.
  5. Use the criAcApiClient_Finalize function to terminate the connection library.