07-25-2009 03:13 AM
Thanks Raven, careless mistake on my part. The program is running fine now.
However, based on the edited program how am I going to run the program without stopping? The reason is that this program is to move left to right and be fully automated until I press the stop button. Right now the program moves to the left, I press the continue button , it moves to the right and stops.
The reason that I've used flat sequence initially was to have the program run fully automated without stopping but I was faced with a dilemma when an error occurs, I'm not able to stop the sequence. With the program that J.DECHET gave, now I have a better understanding on how to implement error treatment. But I am still stuck with running the program without stopping.
To answer Norbert B I did considered the security features for hardware and human if should an error occurs in the program. I've made an emergency switch to terminate data transfer from the program to the model.
I still have a few more questions, hope you guys could help me.
1 - I still would need to run the program without stopping but how do I implement the existing DAQ Assistants to accomplish a fully automated model?
2 - How would I implement Producer/Consumer to the program? I do not have good knowledge on LV, however I still would need to learn more about it so that I may implement it into the program. I've read the help on NI for this but I'm still not sure, so any help on this would definitely help.
Thanks!
07-25-2009 04:04 AM
07-25-2009 04:12 AM
07-25-2009 10:23 AM
The architecture you are looking for is a state machine. Look under File/New... for a template of it, or search the forums.
It is the appropriate architecutre if you are looking to execute a series of commands, but also have the ability to change the order of execution during run time, or skip states all together under certain conditions such as errors.