On Thu, Oct 12, 2023 at 10:21 PM, Kimmo wrote:
I need a Python program, in Linux / Ubuntu, that can be used to control tinySA so that I can make continuous sweeps with the tinySA.
I was testing the program tinySA.py, available at
http://athome.kaashoek.com/tinySA/python/
It works fine when using with a command like
> ./tinySA.py -S 50e6 -E 500e6? -o aa.csv?? ? ? ? ? ? (sweeping between 50-500 MHz and saving the data into aa.csv, with 450 scan points)
However, if using a command
> ./tinySA.py -S 50e6 -E 500e6 -N 500? -o aa.csv ? ? (same as above but using 500 scan points)
there is an error message
Traceback (most recent call last):
? File "./tinySA.py", line 306, in <module>
??? nv.writeCSV(s,opt.save)
? File "./tinySA.py", line 239, in writeCSV
??? print("%d, "%self.frequencies[i], "%2.2f"%x[i], file=f)
IndexError: index 500 is out of bounds for axis 0 with size 500
Can somebody tell how to fix this error ?
After that, I can try to modify the program so that it makes continuous sweeps.
Cheers, Kimmo
TinySA Ultra is limited to 450 scan points unless you use the "scanraw" command.? Unfortunately, tinySA.py does not have a switch for invoking the "scanraw" command.
Martin has a python script at? ?? which does use the "scanraw" command for saving a csv file with greater than 450 points.
Herb