Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: Synchrony values
Reply to topic
Author Message
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Aug 16, 2011 2:50 PM    Post subject: Synchrony values

Jarek,

I am working on a synchrony design and using numeric displays to show the values on screen. The values I see appear to vary between +1 and -1. I am used to seeing synchrony values of +180 to -180.

If I want to convert this to degrees of phase difference could I just multiply by 180. If not how could I do this?

Thanks

George
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Aug 16, 2011 3:58 PM    Post subject:

George,

yes, exactly. You can multiply by 180 to convert to degrees, or multiply by Math.PI to convert to radians.

Jarek
GMartin



Joined: Feb 5, 2010
Posts: 308

PostPosted: Aug 16, 2011 8:19 PM    Post subject: Synchrony values

Jarek,

Thanks.

Got it set up.

George
snovotill



Joined: Feb 8, 2013
Posts: 80

PostPosted: Nov 24, 2013 11:02 AM    Post subject:

Hi folks, Jarek, George, above it says to multiply by Math.PI in Expression Evaluator. In my case I'm converting from Average(ABS) to Peak-Peak(sinewaves), and so I have to feed ExpressionEvaluator...

For some reason this does not work:
Out1=In1*Math.PI;Out2=In2*Math.PI
Although this works fine at the expense of accuracy:
Out1=In1*3;Out2=In2*3
Can anyone tell me what's wrong in the former?

And MOST interestingly this does not work:
Out1=In1*3.14;Out2=In2*3.14
However this does, and it even maintains accuracy(!):
Out1=In1*314/100;Out2=In2*314/100
Why-for do real numbers have to be entered as rationals?

Incidentally there are other Java built-in constants such as Math.E

Puzzled and perplexed.
jarek



Joined: Oct 22, 2007
Posts: 1073

PostPosted: Nov 25, 2013 12:33 AM    Post subject:

This expression should work starting with version 3.080
Reply to topic