pyadf435x icon indicating copy to clipboard operation
pyadf435x copied to clipboard

Question: Regarding the sweep example provided

Open satfan52 opened this issue 8 years ago • 1 comments

Hello, Thank you for this nice Linux software, I tested it and it works fine. I have been testing the sweep function and unfortunately I could noy find a way to change the "Channel Spacing" to a different setting than 1 Mhz. I need scanning steps in the order of 100Khz not 1 Mhz and unless I am mistaken I could not find a parameter to set steps of 0.1 Mhz as I can do it using the Windows UI. How could I do it with your programme ? Thanks Regards Peter

satfan52 avatar Nov 27 '17 00:11 satfan52

sweep.py is a simple example that uses the range() built-in function to sweep over an integer sequence of frequencies. range() can only work with integers, so you need to get the sequence some other way. For example you could replace the for-loop with something like this:

for freq in [f/10.0 for f in range(500, 1000)]:
    ...

...this will sweep from 50 to 100MHz in 0.1MHz increments.

It would be nice to develop this example into a proper tool that can take arguments on the command-line. As you can see it's just quick-and-dirty example code right now.

jhol avatar Nov 29 '17 04:11 jhol