| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This is a more advanced example of using RF Explorer Spectrum Analyzer or Signal Generator, based on python example 1
The main limitation of Example 1 is the selection of frequency range. In that example used default configuration and not actually selected by specific code.
In the case a Spectrum Analyzer is connected, this code configures multiple different scan start/stop frequency ranges, iteratively displaying captured peak signal result on each one of them.
The example begins requesting the default configuration of the analyzer, then set it to 500-600MHz scan, gets one sweep and reconfigures for 600-700MHz, etc - repeat up to 900MHz limit, then close.
Note: depending of your RF Explorer device model, may not support this specific frequency range. In that case please update code start/stop range to adapt to your specific model.
In the case a Signal Generator is connected, generates, first, a frequency sweep and then amplitude sweep during 5 seconds each.
Open a terminal or command line in your OS and run
python3.5 RFE6GEN_Example_USB.py
As depicted below (using Windows as example), you will get automatic connection to the USB device using a specific COM port name. Other OS will return different port names.
Firmware version of the connected RF Explorer device
Active connection at 500,000 baud
Some information may depend on the specific device connected and firmware version installed
Depending on the device connected - Spectrum Analyzer or Signal Generator - the results will be different.
Initialization details and basic structure is the same as Example 1.
However, the main difference comes in how the main running loop works: now is not limited by time, but with frequency range limit.
Inside the loop, the call to objRFE.UpdateDeviceConfig(StartFreq, StopFreq) allows the python code to reconfigure scan range of the device.
| Back | FazBrowse Home | New Git URL |