| Products > Test Equipment |
| Rigol HDO1000 and HDO4000 12bit oscilloscopes launched in China |
| << < (251/258) > >> |
| vokars:
--- Quote ---The command "%matplotlib inline" is not working on mine(SyntaxError: invalid syntax) --- End quote --- This is a so-called Jupyter magic and not a Python command, but is interpreted by the Jupyter notebook: https://ipython.readthedocs.io/en/stable/interactive/magics.html With the alternative %matplotlib notebook you can scale and zoom the diagram. The two Bode plots show an approximately constant voltage. If you comment out the model part (delete the """ lines), the function generator produces a frequency dependent voltage and in this way emulates the DUT. Manual scaling of the y-axis can be done with plt.ylim(<low>,<high>). With a Jupyter notebook you can easily copy the Matplotlib / diagram part to another cell and perform additional analysis as all measurement data is still stored in the result lists (f_log_list, ...). Typical result with function generator emulation attached. |
| skander36:
--- Quote from: vokars on July 13, 2024, 12:26:41 pm --- --- Quote ---The command "%matplotlib inline" is not working on mine(SyntaxError: invalid syntax) --- End quote --- This is a so-called Jupyter magic and not a Python command, but is interpreted by the Jupyter notebook: https://ipython.readthedocs.io/en/stable/interactive/magics.html With the alternative %matplotlib notebook you can scale and zoom the diagram. The two Bode plots show an approximately constant voltage. If you comment out the model part (delete the """ lines), the function generator produces a frequency dependent voltage and in this way emulates the DUT. Manual scaling of the y-axis can be done with plt.ylim(<low>,<high>). With a Jupyter notebook you can easily copy the Matplotlib / diagram part to another cell and perform additional analysis as all measurement data is still stored in the result lists (f_log_list, ...). --- End quote --- Ok. Thank you for your answer. My reply was just a feedback. I saw it DUT emulation part, but I preferred to use a simple RC filter. |
| Frunse:
Hi the Script is running but it is working not right i guess or i make something wrong. My Generator is switching the Frequencies and gives 2VPP Out to the Scope on Channel One with 50Ohm Termination Stopp Frequency is 10MHz The Scope gives me after each reading on all 4Channels (all Channels goes on for short Time) this Error Massage: Remote cmd execute error! And the Bode Plot looks Strange / wrong. Robert |
| Frunse:
Hi again, found the Error Was the thing in between my Ears called Head ;) On Generator i was @ HighZ and not @ 50Ohm Now it works also without the Error Massage on Scope. On Script i changed only this: fg=rm.open_resource('TCPIP0::192.168.0.103::INSTR') scope=rm.open_resource('TCPIP::192.168.0.95::INSTR') # function generator set frequency lc_str = "C1:BSWV FRQ," + str(lc_f_Hz) measured an simple RC Filter -3dB Point @ around 3kHz with 1k and 0,1uF ;) Robert |
| vokars:
--- Quote ---measured an simple RC Filter -3dB Point @ around 3kHz with 1k and 0,1uF ;) --- End quote --- :-+ Now you could increase the resolution by increasing gl_points_per_decade . |
| Navigation |
| Message Index |
| Next page |
| Previous page |