Code examples .Net and C#?

Add useful snippets of code or links to entire SDR projects.
SteveAndrew
Posts: 26
Joined: Thu Nov 16, 2017 11:06 pm
Location: Gold Coast, QLD, Australia

Re: Code examples .Net and C#?

Postby SteveAndrew » Thu Dec 21, 2017 2:17 am

Hi

Here is some sample code that shows how to use the API streaming function with callbacks, written in C#. It was written using Visual Studio 2017, running under Windows 10, 64 bit. The sample project has been configured to compile to 32 bit mode. After unzipping the code to a folder, you will need to place a copy of the 32-bit version of mir_sdr_api.dll from the API in the same folder as the source code. You can download the API from here:

https://www.sdrplay.com/downloads/ Select the Windows tab and click on "API/HW Driver – v2.11 (15th Nov 2017)"

The code will also run in 64-bit mode but you will have to use the 64-bit DLL and change the project properties to compile for 64-bit.

Let me know if you have any problems with the code, it has been tested, but you never know... Good luck :)
Attachments
StreamingSample.zip
(19.32 KiB) Downloaded 84 times

Reason: No reason

kt5fi
Posts: 3
Joined: Fri Jun 10, 2016 5:22 pm

Re: Code examples .Net and C#?

Postby kt5fi » Sat Jan 27, 2018 4:33 pm

Thank you I have the files. Now I will go and read and try to run.
Last edited by kt5fi on Thu Jan 01, 1970 12:00 am, edited 0 times in total.
Reason: No reason


Return to “Code Corner”

Who is online

Users browsing this forum: No registered users and 2 guests