LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Call VI with statechart

Solved!
Go to solution

Hi all,

 

I have an application wich command a 3D helicopter.

I want to developp a statechart application which test engine, then test encoder and finnaly lauch the VI which command the helicopter.

How can i call a VI with a state of the statechart?

 

Does a statechart can be used in RT applications ?

 

BR,

Vincent

0 Kudos
Message 1 of 6
(2,517 Views)

Yes, Statechard can be used in RT.

 

Inside of a state (after you double-click on it) you will have a block diagram.  The functions pallete will be available to you so you can click Select a VI and find the VI you want to add.

 

Check out this link: http://zone.ni.com/devzone/cda/tut/p/id/6194

Chris
Certified LabVIEW Architect
Certified TestStand Architect
Message 2 of 6
(2,510 Views)

Tank you for your support PackerFan,

 

1) I want to run two parallel execution but i didn't manage to do it. There is a tool call "Fourche" but i can't use it.

2) Is there a way to test my application which necessit a cRIO (FPGA Soft) without my application nearby me. A way to simulate the FPGA target and the cRIO ?

 

Regarding other statechart soft, i found LV statechart really hard to get used to it.

 

BR,

Vincent

0 Kudos
Message 3 of 6
(2,493 Views)

Two Statecharts in parallel, or two states in parallel.

 

If it's two states, they need to both be in a larger state.  Check out the screenshot of the diagram I attached (sorry, the browser I'm using right now won't allow me to place it in the post).

 

I don't know of any way to simulate the cRIO without having it there.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 4 of 6
(2,486 Views)

Thanks PackersFan,

 

Is there a way to enable or disable a VI in a state ?

For instance, in the first state I enable VI 1

when first state executes the VI 1 opens and runs. If I don't exit it by myself, is there a way to switch off the VI 1 in state 2 ?

 

BR,

Vincent

0 Kudos
Message 5 of 6
(2,479 Views)
Solution
Accepted by topic author Vincent90

It's just LabVIEW programming, so things like case structures and controlling VIs by reference are all available to you.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 6 of 6
(2,471 Views)