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.21 and the SmartSDR v3.8.21 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
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.21 and the SmartSDR v3.8.21 Release Notes
SmartSDR v2.12.1 and the SmartSDR v2.12.1 Release Notes
Power Genius XL Utility v3.8.9 and the Power Genius XL Release Notes v3.8.9
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.
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
- 271 Community Topics
- 2.1K New Ideas
- 543 The Flea Market
- 7.4K Software
- 6K SmartSDR for Windows
- 141 SmartSDR for Maestro and M models
- 342 SmartSDR for Mac
- 246 SmartSDR for iOS
- 227 SmartSDR CAT
- 165 DAX
- 360 SmartSDR API
- 8.8K Radios and Accessories
- 7K FLEX-6000 Signature Series
- 61 FLEX-8000 Signature Series
- 816 Maestro
- 45 FlexControl
- 849 FLEX Series (Legacy) Radios
- 815 Genius Products
- 426 Power Genius XL Amplifier
- 269 Tuner Genius XL
- 95 Antenna Genius
- 234 Shack Infrastructure
- 159 Networking
- 388 Remote Operation (SmartLink)
- 130 Contesting
- 658 Peripherals & Station Integration
- 120 Amateur Radio Interests
- 833 Third-Party Software