OnPanadapterEvent missing

  • 1
  • Question
  • Updated 2 months ago
When I start my FlexAPI C# program and connect to a radio, it receives a SliceAdded event. The slice's Panadapter property indicates that is associated with a Panadapter, but my program never received a PanadapterAdded event. What am I doing wrong?
Photo of Mark Erbaugh

Mark Erbaugh

  • 516 Posts
  • 45 Reply Likes

Posted 2 months ago

  • 1
Photo of Asher - K0AU

Asher - K0AU

  • 222 Posts
  • 36 Reply Likes
Is your program the display app that created the Panadapter? It's been a while since I played with the API, but a limitation is that non-display apps can't control the Pan view on SSDR. You can create and move slices but not Pans. Just guessing it may be related to what events you see.
Photo of Mark Erbaugh

Mark Erbaugh

  • 516 Posts
  • 45 Reply Likes
Never mind. I found a bug in my code that was preventing my program from seeing the OnPanadapterAdded event.

Now, the question is: why are the panadapter and slice being added? As far as I know my program has not requested them. Does the radio do that on it's own once a GUI connects to it? I know with SSDR, if you close the app with no panadapters, when you reopen it, there are none.

I thought it might be persistence, so I modified my app so that I can delete the automatically created panadapter before shutting down, but when I restart the app, it's still creating a panadapter.
(Edited)
Photo of James Whiteway

James Whiteway

  • 1059 Posts
  • 302 Reply Likes
I have the same issue with my test program. I don't have to issue a request for a panadapter. Just connecting to the radio will cause the radio to start sending panadapter data, as long as the height and width properties are set first. With the 6600M, it seems to confuse the radio as it causes the panadapter on the radio's front panel to freeze up.
I am still trying to find a way to fix this.
James
WD5GWY
Photo of Mark Erbaugh

Mark Erbaugh

  • 516 Posts
  • 45 Reply Likes
I’ve done some more testing. It seems to be related to a warped sense of persistence. My application isn’t fully developed, but if I open multiple slices, then shut it down, when I reopen the app, it reopens those slices. If I delete all the slices, but not the panadapter and shut down, when I restart, it opens the panadapter and waterfall, but no slices. If, however, I delete all slices, waterfalls and panadapter, and shut down, when I restart, it opens a panadapter a waterfall, and a slice.

If you do the same thing in SSDR, delete all slices, panadapter and waterfalls and shut down, when you restart, it doesn’t open anything.