05-15-2012 12:18 AM
I have attached a VI SelectExpt.vi in which a user can perform experiments number 1,2&3.
But here I don't want to allow the user to move to experiment number 2 unless he/she performs experiment number 1 and so on.
How can I do this?
I am thinking of raising a flag to 1 when 1st experiment is performed & then to 2 when the user finishes the experiment number 2.
Is it the correct way?
05-15-2012 12:47 AM
Keep your questions in a single thread. Why are using Event structure are you performing the experiments within the event structure. How long an experiment will take. Setting the flag is a right idea but you need to execute the experiments inside a defined design pattern.
05-15-2012 01:02 AM
So sorry Sir for not keeping it in a single thread.
Event structure because I have placed a Sub VI of that experiment in a particular event.The experiment runs when the button related to that event is pressed.
There is no as such particular time for any experiment to run. I just don't want the user to move to experiment number 2 before performing experiment number 1 and so on.
05-15-2012 01:34 AM
I have made a quick example check it. (Expert please comment if it has flaws)
05-15-2012 04:21 AM
Thanks a lot it works good.
The only problem is that when the stop button was pressed it wasn't functioning properly the next time. The abort execution button had to be pressed. By just removing the OR gate and connecting the stop button to the stop if true condition that little error is removed.
05-15-2012 04:29 AM
Ok thats great. 🙂
05-15-2012 05:45 AM
Sir, one doubt - Queue's are used for sequential operation I mean one after the other. In this if I stop the experiment and then start it again I would have to begin from experiment 1 again. But what would you suggest for if I finish experiment 1 close the VI and then start it again I want to start from experiment 2?
For e.g. :- If I stopped at experiment 1 and when I start it again using queue I would have to start from experiment 1 again which already I have finished. Instead of experiment 1 I would want to start from experiment 2 then how can we do it?
Is there a way in which we can store something which goes 1 indicating that experiment 1 is completed? And then again when starting the VI I can start from experiment number 2 rather than starting from experiment 1again.
05-15-2012 05:48 AM
The corrent design will enable you to run all the experiment from the beginning whenever you close the software and start it again. If you want that to be saved then save the temp cluster to a .bin (or log file) and read it at the beginning of the software.
05-15-2012 11:39 PM
Sorry but I don't know how to do that.
Please can you help me with it?
05-15-2012 11:53 PM
Can you show me how to do it?