10-13-2008 04:52 PM
Sorry Dan
I am having trouble getting your diagram implemented.
Here is what i have so far.
10-13-2008 07:03 PM
Skip the "initialize" control, the values should be the only thing latching and unlatching the signal (I remember what I said). You should also get rid of that sub-VI between the "or" and the"high" and "low" indicators.
Also, what are "y" and "y 2"? Are those the real threshold values? If so, get rid of the constant (.6 and .3) threshold values, it's getting confusing.
...Dan
10-14-2008 03:59 PM
have cleaned it up like you asked but ihave broken line.
how is it using data and boolean at the same time?
It looks like that is my problem, eh.I
10-14-2008 08:25 PM
Can't see it, I'm at LV 7.1. Anyway, keep it simple, keep the logic as boolean only -- forget the "data"
...Dan
10-15-2008 11:32 AM - edited 10-15-2008 11:33 AM
This code should also do the trick (I've attached the VI saved in LV 8.6):
The case structure that Dan mentioned in post #4 will work as well--just showing another way to implement the latch using boolean logic.
-John
10-15-2008 01:37 PM
I agree, it's a better way than what I had called out -- with the case structure.
...Dan
10-27-2008 10:49 PM
thank you
that worked just fine