App Developer DSP Level Tick is missing

Discuss PC Developer and Web Developer projects and features here.
Post Reply
stefan.erni
Valued Contributor
Posts: 738
http://meble-kuchenne.info.pl
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

App Developer DSP Level Tick is missing

Post by stefan.erni »

Hi Ben

DSP Level Tick is missing?
How to use the DSP Level?
I like to ReadAverage from 200 samples but I miss a Tick.

I tried the sample on the help but the compiler is missing also a tick like me....

regards

Stefan
Tick_2021-04-15_8-45-54.png
Tick_2021-04-15_8-45-54.png (123.46 KiB) Viewed 3998 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: App Developer DSP Level Tick is missing

Post by BenR »

Hi Stefan,

I've redone the wiki example for you now so that it works with the latest component.

Level.fcfx
(16.54 KiB) Downloaded 186 times
I've also added a new property to allow the min / max values to remain rather than decaying over time.

Let me know if you have any problems.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer DSP Level Tick is missing

Post by stefan.erni »

Hi Ben


Perfect! Its working now.
I've also added a new property to allow the min / max values to remain rather than decaying over time.
Very good idea from you!
If you can add another command (ResetPeak, ResetTrough) to set the value back to 0 that would be fantastic. I could then reset the value after ReadPeak or whenever I need it to reset. I hope it works with int and long.


regards

Stefan

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: App Developer DSP Level Tick is missing

Post by BenR »

Hi Stefan,

That's a good idea. I've added it for you now.

Should work fine with int and long.

Let me know how you get on.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer DSP Level Tick is missing

Post by stefan.erni »

Hi Ben

With reset command:
Maybe I did not do the right way.
I put a switch to reset the Peak's but it shows always 0 and 159

With decay on peak:
it's working nice
Level_reset.fcfx
(19.4 KiB) Downloaded 175 times
regards

Stefan

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer DSP Level Tick is missing

Post by stefan.erni »

Hi Ben

I tested the Level reset program with the scope.

Every thing look fine but the min Value and max Value is always 0 and 159.

I think there is a problem with the DSP Level component

regards

Stefan

Level_reset_osciloscope.fcfx
(19.75 KiB) Downloaded 166 times
Attachments
Min-Max2021-04-27_13-51-33.png
Min-Max2021-04-27_13-51-33.png (108.06 KiB) Viewed 3935 times

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: App Developer DSP Level Tick is missing

Post by BenR »

Hi Stefan,

Many thanks for letting me know. I've made some further optimisations and changes to the level component now and hopefully these will work to solve the problems you're having.

stefan.erni
Valued Contributor
Posts: 738
Joined: Wed Dec 02, 2020 10:53 am
Has thanked: 149 times
Been thanked: 170 times

Re: App Developer DSP Level Tick is missing

Post by stefan.erni »

Hi Ben

Now it's perfect!
Thanks a lot
regards

Stefan

Post Reply