LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Select experiment

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?

0 Kudos
Message 1 of 14
(3,387 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 2 of 14
(3,381 Views)

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.

0 Kudos
Message 3 of 14
(3,373 Views)

I have made a quick example check it. (Expert please comment if it has flaws)

-----

The best solution is the one you find it by yourself
0 Kudos
Message 4 of 14
(3,363 Views)

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.

0 Kudos
Message 5 of 14
(3,344 Views)

Ok thats great. 🙂

-----

The best solution is the one you find it by yourself
0 Kudos
Message 6 of 14
(3,342 Views)

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.

0 Kudos
Message 7 of 14
(3,333 Views)

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.

-----

The best solution is the one you find it by yourself
0 Kudos
Message 8 of 14
(3,331 Views)

Sorry but I don't know how to do that.

Please can you help me with it?

0 Kudos
Message 9 of 14
(3,313 Views)

Can you show me how to do it?

0 Kudos
Message 10 of 14
(3,306 Views)