05-14-2012 05:46 AM
A particular task has to be performed first then only permission is given to perform the next task?
Can it be performed on LabVIEW?
Solved! Go to Solution.
05-14-2012 05:51 AM
There is a lot of way to achieve this. Can you be more specific about what exactly do you want then its easy to provide a solution.
05-14-2012 06:22 AM
Say for Eg:-
If there are 3 experiments that I want to perform it should be the case that I should'nt be able to perform experiment number 2 unless and until I have performed experiment number 1.
That is, experiment number 3 cant be performed unless I have performed experiment number 1 & 2 before. If I try to break the order I should'nt be permitted.
05-14-2012 06:25 AM
You can do it in the state machine design pattern. Keep the 3 experiments in 3 states and make it as a sequence and the if any one fails you can come out of it. If they have to be individually tested then set status of the experiment complete in an LV2G (Global Variable) and check at the beginning of each experiment whether the pre-required test has been completed or not. If yes proceed No then stop the test.
05-14-2012 06:36 AM
I have done the first part of the solution provided by you.
I am not quite familier to the second part.
Can you please solve it with using a global vatiable.
05-14-2012 07:13 AM
LabVIEW ships with examples. You should look up the examples and search for the state machine structure. It will show you details on how to structure your code to allow for the exact process that you need to use to be successful. Try to look at that code and then come back when you have some code for us to review. This allows you to learn and us to guide you through how to use things properly.
We like it more when you have specific questions like I can not get this to work or I do not understand how this works...
I hope you help yourself so we can help you better.