Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR or 4O3A Genius Product Software?
SmartSDR v4.0.1 and the SmartSDR v4.0.1 Release Notes
SmartSDR v3.10.15 and the SmartSDR v3.10.15 Release Notes
The latest 4O3A Genius Product Software and Firmware
SmartSDR v4.0.1 and the SmartSDR v4.0.1 Release Notes
SmartSDR v3.10.15 and the SmartSDR v3.10.15 Release Notes
The latest 4O3A Genius Product Software and Firmware
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Python interface to FlexLib API
Mark Erbaugh
Member ✭✭
Is anyone aware of / working on a Python interface to the FlexLib API? This would be quite useful. I'm a competent Python programmer, but haven't dabbled in .NET.
2
Comments
-
The Flex libraries should be compatible with IronPython.0
-
I remember when I was working with Python on the Raspberry Pi (uses a variation of Debian Linux) that .NET libraries are available. Don't know how extensive they are but would be worth looking into (maybe you already have (?).
Python compatibility might open up some apps on those smaller platforms.
0 -
I've not worked with .net, but I found a ,net add-on for Python. The examples showed how to interact with Office. I'm guessing it wouldn't be that hard to use the Flexlib API. I assume that the C++ code would have to be compiled into a DLL, or is that DLL already part of SmartSDR? I've not worked with Iron Python, but that's another option. The thing about standard Python is that there are so many add on libraries and some aren't fully compatible with Iron Python. Martin Ewing published a Python based for the Beable **** in a recent QST. It would be nice to be able to integrate that with Flexlib.0
-
Another thought: would it make more sense for The Python library totalk directly to the Flex using. Python TCP/UDP library?0
-
The Flexlib api is written in C#. When I downloaded it, I had to recompile it to use the dll's.
Once I did that, all was well. Other than I'm still, trying to actually connect to my 6300 and
have not quite succeeded yet!!! :-)
But, then again, I'm not a C# guru and have been attempting to do it in VB.Net. Such fun!
james
WD5GWY
0 -
Update: I was able to access the FlexLib API .DLLs from C Python 2.7.9 using PythonDotNet at https://github.com/geographika/PythonDotNet. The problem with original Python for .NET at http://pythonnet.sourceforge.net/ is that it seems to be only form 32-bit versions.
I used the version for WIndow2012 and it works with Windows 7. One gotcha that took me a while to figure out was that for the clr.pyt and PythonRuntime.dll files, you need to open the file properties and click "UNBLOCK" for .NET to allow them, since they were downloaded.
I just put the clr.pyt, PythonRuntime.dll and the FlexLib API DLLs the DLLs folder of my Python installation.
1 -
Does anyone have a completed example of using the API with Python?
I'm using PyCharm as an IDE and cannot figure out how to use the FLEXAPI.
Where do I place the DLL's in my Project?
And what code is used to access the DLL's?
0
Leave a Comment
Categories
- All Categories
- 368 Community Topics
- 2.1K New Ideas
- 625 The Flea Market
- 8.1K Software
- 74 SmartSDR+
- 6.4K SmartSDR for Windows
- 182 SmartSDR for Maestro and M models
- 421 SmartSDR for Mac
- 270 SmartSDR for iOS
- 255 SmartSDR CAT
- 189 DAX
- 381 SmartSDR API
- 9.3K Radios and Accessories
- 33 Aurora
- 238 FLEX-8000 Signature Series
- 7.2K FLEX-6000 Signature Series
- 937 Maestro
- 54 FlexControl
- 863 FLEX Series (Legacy) Radios
- 913 Genius Products
- 460 Power Genius XL Amplifier
- 331 Tuner Genius XL
- 122 Antenna Genius
- 293 Shack Infrastructure
- 206 Networking
- 449 Remote Operation (SmartLink)
- 144 Contesting
- 773 Peripherals & Station Integration
- 139 Amateur Radio Interests
- 991 Third-Party Software

