Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

pid position control

hello,
i am a new user for labview and i think that it will help me so much.
my application is to control the position of dc motor using pid controller.
i measure the position by an incremental encder 2500 pulse per revelution through the counter 0 of PCI-6036E, the control voltage (0 to +/- 10V) will go from the analoge output of the card to my dc motor controller card.
 
please send me a helpful example to do this application and explain ow to dajust the sampling rate (is it internal clock timed or external clock) to give an output analog voltage for each pulse from the encoder.
 
if my thinking about the application is rong please correct it.
 
 
thank you alot 
0 Kudos
Message 1 of 3
(3,347 Views)

Although it will possible to solve this task with a PCI-6036E, it would be a better choice to use a Motion Controller (with servo like PCI-7342). These boards are dedicated to this type of application and the onboard PID will allow a better performance of the control and make the development much easier.

 
0 Kudos
Message 2 of 3
(3,338 Views)
 Hello Yasser,

 There are PID examples in the Labview Example Finder. For this example, I will assume you are using Labview 8.0 or later, please correct me if you are not.
 To find the examples do the following:
    1. Run Labview.
    2. Click the "Find Examples" button on the Labview splash screen or in the Help menu click "Find Examples".
    3. Search for "PID"
    4. Find the "PID Control-Counter Input.VI"
    5. Select your Counter Input Physical Channel.
    6. Select your Analog Output Physical Channel.
    7. Select your Sample Clock Source (could be 2nd counter or other external source. could probably be internal timebase)
   
 The VI is now ready to run.
 
   It looks like that VI is set to give a output voltage dependent on the counter input as you requested.

   Best regards,

  MatthewW
  Applications Engineer
  National Instruments

0 Kudos
Message 3 of 3
(3,329 Views)