SmartSDR v3.9.19 and the SmartSDR v3.9.19 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
The latest 4O3A Genius Product Software and Firmware
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.
slice dump settings
Answers
-
Not sure I 100% understand your question. But if you send command "sub slice all" it will return all the information on current open slices. It also subscribes so that all future changes will be sent to the client.
But not sure if this is what you were asking.
William
1 -
William, that is what I am looking for, but I'm looking for a way to do it using the FlexLib API. I think the sub slice all is a TCP/IP command.
0 -
Edit: provided incorrect info -- looks like the sub commands happen after you connect() to the radio. Try adding a sleep/delay after you connect to give it time to get the data. This is from radio.cs: // subscribe for status updates SendCommand("sub tx all"); SendCommand("sub atu all"); SendCommand("sub meter all"); SendCommand("sub pan all"); SendCommand("sub slice all"); SendCommand("sub gps all"); SendCommand("sub audio_stream all"); SendCommand("sub cwx all"); SendCommand("sub xvtr all"); SendCommand("sub memories all"); SendCommand("sub daxiq all"); SendCommand("sub dax all");
0 -
Hi Mark,
You're exactly right: The Slice and Radio Property Changed callback is exactly that. It's called when the value for a property changes.
As soon as the slice or radio instance is created you can read the value of the property. For example, I do this for a set of Slice properties directly in my Slice Added callback:
private void radio_SliceAdded(Slice slice)
{
Debug.WriteLine("radio_SliceAdded fired
");
_theSlice = slice;//
// Initialize the slice attribute displays
//
// We don't get a "changed" event if a slice already exists when we start.
//
RxFilterLowTextBox.Text = _theSlice.FilterLow.ToString(CultureInfo.InvariantCulture);
RxFilterHighTextBox.Text = _theSlice.FilterHigh.ToString(CultureInfo.InvariantCulture);
rxWidthTextBox.Text =
( _theSlice.FilterHigh - _theSlice.FilterLow).ToString(CultureInfo.InvariantCulture);
AGCTrackBar.Value = _theSlice.AGCThreshold;
currentACGLabel.Text = _theSlice.AGCThreshold.ToString(CultureInfo.InvariantCulture);
//
// Display the current frequency
//
VFO1.Frequency = _theSlice.Freq;
... (etc) ...(Man, it's hard to post code in this forum... I wonder if we can get a plug-in or something installed that'd make posting formatted code easier and prettier).
Anyhow, pretty easy, huh??
Peter
K1PGV
0 -
I tried setting the ProgramName and I'm still not seeing the properties that are already set on the slice.
0 -
I think I have have to do that.
0
Leave a Comment
Categories
- All Categories
- 342 Community Topics
- 2.1K New Ideas
- 612 The Flea Market
- 7.9K Software
- 6.3K SmartSDR for Windows
- 173 SmartSDR for Maestro and M models
- 407 SmartSDR for Mac
- 266 SmartSDR for iOS
- 249 SmartSDR CAT
- 186 DAX
- 374 SmartSDR API
- 9.2K Radios and Accessories
- 20 Aurora
- 199 FLEX-8000 Signature Series
- 7.1K FLEX-6000 Signature Series
- 919 Maestro
- 53 FlexControl
- 860 FLEX Series (Legacy) Radios
- 890 Genius Products
- 452 Power Genius XL Amplifier
- 322 Tuner Genius XL
- 116 Antenna Genius
- 283 Shack Infrastructure
- 199 Networking
- 442 Remote Operation (SmartLink)
- 137 Contesting
- 748 Peripherals & Station Integration
- 138 Amateur Radio Interests
- 971 Third-Party Software