10-10-2015 07:47 AM
Hi everyone
I can choose the speed of my DC motor with labview, but I can`t find a way to only use an on off buttom.
I don`t want to choose the speed, I just want to have an on/off switch, but it doesen`t seem to be working pretty well.
Attatching two photoes the one with a knob works for controlling the speed, and the other one with the seitch dosen`t work.
best regards
10-10-2015 09:46 AM
I'm not sure about your circuit, but I'm guessing that the Speed Control involves sending pulses at a certain frequency to get the motor to turn. Have you tried sending pulses with a frequency of 0?
Another way to turn a motor On or Off is to put an "on-off switch" in it's Power Supply, i.e. have a Boolean connected to a pin capable of (probably via a relay) supplying the motor with voltage.
Did you look up the "Error Message" that you show in one of your pictures? This is not, in fact, an "Error" (notice the Status indicator is a Green Check, not a Red "X"), but is what LabVIEW calls a "Warning". In this case, it is informing you that it thinks you did a VISA Read but didn't get the "End of Message" character, so there may be more data that you haven't read.
I trust that you are going to do most of this School Project "on your own" (perhaps usinjg Web Searches for answers, rather than coming here to the Forum and asking us to help you at every little step) (unless, of course, you want to list all of us as "co-authors and collaborators" when you hand in the Project to your school).
Bob Schor
10-12-2015 09:36 AM
Instead of setting the pin to be a PWM output and using a numeric control.
Set the pin to be a digital output and use a boolean control.