loica Posted May 11, 2023 Share Posted May 11, 2023 (edited) Hello everyone, currently im trying to do network analyze but with the python API, and how can i set the channel offset (on the right panel) in python API (im using pydwf) because when i try in waveform application, this is when the offset is not set and this when i set the offset to 10V Edited May 11, 2023 by loica Link to comment Share on other sites More sharing options...
0 JColvin Posted May 11, 2023 Share Posted May 11, 2023 Hi @loica, I'm not familiar with pydwf specifically (that would be something I would defer to @reddish on), but I don't believe the Network Analyzer is directly available in the SDK. There is some network analysis functionality in the included AnalogNetwork_Analyzer.py example though it uses the Impedance Analyzer tool. In terms of setting individual channel offset (since the Impedance Analyzer function of FDwfAnalogImpedanceOffsetSet just sets the offset of the stimlus signal as per the WaveForms SDK Reference manual), I believe you can explicitly set the Analog Input Channel Offsets via FDwfAnalogInChannelOffsetSet, as is shown on lines 62 through 64 of the AnalogImpedance_OffsetSweep.py example. Let me know if you have any questions. Thanks, JColvin Link to comment Share on other sites More sharing options...
0 Guest Posted May 12, 2023 Share Posted May 12, 2023 (edited) Hi @loica, In pydwf, the "offset" setting of the "AnalogImpedance" sub-API can be set as per the following self-contained example: from pydwf import DwfLibrary from pydwf.utilities import openDwfDevice dwf = DwfLibrary() with openDwfDevice(dwf) as device: # Set the offset to be used by the "analogImpedance" functionality. device.analogImpedance.offsetSet(1.0) The network analyser (aka "analog impedance") functionality as exposed by pydwf is documented here. Caveat: the "analogImpedance" functionality is not super well tested. If you happen to find bugs, please report them on the pydwf issue tracker. ( @JColvin : thanks for the heads-up, I would have missed this question otherwise!) Edited May 12, 2023 by reddish Link to comment Share on other sites More sharing options...
0 loica Posted May 12, 2023 Author Share Posted May 12, 2023 14 hours ago, JColvin said: Hi @loica, I'm not familiar with pydwf specifically (that would be something I would defer to @reddish on), but I don't believe the Network Analyzer is directly available in the SDK. There is some network analysis functionality in the included AnalogNetwork_Analyzer.py example though it uses the Impedance Analyzer tool. In terms of setting individual channel offset (since the Impedance Analyzer function of FDwfAnalogImpedanceOffsetSet just sets the offset of the stimlus signal as per the WaveForms SDK Reference manual), I believe you can explicitly set the Analog Input Channel Offsets via FDwfAnalogInChannelOffsetSet, as is shown on lines 62 through 64 of the AnalogImpedance_OffsetSweep.py example. Let me know if you have any questions. Thanks, JColvin Thanks for your reply @JColvin, it really helpful. now i can get the same result as i did at waveform application👍 Link to comment Share on other sites More sharing options...
0 loica Posted May 12, 2023 Author Share Posted May 12, 2023 9 hours ago, reddish said: Hi @loica, In pydwf, the "offset" setting of the "AnalogImpedance" sub-API can be set as per the following self-contained example: from pydwf import DwfLibrary from pydwf.utilities import openDwfDevice dwf = DwfLibrary() with openDwfDevice(dwf) as device: # Set the offset to be used by the "analogImpedance" functionality. device.analogImpedance.offsetSet(1.0) The network analyser (aka "analog impedance") functionality as exposed by pydwf is documented here. Caveat: the "analogImpedance" functionality is not super well tested. If you happen to find bugs, please report them on the pydwf issue tracker. ( @JColvin : thanks for the heads-up, I would have missed this question otherwise!) Hi again and thanks for your reply @reddish, actually, the offset that i meant is the channel offset (scope offset) not the analogimpedance offset just like what @JColvin said at 2nd paragraph. so, i use the analogIn.ChannelOffsetSet function. And, so far your pydwf espescially the analogimpedance function working just fine at my project. so Thank you very much to make my work easier with your pydwf👍 Link to comment Share on other sites More sharing options...
Question
loica
Hello everyone,
currently im trying to do network analyze but with the python API, and how can i set the channel offset (on the right panel) in python API (im using pydwf)
because when i try in waveform application, this is when the offset is not set
and this when i set the offset to 10V
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now