From: Mark on
Jan Houska <houska(a)humusoft.com> wrote in message <hu9ve9$2p2v$1(a)ns.felk.cvut.cz>...
> Hi Mark,
>
> Mark wrote:
> ... <snip>
> > The data is coming in constantly and looks like this:
> >
> > 00353X 00421Y 11250Z, and there is no end of file (unless i plug out my
> > device). Ideally I would like to do my analysis after each bunch of XYZ
> > but I am forced to fill a buffer and do the analysis on that. This
> > buffer takes about 15 seconds to fill and is very difficult to determine
> > what instances of time the data occurs at. Is it possible to do this or
> > is it possible to display the coms data the way it soes in real term?
>
> It is easy to do this with Real-Time Windows Target Packet Input and
> Stream Input blocks if you are willing to switch from MATLAB code to
> Simulink block diagram. You may want to check the "rtpacketio" and
> "rtstreamio" demos, they do more or less exactly this.
>
> Jan
>
>
> --
> Jan Houska HUMUSOFT s.r.o.
> houska(a)humusoft.com Pobrezni 20
> http://www.humusoft.com 186 00 Praha 8
> tel: ++ 420 284 011 730 Czech Republic
> fax: ++ 420 284 011 740

I cant seem to find these demos. Do you have a link for them?

Mark.
From: Jan Houska on
Mark wrote:
> Jan Houska <houska(a)humusoft.com> wrote in message
> <hu9ve9$2p2v$1(a)ns.felk.cvut.cz>...
>> Hi Mark,
>>
>> Mark wrote:
>> ... <snip>
>> > The data is coming in constantly and looks like this:
>> > > 00353X 00421Y 11250Z, and there is no end of file (unless i plug
>> out my > device). Ideally I would like to do my analysis after each
>> bunch of XYZ > but I am forced to fill a buffer and do the analysis on
>> that. This > buffer takes about 15 seconds to fill and is very
>> difficult to determine > what instances of time the data occurs at. Is
>> it possible to do this or > is it possible to display the coms data
>> the way it soes in real term?
>>
>> It is easy to do this with Real-Time Windows Target Packet Input and
>> Stream Input blocks if you are willing to switch from MATLAB code to
>> Simulink block diagram. You may want to check the "rtpacketio" and
>> "rtstreamio" demos, they do more or less exactly this.
>
> I cant seem to find these demos. Do you have a link for them?
>
> Mark.

Do you have Real-Time Windows Target installed? This can be verified by
"ver". If yes, you should have these demos. Otherwise you would probably
have to ask for a trial.

Jan

--
Jan Houska HUMUSOFT s.r.o.
houska(a)humusoft.com Pobrezni 20
http://www.humusoft.com 186 00 Praha 8
tel: ++ 420 284 011 730 Czech Republic
fax: ++ 420 284 011 740
From: Mark on
Jan Houska <houska(a)humusoft.com> wrote in message <hub1s3$3po$1(a)ns.felk.cvut.cz>...
> Mark wrote:
> > Jan Houska <houska(a)humusoft.com> wrote in message
> > <hu9ve9$2p2v$1(a)ns.felk.cvut.cz>...
> >> Hi Mark,
> >>
> >> Mark wrote:
> >> ... <snip>
> >> > The data is coming in constantly and looks like this:
> >> > > 00353X 00421Y 11250Z, and there is no end of file (unless i plug
> >> out my > device). Ideally I would like to do my analysis after each
> >> bunch of XYZ > but I am forced to fill a buffer and do the analysis on
> >> that. This > buffer takes about 15 seconds to fill and is very
> >> difficult to determine > what instances of time the data occurs at. Is
> >> it possible to do this or > is it possible to display the coms data
> >> the way it soes in real term?
> >>
> >> It is easy to do this with Real-Time Windows Target Packet Input and
> >> Stream Input blocks if you are willing to switch from MATLAB code to
> >> Simulink block diagram. You may want to check the "rtpacketio" and
> >> "rtstreamio" demos, they do more or less exactly this.
> >
> > I cant seem to find these demos. Do you have a link for them?
> >
> > Mark.
>
> Do you have Real-Time Windows Target installed? This can be verified by
> "ver". If yes, you should have these demos. Otherwise you would probably
> have to ask for a trial.
>
> Jan
>
> --
> Jan Houska HUMUSOFT s.r.o.
> houska(a)humusoft.com Pobrezni 20
> http://www.humusoft.com 186 00 Praha 8
> tel: ++ 420 284 011 730 Czech Republic
> fax: ++ 420 284 011 740

