anyone good with excel? help...
Posted: Fri Dec 02, 2011 2:04 pm
I'm going to describe my problem the best I can:
I need to convert an amplitude vs time chart (data dumped straight from an oscilloscope):
to amplitude vs degrees chart.
I'm able to do this manually for one time but I need to write a code for ATE (automated testing). I need to come up with a code for the "Continuous phase" column.
Here are how the cells aligned: I'm converting this points using X = Xo sin(wt)
xo =.04 (calculated constant); W (omega) rad/sec
(Time) ||||||||| X ||||||||| Sin^-1(X/Xo) |||| Wrad |||||||| Wdeg |||||||| Continuous phase
8.2E-09 |||||||| 0.03 |||||||| 1.015 ||||||||| 1.48 |||||||| 84.79 ||||||||
8.4E-09 |||||||| 0.034 |||||||| 0.994 |||||||| 1.46 |||||||| 83.87 ||||||||
8.6E-09 |||||||| 0.035 |||||||| 0.999 |||||||| 1.56 |||||||| 89.74 ||||||||
8.8E-09 |||||||| 0.034 |||||||| 0.996 |||||||| 1.48 |||||||| 84.97 |||||||| 95.022 <<"=180-E51
9.0E-09 |||||||| 0.033 |||||||| 0.946 |||||||| 1.24 |||||||| 71.09 |||||||| 108.902
9.2E-09 |||||||| 0.033 |||||||| 0.948 |||||||| 1.24 |||||||| 71.46 |||||||| 108.535
9.4E-09 |||||||| 0.033 |||||||| 0.947 |||||||| 1.24 |||||||| 71.33 |||||||| 108.664
As you see with the sin, the points start to inverse (reverse slope), and eventually i need to do +360 - E(whatever). ex:
.
.
.
Time |||||||| X |||||||| Sin |||||||| Wrad |||||||| Wdeg
2.30E-08 |||||||| -0.0354 |||||||| -0.98 |||||||| -1.3704 |||||||| -78.52 |||||||| 258.521659
2.32E-08 |||||||| -0.0359 |||||||| -0.99 |||||||| -1.4292 |||||||| -81.89 |||||||| 261.8903855
2.34E-08 |||||||| -0.0347 |||||||| -0.99 |||||||| -1.4707 |||||||| -84.26 |||||||| 264.268032
2.36E-08 |||||||| -0.0355 |||||||| -1 ||||||||||| -1.5707 |||||||| -90 ||||||||||| 270 <<<<< =360 + (-90)
2.38E-08 |||||||| -0.0350 |||||||| -0.99 |||||||| -1.4707 |||||||| -84.26 |||||||| 275.731968
2.40E-08 |||||||| -0.0336 |||||||| -0.96 |||||||| -1.2876 |||||||| -73.77 |||||||| 286.223624
Can someone come up with an IF/And Formula that subtracts 180, then adds 360 then subtracts 540 etc etc every time the slop changes (as in the Wdeg changes from going up to down or vice versa)????
I'm not terrible with excel but I can't get my finger around this
Thanks Rob
I need to convert an amplitude vs time chart (data dumped straight from an oscilloscope):
to amplitude vs degrees chart.
I'm able to do this manually for one time but I need to write a code for ATE (automated testing). I need to come up with a code for the "Continuous phase" column.
Here are how the cells aligned: I'm converting this points using X = Xo sin(wt)
xo =.04 (calculated constant); W (omega) rad/sec
(Time) ||||||||| X ||||||||| Sin^-1(X/Xo) |||| Wrad |||||||| Wdeg |||||||| Continuous phase
8.2E-09 |||||||| 0.03 |||||||| 1.015 ||||||||| 1.48 |||||||| 84.79 ||||||||
8.4E-09 |||||||| 0.034 |||||||| 0.994 |||||||| 1.46 |||||||| 83.87 ||||||||
8.6E-09 |||||||| 0.035 |||||||| 0.999 |||||||| 1.56 |||||||| 89.74 ||||||||
8.8E-09 |||||||| 0.034 |||||||| 0.996 |||||||| 1.48 |||||||| 84.97 |||||||| 95.022 <<"=180-E51
9.0E-09 |||||||| 0.033 |||||||| 0.946 |||||||| 1.24 |||||||| 71.09 |||||||| 108.902
9.2E-09 |||||||| 0.033 |||||||| 0.948 |||||||| 1.24 |||||||| 71.46 |||||||| 108.535
9.4E-09 |||||||| 0.033 |||||||| 0.947 |||||||| 1.24 |||||||| 71.33 |||||||| 108.664
As you see with the sin, the points start to inverse (reverse slope), and eventually i need to do +360 - E(whatever). ex:
.
.
.
Time |||||||| X |||||||| Sin |||||||| Wrad |||||||| Wdeg
2.30E-08 |||||||| -0.0354 |||||||| -0.98 |||||||| -1.3704 |||||||| -78.52 |||||||| 258.521659
2.32E-08 |||||||| -0.0359 |||||||| -0.99 |||||||| -1.4292 |||||||| -81.89 |||||||| 261.8903855
2.34E-08 |||||||| -0.0347 |||||||| -0.99 |||||||| -1.4707 |||||||| -84.26 |||||||| 264.268032
2.36E-08 |||||||| -0.0355 |||||||| -1 ||||||||||| -1.5707 |||||||| -90 ||||||||||| 270 <<<<< =360 + (-90)
2.38E-08 |||||||| -0.0350 |||||||| -0.99 |||||||| -1.4707 |||||||| -84.26 |||||||| 275.731968
2.40E-08 |||||||| -0.0336 |||||||| -0.96 |||||||| -1.2876 |||||||| -73.77 |||||||| 286.223624
Can someone come up with an IF/And Formula that subtracts 180, then adds 360 then subtracts 540 etc etc every time the slop changes (as in the Wdeg changes from going up to down or vice versa)????
I'm not terrible with excel but I can't get my finger around this
Thanks Rob






