It is currently Wed Feb 08, 2012 11:39 pm

All times are UTC



Welcome
Welcome to RHAPSODY4YOU

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, respond to polls, upload and download content, and access many other special features. Registration is fast, simple, and absolutely free, so please, register to join our community today.





 Page 1 of 1 [ 4 posts ] 
Author Message
 Post subject: event generation rate
PostPosted: Thu Feb 04, 2010 4:57 pm 

Joined: Wed Oct 07, 2009 5:12 pm
Posts: 3
Is there be a problem with generating an event each 1 millisecond?


Offline
 Profile  
 
 Post subject: Re: event generation rate
PostPosted: Thu Feb 04, 2010 8:33 pm 

Joined: Wed May 07, 2008 3:50 pm
Posts: 148
Location: Horsham, W Sussex, England
No, it can be done (dependent on your OS) but you might not want to use the tm() on a state machine since it isn't very accurate especially if your event freq is close to your System Timer (tick) freq.

http://publib.boulder.ibm.com/infocenter/rhaphlp/v7r5/topic/com.ibm.rhapsody.designing.doc/topics/rhp_t_dm_using_timeout_triggers.html?resultof=%22%73%79%73%74%65%6d%22%20%22%74%69%6d%65%72%22%20

You can also use OXFTDelay().

A potential problem would be that such a frequent tick takes considerable processing overhead with frequent context switching. I have used a 1ms tick but I wasn't generating an event on every tick.
An event is queued so you won't have a lot of time left to do anything else.


Offline
 Profile  
 
 Post subject: Re: event generation rate
PostPosted: Wed Feb 17, 2010 7:00 pm 

Joined: Fri Jan 16, 2009 2:02 pm
Posts: 14
Take care if you are using the tm() command to generate an event. There is a property that defines the minimal timeout for tm(). It's about 5 or 10 ms.

Roy


Offline
 Profile  
 
 Post subject: Re: event generation rate
PostPosted: Wed Feb 17, 2010 9:14 pm 
User avatar

Joined: Thu Sep 13, 2007 7:34 pm
Posts: 397
Location: London
tm should be read as time minimum. The point of it is that if nothing happens in a state then after that time, move on.

Using tm for 'scheduling' is convenient sometimes but not the intent.

I model a 'scheduler' that uses an 'accurate tick'. AccurateTick is an extension to Rhapsody's OSAL and the Scheduler is an extension to Rhapsody's OXF.


Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 4 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:


suspicion-preferred