02-03-2011 11:22 AM
Hi, is it possible to change the linked synchron statechart from the front panel.
i have one parents vi and five statecharts. all these statecharts have different functions but all the same Input and Output-clusters.
A user should choose one of this statecharts and let it run. i don´t want that a user must open the block diagram so it is possible
to let the user choose a statechart like a file and link it to the vi
thanks
GiHU
02-04-2011 06:17 AM
Hi GiHu,
Are you using the statechart module or a statemachine architecture in LabVIEW?
Can you please post a small example whichs shows the behaviour?
Kind regards
Carsten
02-04-2011 07:20 AM
hi, i using the statechart module. on the left side of the main vi is the input-cluster on the right side the statechart module diagram display. in the display a user can see witch statechart he use. but a user must choose and linked the statechart in the block diagram. that´s not very comfortable.
02-07-2011 01:59 AM
Hi GiHu,
could you please post your code or a screenshot?
Kind regards
Carsten
02-07-2011 02:36 AM
the screenshot from the VI
02-08-2011 09:54 AM
Hi GiHu,
I'm really sorry but I still do not understand what exactly you want to do. It is possible to decide which state to use from the frontpanel, the condition could be the state of a numeric button or an enum.
What exactly does not work, are you unable to choose a specific state or something like that?
I saw that you're using a german LV so we could also write in german
Kind regards
Carsten
02-08-2011 10:32 AM
@CarstenS wrote:
Hi GiHu,
I'm really sorry but I still do not understand what exactly you want to do. It is possible to decide which state to use from the frontpanel, the condition could be the state of a numeric button or an enum.
What exactly does not work, are you unable to choose a specific state or something like that?
I saw that you're using a german LV so we could also write in german
Kind regards
Carsten
I read this request as...
I want to allow users of my application to track progress using the Statechart diagram. When the user selcts different sub-VI's the GUI should update to reflect the newly selected subVI.
Q to NI:
Can we use scripting to imbed the Statechart diagram (I suspect it is just a picture control wrapped-up in an XControl) in a LV FP?
Ben
02-16-2011 02:16 AM
At the moment there is no way to change the statchart in the Run Statechart.vi dynamically from the FP
I tired a lot around with scripting but found no way to do so
But you can use a Case Structure with multiple Run Statechart with different Statecharts. could this be an option for you?
Kind regards
Carsten