LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to perform reset operation after performing one operation??

Solved!
Go to solution

What do you mean by "reset"?

 

In the VI I sent you, you can pause the execution after each case and start over from the first case.

This is what I thought you want.

 

Please just rephrase youre question in German, so that I have a chance to anwer it.

 

 

If you need some code to be executed to rewrite some variables or turn the power back off, ... you have to enter a seperate case where you program that.

0 Kudos
Message 31 of 36
(899 Views)

Thank you for reply.

I want to add one reset button in my vi.
so user can reset execution(operation) at any time.
it means after testing one or two devices if user want to start operation again from begining then he can do by simply pressing reset button ,so no need to wait until one execution is finished.

 

 

(Ich möchte ein Reset-Knopf in meinem vi hinzuzufügen.

so dass der Benutzer kann die Ausführung (Betrieb) jederzeit zurückgesetzt werden.
es bedeutet, nach der Prüfung ein oder zwei Geräte, wenn der Benutzer den Betrieb wieder von begining wollen, dann kann er einfach durch Drücken Reset-Taste, so dass keine Notwendigkeit zu warten, bis ein Ausführung abgeschlossen tun.)

0 Kudos
Message 32 of 36
(896 Views)

Oh Im sorry, I thought you were German since the VI was in German.

 

Ok, so you basically want the "stop" "pause" button from the top toolbar?

That is not possible, since those tools are meant for developing programs, not to use programs.

 

The VI I gave you can be stopped inbetween each case, this is as good as its going to get. If you want the user to be be able to pause more often youll just have to add more cases.

 

When you press my pause button it will halt until you choose one of the following - just continue with the test or start over from the first case.

 

You still need to edit it a bit, so that after the last case the counter will be set to 0 again, but other than that it should run.

Message 33 of 36
(889 Views)

Thank Felix.,.

I am just working in German company as intern.

I made all changes according to ProducerConsumerEvents and now every thing is OK I can stop at any time and can do pause at any time.

I just want to add one reset button so I can do reset my vi at any time.

So will you please guide me that what kind of changes I have to do in  ProducerConsumerEvents this vi in order to have reset function.

Do you get me Reset means during execution by pressing reset I can reset my vi and execution again start from beginning (counter values reset to 0 ).

Will you please guide me that what kind of logic I have to use in order to have reset function.

0 Kudos
Message 34 of 36
(873 Views)

Oh, sorry.

 

I have added a case in the producer loop for the reset button. I then added another case in the consumer loop in which the queue is flushed, which resets the Vi.

 

Message 35 of 36
(871 Views)

Thank you very much Felix for your kindly help...

now every thing looking fine.....

thanks again....for your time.

0 Kudos
Message 36 of 36
(868 Views)