LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

change Linked Statechart in Front Panel

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

0 Kudos
Message 1 of 8
(3,164 Views)

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

0 Kudos
Message 2 of 8
(3,145 Views)

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.

0 Kudos
Message 3 of 8
(3,137 Views)

Hi GiHu,

 

could you please post your code or a screenshot?

 

Kind regards

Carsten

0 Kudos
Message 4 of 8
(3,113 Views)

the screenshot from the VI

0 Kudos
Message 5 of 8
(3,106 Views)

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

0 Kudos
Message 6 of 8
(3,084 Views)

@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

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 7 of 8
(3,080 Views)

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

0 Kudos
Message 8 of 8
(3,036 Views)