Products > Test Equipment
Keithley 2015 THD with FFT and Harmonic graphs
dvb:
I have installed "pandas" and "serial" as a result of errors I received but now I have:
" File "C:\Users\Dorin\AppData\Local\Programs\Python\Python311\free_keithley-main\thd.py", line 38, in __init__
self.ser = serial.Serial()
AttributeError: module 'serial' has no attribute 'Serial' "
The settings of serial port are to be edited in module?
I have 3 COM ports, the last one called "ATEN USB to Serial Bridge (COM5)" in Device Manager, used by Keithley - communication tested OK with Putty at both 9600 and 19200 baud.
How does the module know which one to use?
Thanks!
zrq:
Are you sure you have the correct serial package installed? It appears to require https://pypi.org/project/pyserial/ . There can be python packages that have a same name.
dvb:
I think so, I have just checked and...
" C:\Users\Dorin\AppData\Local\Programs\Python\Python311>pip install pyserial
Requirement already satisfied: pyserial in c:\users\dorin\appdata\local\programs\python\python311\lib\site-packages (3.5) "
I can only imagine that not being yet tested for Windows (as Andres/emartine said) a lot of little things are still to be sorted out (as I was affraid of)
emartine:
--- Quote from: 1audio on April 15, 2022, 05:21:30 am ---Feel free to use whatever you can from this: https://github.com/1audio/Keithley-Windows-10 Its mostly working. Integrating the harmonics analysis with the rest of the package would make it very useful. Adding control for an external oscillator (the internal source is not very good) would enhance its utility.
--- End quote ---
Hello. I made some progress. You can take a look at it: https://github.com/andmarti1424/free_keithley
The thing is I cannot find anything regarding FFT on your code. As im having trouble to interpret the bins after I issue:
':DIST:FFT:BINS? 1,1023'
It is also very slow over RS232..
Thanks for your help.
dvb:
An alternative to Keithley's internal generator can be a relatively cheap Focusrite 2i2 (2nd gen) set to 0.5Vrms headphone output, for which Keithley reads "000.001 THD" (10 harmonics).
For 0.2Vrms line output directly from soundcard Keithley reads "000.000 THD" while the soundcard's ADC reads 0.0006% :) (via Waveforms software from Digilent, but other programs give the same results)
My conclusion here is that Keithley 2015 shouldn't be disregarded so easily, still has its use! :)
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version