09-08-2015 12:54 PM
When there are no structures surrounding that particular section of code, there is nothing to stop it from running during all the loop iterations. A picture of it is included in my first message.
09-08-2015 12:57 PM
When there are no structures surrounding that particular section of code, there is nothing to stop it from running during all the loop iterations. My intention is to shut off that section of code when the user types "Hello". A picture of the program is included in my first message.
09-08-2015 01:03 PM
"When there are no structures surrounding that particular section of code, there is nothing to stop it from running during all the loop iterations."
This is when you use a case structure.
This is also why you have been asked to work through the tutorials.
Lynn
09-08-2015 01:06 PM
What do you what to happen when?
Tell us in details what the code should do, and in what order, and what deside the order.
I can figure out what part of the code you are refering to?
If you only what to run certain part of a code, then you should use the case structure.
Or better at state mashine is what you need.
09-08-2015 01:47 PM
I know the function of a case structure, and it dosn't the section of code it is surrounding for all while loop iterations. When a differing signal comes in it will change its case. When the user types "Hello", I want it to respond by shutting off that case for the entire run.
09-08-2015 01:48 PM
That is why I didn't use a case structure.
09-08-2015 01:49 PM
I know the function of a case structure, and it dosn't shut off the section of code it is surrounding for all while loop iterations.
09-08-2015 01:56 PM
That is exactly what a case structure is for.
Most likely you have wired the selector terminal to the wrong signal.
Please post your VI.
Lynn
09-08-2015 02:01 PM
A case structure does what you tell it to do, nothing more, nothing less.
You need to give more details of what you want.
What code do you need to have executed only at a certain condition and what is the condition?
09-08-2015 02:01 PM
Here it is.