Hi Gab,
any one know the formula of Ramp pattern by delta … between Start value and stop value?
step := start REPEAT step += step + delta UNTIL step >= stop
but in logarithmic type or log spaced vactor
What is a vactor?
And which values do you expect for a "logarithmic type" - when you still want to apply a "delta"?
What is a vactor?
And which values do you expect for a "logarithmic type" - when you still want to apply a "delta"?
sorry for misspell. Here vector mean Array with value will be in logarithmic scale.
For example if my start point =1 and stop point =10 and delta =1,
then in linear type i am expecting Vector ={1,2,3,4,5,6,7,8,9,10} (end point included).
Similar for logarithmic Scale, i am expecting Vector be like ={1,1.29,1.66,2.15,2.78,3.59,4.64,5.99,7.74,10} .
Regards,
Gab
Hi Gab,
Similar for logarithmic Scale, i am expecting Vector be like ={1,1.29,1.66,2.15,2.78,3.59,4.64,5.99,7.74,10} .
How are you calculating these values?
I would try this (as long as you cannot provide anymore details on your values):
Edit: Found the solution by counting more accurately:
Why do you ask for a formula when you already can calculate that vector?
@GerdW wrote:
Hi Gab,
Similar for logarithmic Scale, i am expecting Vector be like ={1,1.29,1.66,2.15,2.78,3.59,4.64,5.99,7.74,10} .
How are you calculating these values?
I did similar like you. see attached VI.
I would try this (as long as you cannot provide anymore details on your values):
Why you divide all array element by 10?
Edit: Found the solution by counting more accurately:
Why do you ask for a formula when you already can calculate that vector?
I asked for formula because in the help of "Ramp pattern.vi". there is formula for linear and logarithmic type, ramp pattern by Sample. but i am unable to find formula for ramp pattern by delta in logarithmic type. so to make sure that whatever, i am calculating is theoretically correct also.
Hi Gab,
I asked for formula because in the help of "Ramp pattern.vi". there is formula for linear and logarithmic type, ramp pattern by Sample. but i am unable to find formula for ramp pattern by delta in logarithmic type.
That answer is simple: the "Delta" instance of the Ramp function does NOT support logarithmic type. So there only is a formula for linear ramps given in the help…
I would go this way:
With logarithmic scales you most often want either some certain values (like 1, 2, 5, 10) or "evenly spaced" on the logarithmic scale - as calculated by the Ramp function in "Samples" mode…
But thanks, now I learned about the "logarithmic" feature of the Ramp function. Never needed that before!