06-03-2007 03:38 AM - edited 06-03-2007 03:38 AM
Message Edited by hyenah on 06-03-2007 03:41 AM
Message Edited by hyenah on 06-03-2007 03:48 AM
06-03-2007 07:22 AM
06-03-2007 12:38 PM
Mike made some valid points, however he did not really address your question about creating a 2D array to save the data.
Here's my quick take on things:
Attached is my quick attempt at a cleanup. Maybe it can give you some ideas. 🙂
(Sorry, I canont test because of missing subVIs and hardware. There might be bugs. Modify as needed. Let me know if anything is not clear.)
06-03-2007 02:00 PM
06-03-2007 02:39 PM
06-03-2007 03:08 PM
@hyenah wrote:
altenbach, what do you mean put the save operation in a loop? The only thing I can think of is to say, put it in a 2-count for loop so it prompts you twice -- except how would you avoid getting prompted again if you did save it correctly the first iteration?
mikeporter, this is probably a simple question, but how do you show terminals and functions just as icons?
You could for example place a small case structure inside the default case of the existing case. Use the wire from the stop button and OR it to a [save] button so it goes true when you press the stop or save button. In the TRUE case, place the save operation and cancel the stop if the save operation encounters an error.
Actually, I would remove the "stop on idle" functionality, because the VI does not really do anything expensive. Just keep it running and stop it manually when needed.
To show terminals plainly, right-click the terminal and uncheck "view as icon".