Welcome to the FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
The latest SmartSDR Software:
SmartSDR v4.2.18 | SmartSDR v4.2.18 Release Notes
SmartSDR v3.10.15 | SmartSDR v3.10.15 Release Notes
The latest 4O3A Genius Product Software:
The latest 4O3A Genius Product Software and Firmware
SmartSDR v4.2.18 | SmartSDR v4.2.18 Release Notes
SmartSDR v3.10.15 | SmartSDR v3.10.15 Release Notes
The latest 4O3A Genius Product Software:
The latest 4O3A Genius Product Software and Firmware
How to Receive Technical Support::
If you are needing assistance with FlexRadio products, 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.
If you are needing assistance with FlexRadio products, 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.
How to wait for a slice to be ready?
Drax
Member
What is the proper way to wait for a slice to be ready to accept property modifications after I've created it?
Waiting for the slice created event doesn't seem to be enough. I tried putting a set slice.freq command in the event, but it doesn't work. But if I wait some time and then change the slice's frequency it will do it.
Obviously there is some other event, besides slice created, a or property I have to monitor before I start making demands of the slice. What is it?
Waiting for the slice created event doesn't seem to be enough. I tried putting a set slice.freq command in the event, but it doesn't work. But if I wait some time and then change the slice's frequency it will do it.
Obviously there is some other event, besides slice created, a or property I have to monitor before I start making demands of the slice. What is it?
0
Answers
-
Drax,Here is a snippet of how I do that in CAT:
public void SliceAdded(Slice slc) { switch (slc.Index) { case 0: if (slice0 == null) { slice0 = slc; slice0.PropertyChanged += new PropertyChangedEventHandler(slice0_PropertyChanged); slice0.SMeterDataReady += new Slice.SMeterDataReadyEventHandler(slice0_SMeterDataReady); //initialize the current_receive_slice if (current_receive_slice == null) { current_receive_slice = slice0; Set("Freq0", slice0.Freq.ToString()); } string split_status = "00"; if (slice0 != null && slice1 == null && slice0.Transmit) { split_status = "00"; this.CurrentTransmitSlice = 0; }The SliceAdded(Slice slc) method is called from the radio slice_added event handler.
Hope this helps,
Bob
0
Leave a Comment
Categories
- All Categories
- 393 Community Topics
- 2.2K New Ideas
- 668 The Flea Market
- 8.5K Software
- 174 SmartSDR+
- 6.5K SmartSDR for Windows
- 191 SmartSDR for Maestro and M models
- 450 SmartSDR for Mac
- 276 SmartSDR for iOS
- 266 SmartSDR CAT
- 215 DAX
- 389 SmartSDR API
- 9.5K Radios and Accessories
- 70 Aurora
- 317 FLEX-8000 Signature Series
- 7.2K FLEX-6000 Signature Series
- 981 Maestro
- 58 FlexControl
- 869 FLEX Series (Legacy) Radios
- 952 Genius Products
- 474 Power Genius XL Amplifier
- 349 Tuner Genius XL
- 129 Antenna Genius
- 311 Shack Infrastructure
- 217 Networking
- 474 Remote Operation (SmartLink)
- 143 Contesting
- 833 Peripherals & Station Integration
- 146 Amateur Radio Interests
- 1.1K Third-Party Software