LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to control a DC motor in a simulation loop??

Hi,
 
I am Xiaofei, a beginner of LV. We plan to use feedback control on 2 DC motors using Simulation loop. Now the question is: i am not quite sure if the simulation loop is only a virtual simulation of the system, or it can be used to control the real system. We will use 2 encoders to detect the actual postion of the motor shafts, and the decoding code works well in a while loop, as the attached VI. But we don't know how to make it work in a simulation loop. Whenever we put it in a simulation loop and click "run", there's no response  no matter what we do on the system. So if you know, could you tell me if the simulation loop is suitable for our application and what we can do to run the encoders in it? Thanks a million!! 
 
Xiaofei
0 Kudos
Message 1 of 2
(2,522 Views)
Hi Xiaofei,

Thanks for posting on the NI forums!  We ask that you only post questions once, rather than in two different places. Please refer to the link below for the continuation of this issue. 

how to control DC motor in a simulation loop??

Thank you!
Maclean G.
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(2,498 Views)