03-30-2012 07:42 AM
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
Solved! Go to Solution.
03-30-2012 10:10 AM
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
04-03-2012 09:31 AM
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
04-03-2012 10:19 AM
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.
04-04-2012 02:57 AM
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
04-04-2012 10:10 AM
It's just LabVIEW programming, so things like case structures and controlling VIs by reference are all available to you.