LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Statemachine Eventlist

Solved!
Go to solution

Hi all

thanks for you post  ! Action engine sound interessting, but i have allready the statemachine  similar to this in the  attachment  in a case structure, so i should add to every state another internal state (init, write, close)? 

THere are some example how to do this?

Thank you very much

Martin

0 Kudos
Message 11 of 24
(730 Views)

An action engine is simply a VI that is designed to perform a single task very the same way with little vairation. In your case the action engine would take in the time, currently entering state of the state machine and the file to which you wish to log the data. Once you have this VI working all you need to do is slot it in the beginning of your various states so that it records the new state before performing any action within the state. 

0 Kudos
Message 12 of 24
(723 Views)

 so basically i will create a vi with three cases and a new state in my state machine so every time i change the state the state machine gets first in the action engine state writes the state and timestamp into a file and then continuous?

0 Kudos
Message 13 of 24
(713 Views)

Hi,

 

these AE are also called FGV (Functional Global Variable).

 

Regards,

 

Philipp

0 Kudos
Message 14 of 24
(700 Views)

@Wendler wrote:

Hi,

 

these AE are also called FGV (Functional Global Variable).

 

Regards,

 

Philipp


Yes and no, i make the distinction that a FGV only has get/set functionality, making it a data storage or a Global variable as a VI. An AE can be more advanced, as in this case writing to disk and having more states, basically making it a 'light object'. Not all agree with me on this distinction though. 🙂

 

/Y

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

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 15 of 24
(693 Views)

Hi,

 

yuo should use the AE/FGV like the attached example (LV 2013)

 

Philipp

0 Kudos
Message 16 of 24
(692 Views)

Hi Yamaeda,

 

yes you're right.

I allways call it a FGV for data storage or something like a logfile generator.

You normaly should differ these functions.

 

Regards,

Philipp

0 Kudos
Message 17 of 24
(690 Views)

Hi all,

 

thanks a lot for your help and the examples thats great. 

I tried using this example but i get an error 1 code in closing the txt file "AN input parameter is invalid" someone has an idea what could be the reason for this and how i could fix it.

Thanks again 
Martin

Download All
0 Kudos
Message 18 of 24
(669 Views)

You need to call the Open File case of that Action Engine before your loop.  And also make sure you call the Close case after the loop.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 19 of 24
(663 Views)

Hi crossruiz,

thanks for your fast answer! opening the text file works now i create the header but i am still stocking how i could implement the vi into my application. I think i wired something wrong implementing the vi as the operation state is not changing.

Martin

Download All
0 Kudos
Message 20 of 24
(654 Views)