LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to perform reset operation after performing one operation??

Solved!
Go to solution

thank you very much i will defenetly take tutorial and learn it.

tahnks again.

0 Kudos
Message 21 of 36
(1,274 Views)

here i attached my llb.vi file in that Automatischer testablauf.vi is my main vi ,i have made some changes and try to implement case structure,will you please let me know is this method correct and still i am looking for Reset button ,how to implement that in my vi will you please guide me.

i want set function like when any one press Reset button then my vi reset at a time and user can start again by pressing start button again.

Thank you very much in advance...

0 Kudos
Message 22 of 36
(1,257 Views)
Solution
Accepted by topic author AnkitRamani

I am answering in German because it seems like that would be your language of choice.

 

Entschuldigen Sie bitte, dass die Antwort so lang gedauert hat, ich war leider nicht im Haus.

 

 

In Ihrem Projekt habe ich leider keinen Zustandsautomaten finden können.

Damit es etwas klarer wird habe ich Ihnen mal den Rohling für einen Zustandsautomaten programiert.

 

Das Programm ist beim Start im Leerlauf, bis ein Knopf gedrückt wird.

Startet man die Messung wird zuerst ein initialisierungszustand durchlaufen, in dem Sie ihre Messhardware vorbereiten können.

Direkt danach wird die Messung gestartet. Sobald diese durchgelaufen ist können Sie über den Reset Knopf in einem weiterem Zustand den Code einfügen um alles wieder zurückzusetzen.

 

In der Enum Typdefinition können Sie leicht weitere Cases einfügen, Sie müssen dann ledeglich noch die Array Konstante im Ruhezustand aufziehen.

 

Probieren Sie ersteinmal ein wenig mit diesem leichtem Beispiel herum, fügen Sie 1-2 leere Cases hinzu mit einer Message Box, damit Sie das System verstehen und fügen Sie dann nach und nach Ihren Code dort ein.

Ihr Vi scheint mir etwas zu umfangreich für ein erstes Projekt zu sein. Realisieren Sie ersteinmal eine Messung mit dem Zustandsautomaten.

 

 

Der reset Knopf lässt sich in Ihrer Programmarchitektur leider nicht verwirklichen.

0 Kudos
Message 23 of 36
(1,227 Views)

Thank you very much for reply..

actually i m confuse with that string operator.becase i m deling with different sub Vis , kind of power supply and GSM.

thats why i dont know how to make event structure for that.if i have to deal with one dialouge box to execute than its ok,but i am dealing with powersupply and GSM GPS,so which kind of input i have to give to event stucture that i dont know.

Ok i will try with this example.

actually my project is too long and even complicated for me as i am new user for labview.

but step by step i ll implement my vi according to you suggested.

thanks again.

0 Kudos
Message 24 of 36
(1,205 Views)

Hello,

I made changes as per suggestion but still its not working.

I want that when I press OK then process ll start form initialization case,but here its not possibilities when I press OK then its go for other state machine and same for reset also.

Will you please guide me that which kind of changes I need to do in order to have desired function.

Download All
0 Kudos
Message 25 of 36
(1,182 Views)

Es tut mir leid, aber ich verstehe ihre Frage nicht. Können Sie mir bitte Ihr Ziel das Sie verfolgen ausführlich auf deutsch erklären?

 

In Ihrem VI ist der Ok Knopf mit dem 3. Case verbunden, also er springt in den Case "3" (LGUTS GSM OK), danach geht er wieder in den initialize case. In die anderen kommt er nie.

Dies können Sie am besten verfolgen, indem Sie den Hightlightmode einschalten und genau verfolgen was in Ihrem Programm passiert.

0 Kudos
Message 26 of 36
(1,147 Views)

HI Felix,

 

one thing that i wnat to disable the post in which i have asked same questions.

and i followed as per attached vi.

and now everything working correctly but still I am looking for the Reset logic.

can you please tell me that how can i make reset logic so i can reset my vi at any time by pressing reset button.

Thank you very much for your kindly help.

0 Kudos
Message 27 of 36
(1,145 Views)

I have adapted your last VI.

 

Now it runs all cases consecutively.

Inbetween each case you can hold the program and decide if you want to start over from case 0 or continue with the next step. The program will wait untill you decide for one of either.

 

Now the VI should do what you wanted it to do.

Allthough I have to tell you, that allthough it will work its not a beautiful piece of programming.

 

If you have to work more with Labview I highly recommend you to visit a Labview Course.

The laerning curve is a lot higher than if you try to teach it to yourself.

http://www.ni.com/training/d/

 

 

0 Kudos
Message 28 of 36
(1,143 Views)

Thanks Felix,

I know ,that I am not good with labview..

and I am learnig it online as you suggested earlier...

but this is company project which i have to finish in limited time  thats why i was in hurry.

thanks again .i will try with attached vi.

But can you tell me that how can i do reset operation with attached vi,so atlist i learn some operation with event structure.

0 Kudos
Message 29 of 36
(1,141 Views)

hello,

can you please tell me that which kind of logic i have to use for to have reset event ,so i can reset my vi in  middle of execution.

i tried but i didnt solve this,i hope there is some simple logic for that.

thank you very much for kindly help ....

 

0 Kudos
Message 30 of 36
(1,119 Views)