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.
Connect to radio example needed
James Whiteway
Member
Well, after waiting for several years to get back to coding my app. I have found that with v2.49 and now v3.0.19 that I can connect to the radio, but, it causes the Spectrum display on my 6600M to freeze and become unresponsive.
I hope some kind soul would be willing to share some C# code that properly connects to the radio in v3.0.19. My non-gui app connects just fine, after re-referencing the FlexLib dll's. But, the GUI app causes things to go nuts. I suspect I am not checking for available panadapters correctly but, until I can cleanly connect to the radio, (either being able to disconnect the M model display, or just sharing via Multi-Flex,) I feel sure that my gui app needs a full rewrite.
I guess, that's what I get for not keeping up all this time!
James
WD5GWY
I hope some kind soul would be willing to share some C# code that properly connects to the radio in v3.0.19. My non-gui app connects just fine, after re-referencing the FlexLib dll's. But, the GUI app causes things to go nuts. I suspect I am not checking for available panadapters correctly but, until I can cleanly connect to the radio, (either being able to disconnect the M model display, or just sharing via Multi-Flex,) I feel sure that my gui app needs a full rewrite.
I guess, that's what I get for not keeping up all this time!
James
WD5GWY
0
Answers
-
James,
For me this has not changed with 3.x.
First:
API.Init();
API.ProgramName = "FRLogger";
API.IsGUI = false;
API.RadioAdded += FlexRadioAdded;
API.RadioRemoved += FlexRadioRemoved;
API.Init();
Then in FlexRadioAdded():
private void FlexRadioAdded(Radio radio)
{
radio.Connect();
}
1 -
As Mark showed, I wouldn't expect the connection logic to change going to v3. The vast majority of the API didn't change.0
-
Mark,
That's what I use with my non-gui app. It works without causing the problems I outlined in my initial post. I think the issue is when the gui app tries to get a Panadapter.
There is a doc available from FRS that describes some changes to the api and one is specific to the GUI client and Slice. Unfortunately, it does not give any kind of code example to show the differences between v3 api and previous api's.
https://docs.google.com/document/d/1TFmsFOUarZg0LCLfZ9Jf292GpqfLRErib9Oe6WzAT5w/edit
Or at least for me, it's not that clear. I have been all through Panadapter.cs and other parts of the API and still scratching my head. I should never have left this alone for so long. It seems like I have forgotten a lot. I'll get there, but, talk about slow catching up!
Thanks for your help.
James
WD5GWY
0 -
Eric, you are correct. The example Mark posted is what my non-gui client and the gui client both use. The problem is how I am currently getting panadapter info. I am not certain how to bind my gui client properly.
Fun stuff!
James
0
Leave a Comment
Categories
- All Categories
- 289 Community Topics
- 2.1K New Ideas
- 534 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
- 230 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