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.19 and the SmartSDR v3.8.19 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
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.19 and the SmartSDR v3.8.19 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
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
- 289 Community Topics
- 2.1K New Ideas
- 535 The Flea Market
- 7.5K Software
- 6K SmartSDR for Windows
- 146 SmartSDR for Maestro and M models
- 360 SmartSDR for Mac
- 249 SmartSDR for iOS
- 231 SmartSDR CAT
- 172 DAX
- 352 SmartSDR API
- 8.8K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 26 FLEX-8000 Signature Series
- 850 Maestro
- 44 FlexControl
- 847 FLEX Series (Legacy) Radios
- 796 Genius Products
- 416 Power Genius XL Amplifier
- 277 Tuner Genius XL
- 103 Antenna Genius
- 243 Shack Infrastructure
- 166 Networking
- 404 Remote Operation (SmartLink)
- 130 Contesting
- 631 Peripherals & Station Integration
- 125 Amateur Radio Interests
- 870 Third-Party Software