Hi all ,
I have stepper motor program need ur help in one part of a small equation , ...
I have the equation : please look to the photo>>
I am using for loop for (i=0 ; i<N;i++)
x/N* i-10 =+10 Max
x/N*i_10=_10 Min
so if the result of the equation greater than 10 or not in range og -10 and 10 , it immedailty generate a value for x and N so it can satisfy the equation !!!! I mean if the user enter X it can calcualte Y in the range to get the correct equation , and notice (i) is the iteration of the for loop and N is the condition of for loop.
I mean the result of equation can be between +10 and _10 , I have used in LABVIEW in range in corece but it doesnot correct value of X and N if they are false ??
any help please so if the value not in range -10 to 10 it can correct it!!
Thnks