06-25-2013 07:02 PM
Hey everyone,
I have been searching for an example of a NI 7352 or any flex motion card with potentiometer feedback. I have looked at all the NI examples and scoured the web and I can't find anything. So what I want is to have a potentiometer which I use for position feedback and is attached to a stepper motor. So I want to specify a position on my pot that I want to go to and then the stepper motor will turn until it reaches the pot position with some PID loop. I am sure this has been done before but I can not find anything. I wrote a program that does do this and much more but the whole control of the stepper motors is not nearly as elegant as I know it can be. My program works pretty well when just doing one axis but when doing two it doesn't work well. I can't share my program but I don't really want any critique on my program I just want to start over with some better control algorithms. Thanks!
-Ryman
06-28-2013 05:00 PM
Hi Ryman,
You could take a look at the examples Current Loop - NI 9595, Position Control (closed loop) - NI 9505, or Velocity Control (closed loop) NI 9505 if you'd like to take a look at how PID is done in LabVIEW. You can get there by going to Help-> Find Examples in the LabVIEW environment.