Radio.MemoryList Returns Empty Collection

  • 1
  • Question
  • Updated 4 years ago
  • Answered

I have several memories set up in SmartSDR v1.4.0.  However, reading the Radio.MemoryList property returns an empty collection.

In my code, SSDR is a class that wraps FlexLib & SSDR.CurrentRadio is set to the currently connected radio.

After executing the statement:

Dim NrMem As Integer = SSDR.CurrentRadio.MemoryList.Count

The value of NrMem is "0" & SSDR.CurrentRadio.MemoryList is an empty collection.

What am I missing?

73, Ray, K9DUR

Photo of Ray Andrews, K9DUR

Ray Andrews, K9DUR, Elmer

  • 249 Posts
  • 63 Reply Likes

Posted 4 years ago

  • 1
Photo of Robbie - KI4TTZ

Robbie - KI4TTZ

  • 484 Posts
  • 78 Reply Likes
Maybe put in a debug line there to verify that you are definitely connected to the radio at that point, and also check and see if you get back a count from any of the other lists, like SSDR.CurrentRadio.ProfileMicList.Count ?
Photo of Ray Andrews, K9DUR

Ray Andrews, K9DUR, Elmer

  • 249 Posts
  • 63 Reply Likes

Robbie,

Thanks.  I appear to be connected, but cannot see any of the other collections.  I opened one of my other programs (which is working) & am able to see them.  So, I just need to figure out what I am not doing in the new program.

Everyone can disregard this thread.

73, Ray, K9DUR

Photo of Eric - KE5DTO

Eric - KE5DTO, Official Rep

  • 875 Posts
  • 323 Reply Likes
Official Response
Ray,

It sounds like you may be checking the MemoryList immediately after connecting to the radio. It takes some time after connecting to fill out the all of the structures with the data sent from the radio. You might try a delay after connecting or subscribe to he MemoryAdded event.
Photo of Ray Andrews, K9DUR

Ray Andrews, K9DUR, Elmer

  • 249 Posts
  • 63 Reply Likes

Eric,

Thanks.  That was it. 

73, Ray, K9DUR

(Edited)

This conversation is no longer open for comments or replies.