Thread Subject: running simulink at different frequencies

Subject: running simulink at different frequencies

From: cpp.matlab@gmail.com

Date: 12 Dec, 2008 16:10:54

Message: 1 of 2

Thank you very much for taking your time to look at my post.

In simulink. in a single model I have two hardware devices
1) Joystick (unknown sampling frequency)
2) An amplifier (you can choose sampling freq from 200-2000Hz) which
records emg while moving

How can I run this simulink model, with Joy stick at 100Hz and
Amplifier at 2000Hz per say?
Would it be easier, if put Joystick in a subsystem? Will frequency
handling of subsystems be easy?

Thank you very much for your time.

Best regards

Subject: running simulink at different frequencies

From: Vincent Morio

Date: 14 Dec, 2008 01:00:04

Message: 2 of 2

cpp.matlab@gmail.com wrote in message <58d522a7-e2d1-4732-8540-fbb3b46b2a01@t26g2000prh.googlegroups.com>...
> Thank you very much for taking your time to look at my post.
>
> In simulink. in a single model I have two hardware devices
> 1) Joystick (unknown sampling frequency)
> 2) An amplifier (you can choose sampling freq from 200-2000Hz) which
> records emg while moving
>
> How can I run this simulink model, with Joy stick at 100Hz and
> Amplifier at 2000Hz per say?
> Would it be easier, if put Joystick in a subsystem? Will frequency
> handling of subsystems be easy?
>
> Thank you very much for your time.
>
> Best regards

Hi,

I think the frequency changes can be easily handled by using a sequencer designed for instance with Simulink stateflow (similar to a flight sequencer). The simulation will run at the smallest frequency of your hardware devices and some functions calls will be performed at regular time intervals to monitor your devices.
Regards,
Vincent Morio

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
multiple time s... Vincent MORIO 13 Dec, 2008 20:05:07
simulink Vincent MORIO 13 Dec, 2008 20:05:06
rssFeed for this Thread

Contact us at files@mathworks.com