Prev: moving average
Next: local minimum
From: dan schott on 16 Apr 2010 12:03 "Uzumaki " <narutofan01234(a)yahoo.com> wrote in message <hq9hk5$hun$1(a)fred.mathworks.com>... > > > > 1. Yes, RTWT can handle 115200 baud. > > 2. Approximately, 1/100 = 0.01 s (r2007b, r2008a, r2008b) > > 3. Because USB is not real-time by design. > > 4. Follow the link http://www.mathworks.com/matlabcentral/linkexchange/links/2041-real-time-control-platform-for-matlab-and-simulink-dc-motor-control and also visit the website mentioned in the video http://zeltom.com/hilink.aspx. > > Hi Dan, thank you for your answer. > > According to your answer, 100 Hz seems to be the fastest frequency RTWT can handle (with RS232 communication). But basing on the information from Zeltom, their product can run at frequency 3.8 kHz (the product also communicates with PC via RS232 communication)? > > This information contradicts your answer, doesnt it? > > Uzumaki Uzumaki, No, it does not. The number I gave you is for RTWT. Their software allows such a high rate. They even have a different version that can achieve 1/15.2e3 = 65.7895e-6 s. Dan
From: Jan Houska on 18 Apr 2010 01:27 Hi, dan schott wrote: > "Uzumaki " <narutofan01234(a)yahoo.com> wrote in message > <hq9hk5$hun$1(a)fred.mathworks.com>... >> > > 1. Yes, RTWT can handle 115200 baud. >> > 2. Approximately, 1/100 = 0.01 s (r2007b, r2008a, r2008b) >> > 3. Because USB is not real-time by design. >> > 4. Follow the link >> http://www.mathworks.com/matlabcentral/linkexchange/links/2041-real-time-control-platform-for-matlab-and-simulink-dc-motor-control >> and also visit the website mentioned in the video >> http://zeltom.com/hilink.aspx. >> >> Hi Dan, thank you for your answer. >> >> According to your answer, 100 Hz seems to be the fastest frequency >> RTWT can handle (with RS232 communication). But basing on the >> information from Zeltom, their product can run at frequency 3.8 kHz >> (the product also communicates with PC via RS232 communication)? >> >> This information contradicts your answer, doesnt it? >> >> Uzumaki > > Uzumaki, > > No, it does not. The number I gave you is for RTWT. Their software > allows such a high rate. They even have a different version that can > achieve 1/15.2e3 = 65.7895e-6 s. Actually, the maximum sampling frequency for RS232 in Real-Time Windows Target is currently 500 Hz, not 100 Hz. Some improvement is planned for the next version, but not all kinds of RS232 hardware will be able to run at those higher speeds. 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: Uzumaki on 18 Apr 2010 04:32 Jan Houska <houska(a)humusoft.com> wrote in message <hqe58u$1vsk$1(a)ns.felk.cvut.cz>... > Actually, the maximum sampling frequency for RS232 in Real-Time Windows > Target is currently 500 Hz, not 100 Hz. Some improvement is planned for > the next version, but not all kinds of RS232 hardware will be able to > run at those higher speeds. > > 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 Hi Jan, thank you for your answer. Well, 500 Hz is enough for me. However, when you said that 'not all kinds of RS232 hardware will be able to run at those higher speeds', which hardware and speeds were you referring to? Another question is that: Since my laptop doesn't have any RS232 port, I intend to use an "ExpressCard to RS232" adapter to make one. In this case, will RTWT see and support this RS232 port like a real one? Regards, Uzumaki
From: Jan Houska on 18 Apr 2010 10:00 Hi Uzumaki, Uzumaki wrote: > Well, 500 Hz is enough for me. However, when you said that 'not all > kinds of RS232 hardware will be able to run at those higher speeds', > which hardware and speeds were you referring to? Any port that I know of should be able to run at 500 Hz. I was referring to the future enhancement that will enable some ports to run at speeds of 5 kHz and above. This will have to be the "natural" RS232 port, i.e. no emulation, no bridge, just the I/O port, usually present at address 3F8h (for COM1). > Another question is that: Since my laptop doesn't have any RS232 port, I > intend to use an "ExpressCard to RS232" adapter to make one. In this > case, will RTWT see and support this RS232 port like a real one? I don't have any experience with this adapter, but I'd guess it will be able to run at up to 500 Hz of sampling frequency. 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: dan schott on 19 Apr 2010 16:19
Hi Jan, Could you please tell me which versions of Matlab, Simulink and RTWT you are using to achieve 500 Hz? I am having difficulty even getting 100 Hz sampling rate with r2007b and r2008a. Thanks, Dan Jan Houska <houska(a)humusoft.com> wrote in message <hqe58u$1vsk$1(a)ns.felk.cvut.cz>... > Hi, > > dan schott wrote: > > "Uzumaki " <narutofan01234(a)yahoo.com> wrote in message > > <hq9hk5$hun$1(a)fred.mathworks.com>... > >> > > 1. Yes, RTWT can handle 115200 baud. > >> > 2. Approximately, 1/100 = 0.01 s (r2007b, r2008a, r2008b) > >> > 3. Because USB is not real-time by design. > >> > 4. Follow the link > >> http://www.mathworks.com/matlabcentral/linkexchange/links/2041-real-time-control-platform-for-matlab-and-simulink-dc-motor-control > >> and also visit the website mentioned in the video > >> http://zeltom.com/hilink.aspx. > >> > >> Hi Dan, thank you for your answer. > >> > >> According to your answer, 100 Hz seems to be the fastest frequency > >> RTWT can handle (with RS232 communication). But basing on the > >> information from Zeltom, their product can run at frequency 3.8 kHz > >> (the product also communicates with PC via RS232 communication)? > >> > >> This information contradicts your answer, doesnt it? > >> > >> Uzumaki > > > > Uzumaki, > > > > No, it does not. The number I gave you is for RTWT. Their software > > allows such a high rate. They even have a different version that can > > achieve 1/15.2e3 = 65.7895e-6 s. > > Actually, the maximum sampling frequency for RS232 in Real-Time Windows > Target is currently 500 Hz, not 100 Hz. Some improvement is planned for > the next version, but not all kinds of RS232 hardware will be able to > run at those higher speeds. > > 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 |