Has the bug in the exponential decay block (constant db/sec) been fixed?
SigmaStudio has a known bug, where the block claiming to be an exponential decay is really a linear decay. There is a clever workaround here:
https://ez.analog.com/message/64597#64597
However, this is probably a very inefficient and limited implementation compared to a proper default block. This was discussed in 2012 - has it been fixed in more recent SigmaStudio releases? Will it be?
Hello joe42,
Testing the Peak Envelope block in SigmaStudio 3.10 Beta shows that its decay is still linear:
SteveL's ingenious workaround performs really well, while using 31 instructions. The present linear-decay block takes 19 instructions, so there's room to save some with a native block. Recently the SigmaStudio software team developed a new noise-reduction algorithm which uses about 25% fewer instructions than its equivalent discrete circuit. This also suggests, as you noted, that a native block would be more efficient.
Best regards.
Bob
Likely the original (linear decay) version of this peak envelope detector may need preserving along with any new one. For example, we have existing products that could function in an unpredictable way should the code change. I understand from https://ez.analog.com/message/86755#86755
that existing blocks in a project do not update merely because the source schematic is recompiled with a newer version of SigmaStudio, but if for any reason the original block is deleted in the source, the replacement block could only be from what is available in the current version.
BTW -- the decay box in the present block is labeled, not as dB/s like with some other blocks, but instead as, K/s. If the letter K means "constant", this describes exactly how its decay presently operates -- a constant amount is deducted each time interval.
Bob
An excellent point. I hadn't realized they fixed the label on the block. I do strongly hope that minor change didn't make this a "closed case" now. [ The help file is still wrong, fwiw. ] An exponential decay is a pretty fundamental and useful element to have.
This question has been assumed as answered either offline via email or with a multi-part answer. This question has now been closed out. If you have an inquiry related to this topic please post a new question in the applicable product forum.
Thank you,
EZ Admin
Please log in to reply.

