Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: convert sinwave to square wvae
Reply to topic
Author Message
ateeq



Joined: Oct 18, 2012
Posts: 45

PostPosted: Dec 17, 2012 3:10 AM    Post subject: convert sinwave to square wvae

what can i use please
jarek



Joined: Oct 22, 2007
Posts: 1075

PostPosted: Dec 18, 2012 10:27 PM    Post subject:

First, you need to know how you want this conversion be done, a transfer function. For example you could use an ExpressionEvaluator element with this expression:

In1 > 0 ? 1 : 0

It will change all positive values on the sine wave (coming to input) to 1 and all others to 0. So this will form a square wave.
ateeq



Joined: Oct 18, 2012
Posts: 45

PostPosted: Dec 18, 2012 11:21 PM    Post subject: I want to detect gradient positive or negative and plot

Regards
Reply to topic