Timing for a DAQ motor controller?

조회 수: 2 (최근 30일)
Alasdair McAndrew
Alasdair McAndrew 2017년 9월 8일
답변: Brandon Eidson 2017년 9월 11일
I am trying to help somebody with this - this is way out of my own domain of knowledge. What we want is some way of sending pulses to a DAQ-controlled motor; the frequency and duration of the pulses to be set by the user. We have two options: setting a timing (say 0.1 second on, 0.1 second off, for 2 minutes) and pressing "Run" (from a GUI), or simply entering a frequency (as before), pressing "Run" to start and "Stop" to finish. We've played around with "timer" and got ourselves very confused, and then we started peering into the Data Acquisition Toolbox. We can certainly start the motor from our GUI, although sending a Stop signal to a running process seems to be more difficult.
Anyway, I'm sure this sort of thing has been done before - can anybody give me advice on finding either examples of this, or material which would be helpful?
Many thanks, Alasdair

답변 (1개)

Brandon Eidson
Brandon Eidson 2017년 9월 11일
Hello Alasdair, I understand you are wanting to control a motor using MathWorks products.  However, without more details about your problem, it is hard to provide detailed answers (E.g., Are you wanting to use MATLAB or Simulink?  What DAQ and motor are you using?  Are you open to other hardware to control the motor?   Is this GUI part of some software shipped with your hardware or is this already a MATLAB GUI).
But there is definitely some general direction I can provide.  There are multiple examples on MathWorks's website showing different ways to communicate with hardware.  The below list is not exhaustive.
I also highly recommend reviewing the functions and blocks in the Instrument Control Toolbox .  There are several general purpose hardware I/O there that might suit your application.

커뮤니티

더 많은 답변 보기:  Power Electronics Community

카테고리

Help CenterFile Exchange에서 Electromechanical에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by