Need help with a noise spectral density measurement using zhinst toolkit -- Missing path for Spectral Density option in Sweeper Module #248
-
Hello! If enabling the spectral density option in python is not possible, what are other ways to perform noise measurements using the zhinst-toolkit library? I know one from the LabOne page, but the formulation could be wrong (see very bottom). I appreciate any and all solutions and feedback! Thanks so much!
Below is the code I am currently using:
Now we set the sweep module to perform the noise density measurement, with the exception of the missing "Spectral Density" activation. Most parameters are specified based on the LabOne page for noise measurements.
The rest follows the sweeper example from the official zhinst-toolkit page:
Alternatively, the LabOne page explains the math behind the noise measurement. Using that formula one would go as follows:
If that's one of the alternative fixes, could someone verify that it's correct? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Dear @miguelairs, As you already observed, the "Spectral Density" is a post-processing method which is done in the graphical user interface. So it is not available as a node for the Sweeper module. Instead, you can simply calculate the spectral density according to the formula you already found in this blog post. Your calculations at the end of your script seems to do the job. Please note that the obtained "noise" from your script is the power spectral density (PSD) in [V^2/Hz]. In case you are interested in the amplitude spectral density of noise in [V/rtHz], you just need to take the square root out of the calculated "noise" in your script. |
Beta Was this translation helpful? Give feedback.
Dear @miguelairs,
Thank you for your question.
As you already observed, the "Spectral Density" is a post-processing method which is done in the graphical user interface. So it is not available as a node for the Sweeper module. Instead, you can simply calculate the spectral density according to the formula you already found in this blog post.
Your calculations at the end of your script seems to do the job. Please note that the obtained "noise" from your script is the power spectral density (PSD) in [V^2/Hz]. In case you are interested in the amplitude spectral density of noise in [V/rtHz], you just need to take the square root out of the calculated "noise" in your script.