10-12-2012 08:37 AM
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
Solved! Go to Solution.
10-12-2012 09:09 AM
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
10-12-2012 09:47 AM
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.