Greetings all. I have an application where a motor is being controlled. The control aspect has all been created and works well. I would like to have a Gauge Indicator on the screen to give the operator some type of feedback as to the approximate position of the motor between 0-360 degrees. I created an indicator, set it for 0-360, rotated it so that zero and 360 are lined up and I can write a position to it. The problem I have is coding it correctly. I need it to move either forward or backward, at some increment and speed that I can set to find the best overall simulation of the motor. It needs to move both forward and backward, which is the most important part. For example: It will always start (initialize) at zero. Then, let's say that a p
osition of 45 degrees is commanded. I want the Gauge to slew to 45. Then a position of 123 is commanded... I want it to slew from 45 to 123, not go back to start and then go there. It also needs to move backwards. So after the 123 setting, if 90 is commanded, it needs to slew backwards to 90, not go to zero, then 90. I hope I explained it enough. I can play with how fast it moves. The table will actually be set for increments of .001 if needed, such as 145.546 degrees. I don't expect or need the dial to read that accurately, but the digital display would be nice. Any ideas? I need this rather quickly. Please help. Thanks