Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Labview > Statechart Modu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 54236 of 56719
Post > Topic >>

Statechart Module - Is transition priority possible?

by tw80 <x@[EMAIL PROTECTED] > May 13, 2008 at 11:40 AM

I am using LabVIEW's Statechart Module to build a synchronus statechart
that is called within a Timed Loop from another VI. Within the statechart,
each transition is configured to occur on the NULL trigger, but can only
take place if its guard evaluates to true. I have a state that has 2
transitions out of it, where each transition has a different guard. Since
my Timed Loop executes relatively slowly (once every few seconds), it is
likely that both guards could become true between subsequent calls to the
statechart. If this happens, which transition will occur? Does LabVIEW
have some kind of priority that I can assign to transitions to ensure that
if multiple transitions are possible, a particular transition will execute
rather than another?I have attached a simple example that should
illustrate my point. In this example, if the statechart is in State 1, and
both Input A and Input B change from false to true within the same 3000ms
period, will Transition A or Transition B take place? More im****tantly,
how can I force a particular transitions to occur in these
circumstances?NOTE: The Run Statechart function in Example Caller VI.vi
may need to be re-linked to Example Statechart.lvsc by right-clicking and
selecting "Link to Statechart...".I would greatly appreciate it if someone
could shed some light on this subject. I have found nothing about this on
the web, but maybe I'm just not looking in the right place?


Example Caller VI.vi:
http://forums.ni.com/attachments/ni/170/323332/1/Example
Caller VI.vi


Example Statechart.lvsc:
http://forums.ni.com/attachments/ni/170/323332/2/Example
Statechart.lvsc
 




 3 Posts in Topic:
Statechart Module - Is transition priority possible?
tw80 <x@[EMAIL PROTECT  2008-05-13 11:40:07 
Re: Statechart Module - Is transition priority possible?
tw80 <x@[EMAIL PROTECT  2008-05-13 12:10:05 
Re: Statechart Module - Is transition priority possible?
aggieNick02 <x@[EMAIL   2008-05-13 12:10:05 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 19:02:54 CDT 2008.