04-02-2013 02:31 PM
Hi,
I am trying to find a cleaner way of doing the attached vi. In the vi I have booleans wired to case structures. If the boolean is false it sends a string to an array and into a dialog box.
Solved! Go to Solution.
04-02-2013 02:45 PM
Build the booleans into a 1-D array. Store the error messages in a 1-D array of strings.
Search through the boolean array in a loop. For each true, concatenate the corresponding error message onto the string.
04-02-2013 02:46 PM
Use an event structure.
Lynn
04-02-2013 02:50 PM
Think about the duplicate code, you have, and how you might eliminate 3 instances of it, and use the one remaining as a subVI to handle all the buttons. Also think about how those four buttons could really be an array of booleans that could be parsed with a for loop, with each indexed boolean feeding into that subVI.
04-02-2013 03:09 PM - edited 04-02-2013 03:10 PM
You need to learn to love that new conditional tunnel
04-02-2013 03:31 PM
Thanks Jeff,
Your solution was the most helpful, it did exactly what I needed.
Chris
04-02-2013 03:41 PM
Love that new tunnel!