 mgtyper
		
			mgtyper
		
		
		
		
		
		
		
		
	
			10-03-2008 11:19 PM
I am trying to take a pulse trigger from a wave when it is higher than a value and latch a digital I/O "on".
Then take a pulse from a wave when it is lower than a different value and turn a digital I/O "off".
In other words switch a latching output from two different inputs.
Solved! Go to Solution.
 tartan5
		
			tartan5
		
		
		
		
		
		
		
		
	
			10-04-2008 06:46 AM
10-04-2008 03:47 PM
Here is a screen shot.
 dgholstein
		
			dgholstein
		
		
		
		
		
		
		
		
	
			10-04-2008 06:00 PM
 dgholstein
		
			dgholstein
		
		
		
		
		
		
		
		
	
			10-04-2008 07:56 PM
10-04-2008 10:14 PM
I looked at your screenshot and i think it wil work when greater then 0.6 or less than 0.3 but willnot stay latched between 0.6 and 0.3.
After it latches above 0.6 i want it to stay latched "true" until it goes down below 0.3 then stay latched "false" until it goes above 0.6 again.
like i said i just looked at it and did not run it yet but what do you think.
 dgholstein
		
			dgholstein
		
		
		
		
		
		
		
		
	
			10-05-2008 07:51 AM
That's exactly how it is wired (per your description) and you should try it yourself. You should wire a constant "false" to initialize the shift register, since whenever you reenter the loop, you can't be sure what the value will be (and I believe it uses the last value anyway).
BTW: Coding it took less time than posting to this forum
10-07-2008 09:41 AM
10-09-2008 09:48 PM
I am using a usb-6008 DAQ.
What i am tring to do is simulate a vehicle ECU and use the rich and lean signal to activate the oposite.
when it goes rich (above .6) send a latched lean signal. Whan it goes lean (below .3) change the latched lean signal to a rich signal.
I hope that helps to understand .
I was tring not to get to technical before and i think that was holding us back.
sorry...
 dgholstein
		
			dgholstein
		
		
		
		
		
		
		
		
	
			10-10-2008 05:17 PM
That's exactly how my logic works, you should actually try it, you'll find it works!
   ...Dan