|
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
|