03-06-2014 04:59 PM
Hi Guys,
I am trying to control the direction of an electric motor from Labview, the motor's direction varies from 0V-10V. I am using NI myDaQ, can anyone please help me out with some sort of VI to do this. I really need your feedback on this, thanks.
03-06-2014 09:49 PM
Well, you can't connect LabVIEW to a motor. You need a DAQ card to output the 0-10V to connect to the motor. What DAQ card are you using?
Then you can use LabVIEW to control that DAQ card. If you are using an NI card, then you can use the DAQmx drivers to control the card. There are numerous examples installed with LabVIEW that demonstrate how to use DAQmx.
03-06-2014 11:51 PM - edited 03-06-2014 11:52 PM
03-07-2014 07:04 AM
Hi Manni,
There are some great resources here http://www.ni.com/white-paper/11213/en/#LabVIEWwithNImyDAQ
Have a look at these, they should provide you with a good starting point for writing your program.
Regards
03-07-2014 11:31 AM
Hi RavensFan,
I am using NI myDAQ, the electric motor I have is connected to a motor driver
03-07-2014 11:35 AM
Hi IanS,
Thanks a lot for the link, can I use a Daq assistant (analog out) to control the motor or must I use DAQmx ?
03-07-2014 12:06 PM
If you just need a simple voltage out either will work but you're far better off starting with a DAQmx example and actually learning to code than you are relying on an assistant that hides the underlying functions. Plus the fact that you can get more help here with DAQmx since the experienced coders avoid the DAQ Assistant, Express VIs and Dynamic DataType. They're kind of like riding with training wheels or swimming in the baby pool.
03-07-2014 12:34 PM
Hi NIquist
I appreciate your reply, this is part of my project. For the first part I built a VI for measuring temperature using a PT100, I also want to control the polarity of an electric motor. This Electric motor will control the position of a damper. SO what I want to do is that when I get my motor rotating either ways, I can control the psoition of the damper depending on what set point I have for my temp measurement.
1. can one use DAQ assistant to measure temperature and Daqmx in the same program ?
I have also attached my temperature reading VI to this so u can see.
03-07-2014 01:02 PM
03-07-2014 01:33 PM
I don't use the DAQ Assistant so I don't know much about it other than it has limitations and is designed for noobs. I assume you'll need two since that's two different tasks in DAQmx. I still suggest you open an appropriate DAQmx example and then modify it to suit your particular needs. Then, when you need to do more advance applications you'll be ready.