05-06-2008 12:09 PM
05-06-2008 12:24 PM
05-06-2008 12:45 PM
05-06-2008 03:16 PM
Sounds like you are trying to control a relay from labview.
If so, the answer is no.. there's nothing existing like that, but you can create your own solution.
For instance, we controlled a set of 3 small relays by using the parallel port. Simply writing a high or low value on the appropriate line would open or close the relay. However, you have to look at the specs of the relay and make sure it does not overload your port.
RayR
05-07-2008 09:29 AM
05-07-2008 09:38 AM - edited 05-07-2008 09:39 AM
OK... oops... I was thinking of an actual relay.
Do a search on "Functional Global Variables". It should allow you to accomplish what you are trying to do.
You are trying to retain the last value and use it again. If so, and if you already have a loop, then the Shift Register is the way to go.
Or.... am I completely misunderstanding everything??
I'm basing it on this comment: (The Case Structure does not allow to link one side to the other in a blank Case frame without any purpose. If it does the desired relay control can be easily done.)
05-07-2008 09:50 AM
I'm a bit confused too. You can't have a wire connected at some point and disconnected at another. With of a case statement, you have to pass something out of each case. It can be the last value as Joe mentions with a shift register or it can be some constant. There is the express Relay that either passes a signal or an empty one. Whatever you have processing the signal, can be setup to detect and act on the data. Another option - whatever you have processing the signal, you could place that inside the case statement.
Post your code so someone can see exactly what it is you are trying to do.
05-07-2008 10:58 AM
05-07-2008 11:58 AM
OK.. I think you need to understand LabVIEW architecture. People always overcomplicate something that can be done much more simply. You may not even need a single property node. If you have a large while loop that encloses your code, then you can put one (or many) shift register on it. Store the latest value in that wire. A shift register is placed by right-click on the right or left edge of a loop and selecting Shift Register.
Can you describe in the simplest terms what you are trying to do? Have you worked with state machines before? ie done a diagram..
If you have a User Interface and would like to change states based on pressing a particular button, then an Event Structure is the way to go. You can have a case foto handle each of the individual buttons and any other state change that affects the function of your software.
RayR
05-07-2008 12:54 PM
Joe,
what is case foto? Could you please make a short example of using it to handle different event triggers? How can a case foto know which event/control sent over a TRUE?
Thanks!