Thread Subject: XPC target , DC motor control using NI 6024E daq card

Subject: XPC target , DC motor control using NI 6024E daq card

From: Chavda

Date: 6 Aug, 2009 04:07:01

Message: 1 of 6

Hello,

I have succesfully installed and configured a target/host environment and succesfully tested a sample application using xpc target.My host/target environment works well.

Now I had like to control the speed of a Dc servomechanism using the NI 6024E daq card.Is this possible ? If yes can I get some basic pointers ?

I am trying to create a simuling model with PID controller and motor subsystem and then going to connect a simple DC motor to the DAQ card and try and control it.

Thoughts ? Advice ?

Subject: XPC target , DC motor control using NI 6024E daq card

From: Chavda

Date: 10 Aug, 2009 02:04:01

Message: 2 of 6

"Chavda " <a@weboptimizers.com.au> wrote in message <h5dkt5$57t$1@fred.mathworks.com>...
> Hello,
>
> I have succesfully installed and configured a target/host environment and succesfully tested a sample application using xpc target.My host/target environment works well.
>
> Now I had like to control the speed of a Dc servomechanism using the NI 6024E daq card.Is this possible ? If yes can I get some basic pointers ?
>
> I am trying to create a simuling model with PID controller and motor subsystem and then going to connect a simple DC motor to the DAQ card and try and control it.
>
> Thoughts ? Advice ?


Anyone >

Subject: XPC target , DC motor control using NI 6024E daq card

From: Awhan Patnaik

Date: 6 Sep, 2009 21:57:02

Message: 3 of 6

"Chavda " <a@weboptimizers.com.au> wrote in message <h5dkt5$57t$1@fred.mathworks.com>...
> Hello,
>
> I have succesfully installed and configured a target/host environment and succesfully tested a sample application using xpc target.My host/target environment works well.
>
> Now I had like to control the speed of a Dc servomechanism using the NI 6024E daq card.Is this possible ? If yes can I get some basic pointers ?
>
> I am trying to create a simuling model with PID controller and motor subsystem and then going to connect a simple DC motor to the DAQ card and try and control it.
>
> Thoughts ? Advice ?

I too am in a similar situation so I would very much appreciate if any of experienced user can post some hints.

thanks in advance

Subject: XPC target , DC motor control using NI 6024E daq card

From: RED STONE

Date: 18 Nov, 2009 16:51:04

Message: 4 of 6

"Chavda " <a@weboptimizers.com.au> wrote in message <h5dkt5$57t$1@fred.mathworks.com>...
> Hello,
>
> I have succesfully installed and configured a target/host environment and succesfully tested a sample application using xpc target.My host/target environment works well.
>
> Now I had like to control the speed of a Dc servomechanism using the NI 6024E daq card.Is this possible ? If yes can I get some basic pointers ?
>
> I am trying to create a simuling model with PID controller and motor subsystem and then going to connect a simple DC motor to the DAQ card and try and control it.
>
> Thoughts ? Advice ?

hi! I think it's possible to do it. You can find the special block for 6024E DAQ in the simulink target box. I remember that it's in the A/D---NI---6024E. I am donging the same thing now. So team work! thanks!!!
RED STONE

Subject: XPC target , DC motor control using NI 6024E daq card

From: filip

Date: 24 Nov, 2009 13:08:20

Message: 5 of 6

"RED STONE" <dlbuaa@163.com> wrote in message <he18ln$a0t$1@fred.mathworks.com>...
> "Chavda " <a@weboptimizers.com.au> wrote in message <h5dkt5$57t$1@fred.mathworks.com>...
> > Hello,
> >
> > I have succesfully installed and configured a target/host environment and succesfully tested a sample application using xpc target.My host/target environment works well.
> >
> > Now I had like to control the speed of a Dc servomechanism using the NI 6024E daq card.Is this possible ? If yes can I get some basic pointers ?
> >
> > I am trying to create a simuling model with PID controller and motor subsystem and then going to connect a simple DC motor to the DAQ card and try and control it.
> >
> > Thoughts ? Advice ?
>
> hi! I think it's possible to do it. You can find the special block for 6024E DAQ in the simulink target box. I remember that it's in the A/D---NI---6024E. I am donging the same thing now. So team work! thanks!!!
> RED STONE

Hi, have you tried real-time windows target, I had a similar problem, (not to measure and control velocity but position) and i solved it very easily from there. If you use matlab R2009a it should be very easy because it reads encoder (bidirectional counter) and it recognizes your pci-card. Hope i helped a bit :)

Subject: XPC target , DC motor control using NI 6024E daq card

From: filip

Date: 24 Nov, 2009 13:17:01

Message: 6 of 6

"filip " <bhaalspawn09@gmail.com> wrote in message <hegls4$bo0$1@fred.mathworks.com>...
> "RED STONE" <dlbuaa@163.com> wrote in message <he18ln$a0t$1@fred.mathworks.com>...
> > "Chavda " <a@weboptimizers.com.au> wrote in message <h5dkt5$57t$1@fred.mathworks.com>...
> > > Hello,
> > >
> > > I have succesfully installed and configured a target/host environment and succesfully tested a sample application using xpc target.My host/target environment works well.
> > >
> > > Now I had like to control the speed of a Dc servomechanism using the NI 6024E daq card.Is this possible ? If yes can I get some basic pointers ?
> > >
> > > I am trying to create a simuling model with PID controller and motor subsystem and then going to connect a simple DC motor to the DAQ card and try and control it.
> > >
> > > Thoughts ? Advice ?
> >
> > hi! I think it's possible to do it. You can find the special block for 6024E DAQ in the simulink target box. I remember that it's in the A/D---NI---6024E. I am donging the same thing now. So team work! thanks!!!
> > RED STONE
>
> Hi, have you tried real-time windows target, I had a similar problem, (not to measure and control velocity but position) and i solved it very easily from there. If you use matlab R2009a it should be very easy because it reads encoder (bidirectional counter) and it recognizes your pci-card. Hope i helped a bit :)

Hi, again i forgot to mention something,
Chavda to your original post:
firstly once you can read the position by deriviating the signal you get the velocity
secondly, you don't put the model of your motor in the mdl, only input output and the pid, (and saturation if needed). The model you have designed in simulink it is not needed at the rtwintgt because it's real-time and signals and voltages pass through the motor now. (all these if i understood correctly what you're trying to achieve).

Tags for this Thread

Everyone's Tags:

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Tag Activity for This Thread
Tag Applied By Date/Time
motion control filip 24 Nov, 2009 08:09:08
motor control Chavda 12 Aug, 2009 21:57:30
rssFeed for this Thread

Contact us at files@mathworks.com