Flash Magic Forum

General => General Discussion => Topic started by: bassa on July 30, 2021, 12:14:23 am

Title: Python DLL interface file
Post by: bassa on July 30, 2021, 12:14:23 am
Hi,

I'm trying to add Flashmagic functionality to my existing python application.

In the FMPSCManual i found a reference to a Python interface. on page 13:

"The Python interface has been written to simply "wrap" the C based functions described in
this manual. The functions are contained in the FlashMagic object, along with all the
constants.
"

Does anyone know where to find this file?
Title: Re: Python DLL interface file
Post by: Andy Ayre on August 02, 2021, 09:28:04 am
Depending on which family you are using, it would be something like FlashMagicARMCortex.dll. Andy
Title: Re: Python DLL interface file
Post by: bassa on August 02, 2021, 11:39:31 pm
Hi Andy,

Thanks for your help, but that is not the file that is missing.
What i am looking for is the Python interface to acces the functions from the DLL's

The interface is described in the manual.
Even the library import is stated in the example code:

Quote
import FlashMagic;
results = FlashMagic.fm_connect()

The referred file (Flashmagic.py) is simply missing in the installer package.
There are no python files at all in the FMPS package....
Title: Re: Python DLL interface file
Post by: Andy Ayre on August 03, 2021, 10:53:03 am
For python support you will need to download V11 by going to esacademy.org and entering your activation code. Then choose Tools -> Scripts... to access the Python API.

However if you want to add Flash Magic to your own python application then you will need to access the DLL directly using the Python ctypes library.

Andy