Panadapter Data Callback with FlexLib API

  • 1
  • Question
  • Updated 4 years ago
I've gotten my Python interface to the FlexLib API to a state where I can do a lot of testing.  I have been unable get data from the Panadapter DataReady callback. It appears that my callback routine is not being called.

Larry's Python code got it working by calling Radio.RequestPanafall and hooking the panadapter that was returned.

I am trying to create a panadapter and connect it to the radio. The other callback on the panadapter such as Forward and Reflected power are working. I suspect I'm missing some step.

Here's the pseudo code:

pa = Radio.CreatePanadapter(Size(400,200))
< hook up the callback event handlers>
pa.Band = '40'
pa.RXAnt = 'ANT1'
pa.CenterFreq = 7.15
pa.RequestPanadapterFromRadio()

Most of the time, this returns True and I hear audio from the radio and see active in most of the callback routines, but just not in the Panadapter data callback
Photo of Mark Erbaugh

Mark Erbaugh

  • 384 Posts
  • 34 Reply Likes

Posted 4 years ago

  • 1
Photo of Mark Erbaugh

Mark Erbaugh

  • 384 Posts
  • 34 Reply Likes
I've finally had some more success.  To get the Panadapter data, it appears that you have to call the Radio objects RequestPanafall and set the Panadapter's Size property.

I have also been able to repeatably crash the Flex 6300 through the API by calling Panadapter.RequestPanadapterFromRadio(). When this happens, I have to shut down the radio and restart it to be able to talk to it.
Photo of Steve - N5AC

Steve - N5AC, VP Engineering / CTO

  • 1030 Posts
  • 999 Reply Likes
If you get the radio to crash like this, we'd like to see a trace of the TCP/IP command socket from wireshark if you can provide this so that we can track down what is going on.
Photo of Mark Erbaugh

Mark Erbaugh

  • 384 Posts
  • 34 Reply Likes
I thought it was repeatable as it happened several times when I took a certain sequence of steps with the API, but now that I have Wireshark running, I can't reproduce it.