03-17-2011 02:57 PM - edited 03-17-2011 02:58 PM
Using ABCPrograms response, I was able to contruct the following. It should do what I want. However, I am unsure how to update the cluster I am modifying. If someone can figure out how to apply these changes, we should have a solution to the problem. (Problem solved and kudos will be given!) I feel as if there should be another block after the Bundle by Name block.
03-17-2011 03:01 PM
How are you going to stop your VI? It's never going to with the run button outside the loop
03-17-2011 03:08 PM
mmm, According to me that VI can never work. Have you tested it? I don't get your constructions of the AND ports.
Which version of LabVIEW are you using? and have you tested what I did? The reaction of the VI is entirely different.
If you tell me which version you're using, I will convert it to your LabVIEW version and you can test mine 😉
03-17-2011 03:09 PM
@ABCPrograms wrote:
How are you going to stop your VI? It's never going to with the run button outside the loop
Ah, your right. Sorry, Im relatively new to this. What I want the Run button to ultimately do, is stop the while loop. I will then capture the current inputs, and run a specific python script based on the input. Also, after run is hit, I want to the VI to ignore any additional inputs. This is going to be the next step. For right now, I'm look for working input buttons. I'll worry about the rest later.
03-17-2011 03:11 PM
@ABCPrograms wrote:
mmm, According to me that VI can never work. Have you tested it? I don't get your constructions of the AND ports.
Which version of LabVIEW are you using? and have you tested what I did? The reaction of the VI is entirely different.
If you tell me which version you're using, I will convert it to your LabVIEW version and you can test mine 😉
I am using version 2010. What the and gates do is change the value of the buttons (pressed in or not) so that they dont violate the initial clauses i stated.
03-17-2011 03:11 PM
What was wrong with the VI I sent you?
03-17-2011 03:14 PM
Instead of having a button disabled, I want to unpress, or turn on the led for the buttons that violate the conditions I mentioned above. As an example, if I were to press detector station, and then manual storage button: Upon pressing manual storage, its light will go on, and the Detector Station light will go off.
03-17-2011 03:14 PM
@shultz58 wrote:
Using ABCPrograms response, I was able to contruct the following. It should do what I want. However, I am unsure how to update the cluster I am modifying. If someone can figure out how to apply these changes, we should have a solution to the problem. (Problem solved and kudos will be given!) I feel as if there should be another block after the Bundle by Name block.
A simple local variable will solve that problem.
However, as pointed out, the Stop button cannot be outside the loop.Once read, the original value is passed through the tunnel, and from that point on, that's all that the while loop sees. Basic dataflow. You need an event case for the Stop button. Be sure to place the button inside the event case.
The same holds true with the way you're tunneling the cluster, although in this case it doesn't affect you. The value of the cluster gets read and passed into the even structure. The event structure sits there waiting for an event. If the cluster is changed in the meantime, the event structure will not see the new value, as it's seeing the value of the tunnel as it was originally set when the event structure received execution focus. But, in your case this little nuance won't affect the operation.
Also, your Boolean logic doesn't make much sense. (A ^ B) ^ A is the same as A ^ B
03-17-2011 03:18 PM
@shultz58 wrote:
Instead of having a button disabled, I want to unpress, or turn on the led for the buttons that violate the conditions I mentioned above. As an example, if I were to press detector station, and then manual storage button: Upon pressing manual storage, its light will go on, and the Detector Station light will go off.
So now you don't want the buttons disabled?
Perhaps it would be best for everyone if you reiterated what you want. Please be clear.
03-17-2011 03:40 PM - edited 03-17-2011 03:44 PM
ok, so this is it. you don't want to use the disable buttons any more, but just want to ise the LED's
See solution in attachement. Normally we use VI snippet, but have no idea if you know what it is 😉