11-05-2007 07:37 AM
11-06-2007 08:05 AM
11-16-2007 08:40 AM
11-19-2007 08:06 AM
It is unclear from your message exactly what the problem is. I think it is one of the following:
If the problem is the first one, you can find the B part which corresponds to your A part by inverting the A part and running a correlation function. The peak will occur when the two functions are aligned (with sample period accuracy - if you need more, ask, it can be done).
If you problem is the second one, use simultaneous acquistion on your scope. They will be automatically aligned. If you need further tweaking, see the first method.
I feel like I have not answered your question. Please post more details. Some real data would be nice.
11-19-2007 11:00 AM
11-20-2007 08:51 AM
If you simply want to detect the condition and do an add instead of invert-add, you can run a correlation function (e.g. Correlation Coefficient) on the A and B waveforms. If it comes up positive, just add them. If it is negative, do the invert-add.
From the data and your description, it sounds like you have a hardware issue. Since you are using an NI-SCOPE device, the inputs are simultaneously acquired, which rules out a synchronization issue with the scope. The problem could be with anything in your test chain - device under test, cables, amplifiers, or scope. If you can, run the test using multiple scope cards on the same signal (you can probably use a DAQ card as well, just for quick diagnostics). Try to use scopes from the failing and not failing tests. If the scopes all show the issue, then work down your test chain until you find the problem. If the scopes are failing, send them back to us for repairs.
Good luck.
11-21-2007 06:41 AM
11-21-2007 07:57 AM
Since you already have your low, mid, and high levels from the histogram, this should be fairly easy. Subtract the mid level from everything, then take the absolute value of the waveform. This will reflect the negative pulses across the X axis, giving you only positive pulses. You will get some slight distortion around the X axis, depending on your noise level and the accuracy of your mid level, but it should not prevent you from getting fairly accurate pulse width measurements.
11-26-2007 03:39 AM
11-27-2007 08:28 AM
Since we are trying to use the transient measurement VIs in a way they were not supposed to be used, it is not surprising they are failing. Let's try something else.
You have the top, mid, and bottom values for your waveforms. From these, you can easily calculate the 10% and 90% voltage levels for the rise/fall times. You can find the X and Y values of the curves at these levels by subtracting the level value from the curve and using one of the root finding or zero crossing VIs. Sort your data by X value to enable you to easily pair the 10% and 90% points, then calculate the rise and fall times.
P.S. Please post screenshots in PNG format so we can view it with our browsers. Word takes a long time to start. The PNG image may also take less space, if you use compression level 9.