LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to run multiple motors using NI 9501 in parallel

Solved!
Go to solution

I want to run three motors at the same time using NI 9501 c series module and compac rio 9074 with the in built example of open loop velocity control..

what all I need to change in code...I actually copied the same fpga code and change the module setting..motors are working but for motor 2 when i try to disable its drive it disables motor 1..do I need to change something in RT code too??

0 Kudos
Message 1 of 3
(2,364 Views)
Solution
Accepted by topic author SaraBaber

Hi SaraBaber,

 

Thanks for posting. You will need to modify both the FPGA code and the Real Time code. In the FPGA code you should copy the contents of the drive status loop another 2 times (It is not necessary to make another 2 while loops, simply make the while loop bigger to include the extra code) and changing the modules to modules 2 and 3. Similiarly for the RT code, you can copy the existing code another 2 times wiring the extra two paths to the same 'Open FPGA VI Reference' and 'Close FPGA VI Reference'. You will also have to update the Read/Write controls for the second and third motor.

 

I hope this helps!

 

Paul

Applications Engineer

NI UK

0 Kudos
Message 2 of 3
(2,304 Views)

done.thanks alot

0 Kudos
Message 3 of 3
(2,299 Views)