Matlab

Moderators: None (Apply to moderate this forum)
Number of threads: 1471
Number of posts: 2147

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
pulse set Posted by tako_bell on 7 Apr 2009 at 7:15 AM
Hi, im using a triggered sub system, the system works when trigger pulse is 1 and don't work when pulse is 0.

My problem is that i dont know how to set a pulse of 1 of 0 with out using the pulse generator that gives me a random pulse, and this isn't good for my simulation (whether the pulse is 1 or 0 it dependent's on another sub system).


Any idea which block i should use?

Thank you.
Report
Re: pulse set Posted by giug on 7 Apr 2009 at 8:29 AM
You can try to use the switch block.
Report
Re: pulse set Posted by tako_bell on 7 Apr 2009 at 12:04 PM
How can i use a swich blook to out-put a 1 or a 0 pulse ?
Report
Re: pulse set Posted by giug on 8 Apr 2009 at 12:35 AM
I can't figure out very well your problem.

I try:

subsys1 (output 0 or 1) --> subsys2 (works if output is 1, doesn't work if it is 0).

I think that the output of the first subsystem is not random but depends on some conditions, it is right?
Please explain better your problem, so that I can try to help you.
Report
Re: pulse set Posted by tako_bell on 11 Apr 2009 at 9:42 AM
Thank you,
you gave me a new idea that worked.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.