04-19-2015 03:54 AM
how can i do that when the comprasion is true then restart the whole code?
04-19-2015 06:49 AM
04-19-2015 07:50 AM
I'm not sure what is wrong, but I could not get either of your two VIs to open (using LabVIEW 2014) -- it was as if they were not LabVIEW code (basically nothing happened, no error, no message).
I just figured it out. Both programs have a name that ends with the letter "o" with a tilde on top -- in my Windows 7 machine, the file shows up on my disk with a normal size, but if I try to open it with, say, a "read anything Text editor", no bytes appear. Deleting the final "o" fixes things. I'll be right back ...
Bob Schor
04-19-2015 08:03 AM
OK. Your main routine is Matek esõ, which calls your sub-VI to do some stuff. Your main routine has a Stop button, which stops it.
What do you want to have happen? Do you want two buttons, one that says "Restart", and one that says "Quit"?
The question of restarting your routine seems fairly simple. You need to think about how to (re-) initialize things, as you use uninitialized Shift registers and some outputs that might need initialization. You'd put the initialization code outside of Matek's While loop, and wrap all of that in a second While loop that handles whether or not you Quit or Restart. [I'm sure you have figured out that you leave the current Matek loop if the user pushes either Quit or Restart, if you are using the two-button idea, and exit the outer While only if Quit is pushed. Think what doing this means for the Mechanical Action of Quit.]
Bob Schor
04-19-2015 08:12 AM
Tanácsos elkerülni magyar karakterek használatát file nevekben, ahogy a példa is mutatja, problémákat okozhat.
Erősen ajánlom neked az online hozzáférhető oktató anyagok tanulmányozását, meglátod sokat fog segíteni:
https://decibel.ni.com/content/docs/DOC-40451
A "Looking for free training" résznél találod!
Üdvözlettel,
04-19-2015 08:20 AM
Jó reggelt. For those whose Hungarian is even more limited than mine (I just exhausted half of my vocabulary), I think Blokk was suggesting using the on-line Tutorials for LabVIEW. A very good idea, worthy of a kudo.
Bob Schor
04-19-2015 08:24 AM
sorry about that 🙂 I love to use my language, whenever I have a chance 🙂
04-19-2015 09:16 AM
No problem -- now, if the Original Poster has a very detailed question and isn't sure how to express it in English, he (or she) knows there is a fellow Magyar out there listening ...
BS