3

I have a scenario where GUI (Developed in VB) is sending commands to the target system application developed in C language (Xilinx).

User on a PC sends the commands to target using GUI.

But now I need to remove the GUI and want to send commands (call C functions in target system application) using Python.

I found some useful info from ctypes but don't know the exact procedure so getting budded up frequently.

Question :

Can anyone tell me the exact procedure to develop a python script for this. I know fair amount of python scripting.

1

1 Answer 1

1

Invoke a SWIG wrapper to make C functions look like Python functions. Take a look at this example.

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks for replying Sanjay, Well using SWIG I may need to edit the C source files which is not favourable in my case, I need some way in python to just access the C source code, some way of interfacing with C Source code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.