Hi,
i would like to know whether is possible to configure IviCounter to measure width of a negative pulse? If yes how i should configure IviCounter?
Thank you very much in advance
Mike
Answer by Alan Copeland · Jun 09, 2016 at 10:10 PM
This is actually a bug in the IVI Counter Class functionality of this specific driver (you can reference this as Defect 441815). You can workaround this issue with the instrument-specific Configure method (Ag532xx.PulseWidth.Configure), or you can send the SCPI commands directly using the SCPI passthru (SCPI commands are: CONFigure:NWIDth and MEASure:NWIDth?).
Sorry it took a year!
Answer by Joseph Mueller · Jun 24, 2015 at 05:17 PM
To configure IviCounter to measure a negative pulse you need to set the Channel properties to indicate a negative slope, as well as appropriate levels.
Then you need to configure the pulse measurement. So with IVI-COM the calls would be something like:
counter.Channels.Item("chan").Slope = IIviCounterSlopeEnum.Negative;
counter.Channels.Item("chan").Level = 0.1;
counter.ConfigurePulseWidth("chan", 1e-6, 1e-9);
Of course assuming the measurement is about 1us with 1ns resolution, with a pulse defined as being the level crossing 100mV. Several other adjustments can be made by changing the Channel configuration.
Answer by biech · Jun 25, 2015 at 08:38 AM
Hi Joe,
thank you very much for your answer.
Unfortunately it doesn't work for me :(. I have Agilent 53220A with IviCounter Driver v. 1.0.11.0.
I want to measure 3ms negative pulse. As suggested i've executed:
cntr.Channels.Item["Channel1"].Slope = IviCounterSlopeEnum.IviCounterSlopeNegative;
cntr.Channels.Item["Channel1"].Level = 5.0;
cntr.PulseWidth.Configure("Channel1", 3e-3, 1e-4);
double pw = cntr.Measurement.Read(1000);
but this command chain still measures the "positive" part of the signal. I've also tried to first configure the PulseWidth interface and then the channel, but doesn't change anything.
Do you have a chance to check it with 53220A?
Thank you
Mike
Answer by Joseph Mueller · Jun 25, 2015 at 07:21 PM
HI Joe,
have you got some feedback from the product support team?
Mike