Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
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.

FlexLib.dll and MATLAB NET.addAssembly MATLAB function

kr4k
kr4k Member ✭✭
edited February 2017 in SmartSDR for Windows
Does anyone have experience using the MATLAB NET.addAssembly function to link to and use methods within C# compiled libraries like FlexLib.dll ?

I am able to connect as:
>> fl = NET.addAssembly('c:Program FilesFlexRadio SystemsSmartSDR v1.3.8FlexLib.dll')
fl = 

  NET.Assembly handle
  Package: NET

Properties for class NET.Assembly:

    AssemblyHandle
    Classes
    Structures
    Enums
    GenericTypes
    Interfaces
    Delegates

>> fl.Classes

ans = 

    'Flex.Smoothlake.FlexLib.API'
    'Flex.Smoothlake.FlexLib.Radio'
    'Flex.Smoothlake.FlexLib.Meter'
    'Flex.Smoothlake.FlexLib.Panadapter'
    'Flex.Smoothlake.FlexLib.Xvtr'
    'Flex.Smoothlake.FlexLib.Equalizer'
    'Flex.Smoothlake.FlexLib.CWX'
    'Flex.Smoothlake.FlexLib.Slice'
    'Flex.Smoothlake.FlexLib.Waterfall'
    'Flex.Smoothlake.FlexLib.IQStream'
    'Flex.Smoothlake.FlexLib.TNF'
    'Flex.Smoothlake.FlexLib.AudioStream'

>> methods(Flex.Smoothlake.FlexLib.Radio)
Methods for class Flex.Smoothlake.FlexLib.Radio:

ATUTuneBypass                DeleteTXProfile              GPSUninstall                 SaveTXProfile                
ATUTuneStart                 Disconnect                   GetCWX                       SendDBImportFile             
Connect                      Equals                       GetHashCode                  SendTurfFile                 
CreateAudioStream            FindEqualizerByEQSelect      GetTXFreq                    SendUpdateFile               
CreateEqualizer              FindIQStreamByDAXIQChannel   GetType                      ToString                     
CreateIQStream               FindMeterByName              ReceiveSSDRDatabaseFile      UDPDataReceivedCallback      
CreatePanadapter             FindPanByDAXIQChannel        RemoveAudioStream            UpdateTNFBandwidth           
CreateSlice                  FindSliceByDAXChannel        RemoveEqualizer              UpdateTNFDepth  

I am beginning to explore using the methods in each of these classes.

If you do have this MATLAB experience, would you please post and example or device.

Answers

  • Eric-KE5DTO
    Eric-KE5DTO Administrator, FlexRadio Employee admin
    edited February 2017
    While we do often use MATLAB for modeling algorithms, I don't think anyone here at Flex has tried to interface directly to the FlexLib.dll like this.  Sorry we can't offer more help here.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.