11-09-2006 08:39 AM
11-09-2006 09:49 AM
11-10-2006 05:59 AM
Ah, this meets some problems... since is important code for us I cannot send it as it is. If I find time I can take away some parts and then sent it to the forums for comments.
I thought that maybe the problem that the whole labview program gets stuck is a common problem, with at general solution.
Ola
11-10-2006 08:14 AM
Sorry Ola but LabVIEW getting stuck is not a common problem to LabVIEW but it is common for people just starting out in LV. Just as a suggestion use a statemachine type of coding style instead of a sequence structure they are much more robust and more easily upgradeable, you can also just put it in a while loop and link the error in and error out clustes together and then you code will run sequentially also. If you think it is the button that is giving you problems try changing the mechanical action. We cannot help you much more without some more info. What version of LV are you using?
Please post a simplified version of your code.
11-10-2006 09:26 AM
"I thought that maybe the problem that the whole labview program gets stuck is a common problem, with at general solution."
There is a general technque for dealing with this kind of problem.
The "tools" palette has stopsign and "p" in a yellow circle that you can use to set breakpoints and look at values during execution. They can be used to figure out which frame you're hanging up in, and then where within the frame, and then why.
11-13-2006 07:07 AM
11-13-2006 07:36 AM
11-13-2006 08:02 AM
11-13-2006 09:07 AM
11-13-2006 10:19 AM - edited 11-13-2006 10:19 AM
As I said it is just a rough example are you saying that you want to be able to stop it at anytime?
once you get the state machine set up you can make it run however you want. You can break out of any state. In the example I used for loops and you cannot get out of these until they are complete. But in yours you can use while loops with some conditions to break out of them. Do a search on the forums for more on the statemachine type.
Message Edited by Jhoskins on 11-13-2006 11:26 AM