LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

state machine, fgv and webservice

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?

 

Actor Framework
0 Kudos
Message 1 of 4
(1,022 Views)

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.

0 Kudos
Message 2 of 4
(974 Views)

I uploaded a version with global events. If there are more elegant solutions incorporating fgv, please let me know.

Actor Framework
0 Kudos
Message 3 of 4
(942 Views)

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.

 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 4 of 4
(930 Views)