LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dc motor control using myDAQ

Solved!
Go to solution

Hi,

 

I'm building a DC motor control using myDAQ i have run into a couple of problem with the STOP button and the Max en Min speed. For some reason the waveform chart goes crazy i'm going to attach my  the VI file. 

 

Project description:

-An engine-ON-engine-OFF button
-A control for faster / slower
-A switch for left / right
-A button once maximum speed (100)
-A button once minimum speed (10)
-An indicator of the instantaneous speed (0 - stop, 100 maximum)
-An indicator for the direction

 

Could anybody tell me why it happens and how to solve the problem?

 

Thank you very much!

 

Best,

Istrael

0 Kudos
Message 1 of 3
(3,171 Views)
Solution
Accepted by topic author Istrael

Hi Istrael,

 

You are using up a lot of CPU resources by not including timing in your loop. I think your issues may be resolved if you place a "Wait Until Next ms Multiple" timer in your "pulsegenerate.vi" while loop. This will effectively half the load on your CPU if you set it to 1 ms!

 

Hope this works,

 

Paul

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

Hi iounathing i appreciate the reply it works better now i have fixed the start button issue and the crazy waveform chart.

I think i'm missing something after falling edge and rising edge (if statement?) because when i turn the speedmeter to "0" or "100" the waveform chart keep sending low an high pulse. I wan't a high steady pulse by "100" and low steady pulse by "0" and in between low / high pulse.

 

Regards

 

Sorry for my bad english i'm from Aruba.

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