08-02-2022 03:15 AM
I have a state machine which manages a process, which takes about 30 seconds to finish. I would like to add a http interface in order to start/stop/configure the process and distribute the results. The weather monitor example uses FGV in order to distribute data. Can I also put my state machine into a FGV?
08-04-2022 03:00 AM
Hi,
It would be great if you could attach your VI, to see what your state machine do and is it reasonable to make it an FGV.
08-08-2022 04:12 AM
I uploaded a version with global events. If there are more elegant solutions incorporating fgv, please let me know.
08-08-2022 07:03 AM
I can't look at your code, so i'll be general.
It depends. 🙂 Having a state machine as a sub-vi and calling different states is basically an Action Engine, which isn't uncommon. As long as the states themselves doesn't take too long it can be nifty to combine data and functions in the same VI and call it from different places. It's like a very light OO.