06-15-2016 02:08 PM - edited 06-15-2016 02:19 PM
Hallo All,
I am student of Hochschule Ravensburg Weingarten and currently doing my scientific project on Controlling Techniques using labview(milking process). I am begginer in LabVIEW so facing few problems in that i need solution for one of my doubt which I am unable to solve from many days. That is,
Time constraint while working on my code. As per requirements i have 2 main conditions they are,
1. during 10s my code that is milking process should work.
2. next 20s it should do nothing. And same continous.
I tried in many ways to solve this problem but not able to reach the requirement. Could anyone please help me on this.
Attached my basic code which needs to work n 10s.
06-15-2016 03:14 PM
It looks like you have a good start to code that is based on a state machine architecture.
I would remove the outer case structure where that is True/False tied to the Milking boolean. That should just be factored into another state in your state machine.
As for your timing feature, you just need to use an Elapsed Time Express VI to determine when to transition from one state to the next. That additional state would be a "Do Nothing" state to go along with your "Milking" state.