Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR, Power Genius, Tuner Genius and Antenna Genius Software?
SmartSDR v3.8.20 and the SmartSDR v3.8.20 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
SmartSDR v3.8.20 and the SmartSDR v3.8.20 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
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
- 260 Community Topics
- 2.1K New Ideas
- 538 The Flea Market
- 7.6K Software
- 5.9K SmartSDR for Windows
- 139 SmartSDR for Maestro and M models
- 368 SmartSDR for Mac
- 251 SmartSDR for iOS
- 226 SmartSDR CAT
- 175 DAX
- 345 SmartSDR API
- 8.6K Radios and Accessories
- 6.9K FLEX-6000 Signature Series
- 45 FLEX-8000 Signature Series
- 803 Maestro
- 43 FlexControl
- 838 FLEX Series (Legacy) Radios
- 753 Genius Products
- 424 Power Genius XL Amplifier
- 280 Tuner Genius XL
- 89 Antenna Genius
- 227 Shack Infrastructure
- 168 Networking
- 410 Remote Operation (SmartLink)
- 119 Contesting
- 642 Peripherals & Station Integration
- 116 Amateur Radio Interests
- 879 Third-Party Software