I have the Real-Time Workshop.
From: Ankit Desai on
"Mark " <grealzer(a)hotmail.com> wrote in message <hub4bq$jm9$1(a)fred.mathworks.com>...
> Jan Houska <houska(a)humusoft.com> wrote in message <hub1s3$3po$1(a)ns.felk.cvut.cz>...
> > Mark wrote:
> > > Jan Houska <houska(a)humusoft.com> wrote in message
> > > <hu9ve9$2p2v$1(a)ns.felk.cvut.cz>...
> > >> Hi Mark,
> > >>
> > >> Mark wrote:
> > >> ... <snip>
> > >> > The data is coming in constantly and looks like this:
> > >> > > 00353X 00421Y 11250Z, and there is no end of file (unless i plug
> > >> out my > device). Ideally I would like to do my analysis after each
> > >> bunch of XYZ > but I am forced to fill a buffer and do the analysis on
> > >> that. This > buffer takes about 15 seconds to fill and is very
> > >> difficult to determine > what instances of time the data occurs at. Is
> > >> it possible to do this or > is it possible to display the coms data
> > >> the way it soes in real term?
> > >>
> > >> It is easy to do this with Real-Time Windows Target Packet Input and
> > >> Stream Input blocks if you are willing to switch from MATLAB code to
> > >> Simulink block diagram. You may want to check the "rtpacketio" and
> > >> "rtstreamio" demos, they do more or less exactly this.
> > >
> > > I cant seem to find these demos. Do you have a link for them?
> > >
> > > Mark.
> >
> > Do you have Real-Time Windows Target installed? This can be verified by
> > "ver". If yes, you should have these demos. Otherwise you would probably
> > have to ask for a trial.
> >
> > Jan
> >
> > --
> > Jan Houska HUMUSOFT s.r.o.
> > houska(a)humusoft.com Pobrezni 20
> > http://www.humusoft.com 186 00 Praha 8
> > tel: ++ 420 284 011 730 Czech Republic
> > fax: ++ 420 284 011 740
>
> I have the Real-Time Workshop.

Mark,

You can also try changing the following demo to fit your needs:

http://www.mathworks.com/matlabcentral/fileexchange/27290-collect-and-plot-data-from-a-tcpip-server-in-real-time

HTH,

-Ankit
From: Jan Houska on
Mark wrote:
> Jan Houska <houska(a)humusoft.com> wrote in message
> <hub1s3$3po$1(a)ns.felk.cvut.cz>...
>> Mark wrote:
>> > Jan Houska <houska(a)humusoft.com> wrote in message >
>> <hu9ve9$2p2v$1(a)ns.felk.cvut.cz>...
>> >> Hi Mark,
>> >>
>> >> Mark wrote:
>> >> ... <snip>
>>
>> >> It is easy to do this with Real-Time Windows Target Packet Input
>> and >> Stream Input blocks if you are willing to switch from MATLAB
>> code to >> Simulink block diagram. You may want to check the
>> "rtpacketio" and >> "rtstreamio" demos, they do more or less exactly
>> this.
>> > > I cant seem to find these demos. Do you have a link for them?
>> > > Mark.
>>
>> Do you have Real-Time Windows Target installed? This can be verified
>> by "ver". If yes, you should have these demos. Otherwise you would
>> probably have to ask for a trial.
>>
>> Jan
>>
>> --
>> Jan Houska HUMUSOFT s.r.o.
>> houska(a)humusoft.com Pobrezni 20
>> http://www.humusoft.com 186 00 Praha 8
>> tel: ++ 420 284 011 730 Czech Republic
>> fax: ++ 420 284 011 740
>
> I have the Real-Time Workshop.

Real-Time Windows Target is a separate product, please see
http://www.mathworks.com/products/rtwt . So you will have to ask for the
trial.

Jan


--

--
Jan Houska HUMUSOFT s.r.o.
houska(a)humusoft.com Pobrezni 20
http://www.humusoft.com 186 00 Praha 8
tel: ++ 420 284 011 730 Czech Republic
fax: ++ 420 284 011 740