Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
Need the latest SmartSDR, Power Genius, Tuner Genius and Antenna Genius Software?
SmartSDR v3.8.19 and the SmartSDR v3.8.19 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
SmartSDR v3.8.19 and the SmartSDR v3.8.19 Release Notes | SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
SmartSDR v1.12.1 and the SmartSDR v1.12.1 Release Notes
Power Genius XL Utility v3.8.8 and the Power Genius XL Release Notes v3.8.8
Tuner Genius XL Utility v1.2.11 and the Tuner Genius XL Release Notes v1.2.11
Antenna Genius Utility v4.1.8
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.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
Start radio without SSDR
James Whiteway
Member
How little do you need to connect to your radio without SSDR?
How about this:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using Flex.Smoothlake.FlexLib;
namespace PanadapterTest
{
public partial class Form1 : Form
{
private Radio _thisRadio;
private Slice _thisSlice;
// private Panadapter _thisPanadapter;
public Form1()
{
InitializeComponent();
API.RadioAdded += API_RadioAdded;
API.RadioRemoved += API_RadioRemoved;
API.ProgramName = "PanadapterTest";
API.IsGUI = true;
API.Init();
}
private void Form1_Load(object sender, EventArgs e)
{
CheckForIllegalCrossThreadCalls = false;
}
private void API_RadioAdded(Radio radio)
{
_thisRadio = radio;
}
private void API_RadioRemoved(Radio radio)
{
}
private void radio_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
}
private void radio_PanadapterRemoved(Panadapter pan)
{
Console.WriteLine("radio_PanadapterRemoved fired
");
}
private void radio_PanadapterAdded(Panadapter pan, Waterfall fall)
{
Console.WriteLine("radio_PanadapterAdded fired
");
// pan.PropertyChanged += panadapter_PropertyChanged;
}
private void panadapter_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
Console.WriteLine("panadapter_PropertyChanged fired
");
}
private void radio_SliceRemoved(Slice slice)
{
Console.WriteLine("radio_SliceRemoved fired
");
}
private void radio_SliceAdded(Slice slice)
{
slice.PropertyChanged += new PropertyChangedEventHandler(slice_PropertyChanged);// makes freqtxtbx show freq from SSDR
_thisSlice = slice;
}
private void slice_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
{
}
}
private void btnExit_Click(object sender, EventArgs e)
{
API.CloseSession();
_thisRadio.Disconnect();
Application.Exit();
}
private void btnConnect_Click(object sender, EventArgs e)
{
_thisRadio.Connect();
double freq = 10.000d;
string RXA = "Ant 1";
string Mode = "AM";
//RequestPanafall gets the radio to send data to the client
Slice Slice0 = new Slice(_thisRadio);
Slice0 = _thisRadio.CreateSlice(freq, RXA, Mode);
Slice0.RequestSliceFromRadio();
// _thisRadio.RequestPanafall();
}
}
}
Two buttons and a form. Once connected, the radio will go to WWV @ 10Mhz. (Walt's idea)
Although not in this example, I am working on getting the Panadapter data and creating a panadapter as well. Once I figure the correct syntax for subscribing to the PanadapterDataReady event!
But, I thought someone out there would like to see how simple it really is just to get connected. After that, it does start to get complicated. (my testbed program is much more busy than this)
james
WD5GWY
Edit: I forgot to add, be sure to ADD REFERENCES to Flexlib and the other dll's that are part of Flexlib.
How about this:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Threading;
using Flex.Smoothlake.FlexLib;
namespace PanadapterTest
{
public partial class Form1 : Form
{
private Radio _thisRadio;
private Slice _thisSlice;
// private Panadapter _thisPanadapter;
public Form1()
{
InitializeComponent();
API.RadioAdded += API_RadioAdded;
API.RadioRemoved += API_RadioRemoved;
API.ProgramName = "PanadapterTest";
API.IsGUI = true;
API.Init();
}
private void Form1_Load(object sender, EventArgs e)
{
CheckForIllegalCrossThreadCalls = false;
}
private void API_RadioAdded(Radio radio)
{
_thisRadio = radio;
}
private void API_RadioRemoved(Radio radio)
{
}
private void radio_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
}
private void radio_PanadapterRemoved(Panadapter pan)
{
Console.WriteLine("radio_PanadapterRemoved fired
");
}
private void radio_PanadapterAdded(Panadapter pan, Waterfall fall)
{
Console.WriteLine("radio_PanadapterAdded fired
");
// pan.PropertyChanged += panadapter_PropertyChanged;
}
private void panadapter_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
Console.WriteLine("panadapter_PropertyChanged fired
");
}
private void radio_SliceRemoved(Slice slice)
{
Console.WriteLine("radio_SliceRemoved fired
");
}
private void radio_SliceAdded(Slice slice)
{
slice.PropertyChanged += new PropertyChangedEventHandler(slice_PropertyChanged);// makes freqtxtbx show freq from SSDR
_thisSlice = slice;
}
private void slice_PropertyChanged(object sender, PropertyChangedEventArgs e)
{
{
}
}
private void btnExit_Click(object sender, EventArgs e)
{
API.CloseSession();
_thisRadio.Disconnect();
Application.Exit();
}
private void btnConnect_Click(object sender, EventArgs e)
{
_thisRadio.Connect();
double freq = 10.000d;
string RXA = "Ant 1";
string Mode = "AM";
//RequestPanafall gets the radio to send data to the client
Slice Slice0 = new Slice(_thisRadio);
Slice0 = _thisRadio.CreateSlice(freq, RXA, Mode);
Slice0.RequestSliceFromRadio();
// _thisRadio.RequestPanafall();
}
}
}
Two buttons and a form. Once connected, the radio will go to WWV @ 10Mhz. (Walt's idea)
Although not in this example, I am working on getting the Panadapter data and creating a panadapter as well. Once I figure the correct syntax for subscribing to the PanadapterDataReady event!
But, I thought someone out there would like to see how simple it really is just to get connected. After that, it does start to get complicated. (my testbed program is much more busy than this)
james
WD5GWY
Edit: I forgot to add, be sure to ADD REFERENCES to Flexlib and the other dll's that are part of Flexlib.
0
Leave a Comment
Categories
- All Categories
- 290 Community Topics
- 2.1K New Ideas
- 536 The Flea Market
- 7.5K Software
- 6K SmartSDR for Windows
- 146 SmartSDR for Maestro and M models
- 360 SmartSDR for Mac
- 250 SmartSDR for iOS
- 231 SmartSDR CAT
- 172 DAX
- 353 SmartSDR API
- 8.8K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 32 FLEX-8000 Signature Series
- 851 Maestro
- 44 FlexControl
- 847 FLEX Series (Legacy) Radios
- 799 Genius Products
- 417 Power Genius XL Amplifier
- 279 Tuner Genius XL
- 103 Antenna Genius
- 243 Shack Infrastructure
- 166 Networking
- 404 Remote Operation (SmartLink)
- 130 Contesting
- 633 Peripherals & Station Integration
- 125 Amateur Radio Interests
- 873 Third-Party Software