>
>>I want to build an ideal device for use in PSpice simulations, a Keyed
>>Peak Detector...
>>
>>Finds the maximum peak value of an input voltage while it's enabled
>>("keyed"), and "dumps"/outputs zero when not enabled.
>>
>>Any ideas?
>>
>>(Ideal elements)
>>
>> ...Jim Thompson
>
>!@#$%&*
>
>Right under my nose... built-in macros ENVMAX and ENVMIN :-(
>
> ...Jim Thompson
That may or may not be PSpice specific. I thought about it some. Start with a "standard" track and hold, add a fast comparator to convert to a peak and hold (two if you want both peaks). Add some enable circuitry to handle any ADC converter setup and hold times and data transfer as needed.. Did something like this about 20 years ago for what was then Hughes EDSG. Location of the analog / digital boundary is engineer choice.