Slice.Panadater is null whin using non GUI mode

  • 1
  • Question
  • Updated 3 years ago

I'm writing a driver for RemoteHams.com for the 6000 series of radios. I have most everything working, but I ran into problem.

The library is running in the non-GUI mode (API.IsGUI = false;)

When creating a Slice with and getting the Ack back from the library, the Slice.Panadater is null, and I can't access the RFGain settings as they are in the Panadater class.

If I start the library up using API.IsGUI = true; I get the Panadapter and of course I can access the RFGain settings, but if I do that, then one can't run SmartSDR as it says "In Use".


The issue is, I would like run the my software stand alone and/or with SmartSDR running.

It would be helpful to be able to just set the RFGain on the radio. Both reading and setting would be real nice.

73

W8RJ





Photo of W8RJ

W8RJ

  • 2 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Steve - N5AC

Steve - N5AC, VP Engineering

  • 1007 Posts
  • 969 Reply Likes
This is a reasonable request, but today it doesn't work this way.  Are you just looking to change the preamp setting on an SCU?  There is a command to do this at the TCP/IP API level, but it may be security locked today.  We could open up this command easily, but this would be a little harder to do in Windows, but still possible.  Are you using Windows to write the server portion of your code?
Photo of Walt - KZ1F

Walt - KZ1F

  • 3040 Posts
  • 641 Reply Likes
I was researching this before I noticed Steve answering you. And I certainly don't mean to distract the conversation between you and Steve. My environment creates a slice properly connected to the panadapter regardless of the state of isGUI. The difference is, I create the panadapter first. I don't know what it means having a slice receiver without a panadapter. Of the three constructors for a Slice there is only one not requiring a panadapter in the signature. I am guessing you are using that one? Would it violate your use case to create a panadapter first? Steve, I'll back out now so as not to distract your conversation. I just wanted to add that piece about it working if the pan is created first. Just because you create one does not imply you have to be drawing it or even subscribe to its data stream.
(Edited)
Photo of Steve - N5AC

Steve - N5AC, VP Engineering

  • 1007 Posts
  • 969 Reply Likes
He can't create the panadapter without saying he is a GUI client, once he says he is a GUI client, he can no longer connect with SmartSDR.  This is the crux of his problem.
Photo of W8RJ

W8RJ

  • 2 Posts
  • 0 Reply Likes

Steve,

That would be a good solution and the driver is written in .Net C#.

Thanks

Roger

(Edited)