01-09-2019 01:19 AM
Hello everyone ,
is any one know the formula of Ramp pattern by delta but in logarithmic type or log spaced vactor between Start value and stop value?
Thanks in advance. your help is highly appreciated
Solved! Go to Solution.
01-09-2019 01:26 AM
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"?
01-09-2019 02:32 AM - edited 01-09-2019 02:38 AM
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
01-09-2019 02:47 AM - edited 01-09-2019 02:52 AM
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?
01-09-2019 03:20 AM
@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.
01-09-2019 03:45 AM - edited 01-09-2019 03:46 AM
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!