LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Schmitt Trigger

Hello,
 
I like to do a Schmitt Trigger function with the VI in the attachment. I use LV 6.0.
 
Current function:
x <= 991             LED on
x >= 1008           LED on
991 < x < 1008   LED off
 
Desired function:
change over from x = 1007 to x >= 1008 LED on and by decreasing values LED on till X >= 1006
 
 
                        <___________________       LED on
                        |              |
                        |              | 
____________|______>|                               LED off
1000            1006       1008
 
Any ideas?
 
 
Regards
ThomasD
Message 1 of 20
(13,401 Views)
If LED=OFF and value = 1007 then LED = OFF
If LED=ON and value = 1007 then LED = ON
If value => 1008 then LED=ON
if value =< 1006 then LED = off
0 Kudos
Message 2 of 20
(13,391 Views)

Is there some text missing in your post? If not, yes, this is what I want to do but how to realize?

0 Kudos
Message 3 of 20
(13,384 Views)
I don't have LabVIEW 6 installed but here is a picture.
Message 4 of 20
(13,376 Views)

Hi Odd,

thanks for your answer, that´s what I want.

I have modivied the VI, so there are now hysteresis for an upper and a lower value.

 

Regards ThomasD

0 Kudos
Message 5 of 20
(13,325 Views)


@ThomasD wrote:
                        <___________________       LED on
                        |              |
                        |              | 
_____________|_______>|                              LED off
1000            1006       1008

One simple translation into LabVIEW code is shown in the attached image.
 

Message Edited by altenbach on 12-20-2005 01:14 AM

Message 6 of 20
(13,318 Views)
Nice and simple!
0 Kudos
Message 7 of 20
(13,303 Views)

Thanks a lot for yor design i think you help a lot of people

0 Kudos
Message 8 of 20
(11,228 Views)

Hi,

I would appreciate it if you can help here. I want to use Schmitt Trigger in my design. I am using a USB-1208FS DAQ to convert the analog signal from ultrasonic sensor to digital (0-5V). I used two digital output ports in the DAQ, each port work individually (0-5V). I calibrate the sensor to get the distance. I used the calibration equation in labview to get the distance. The threshold I am looking for is the heights of plants (0-6 inch is weeds), (6-12 inch is plants). So, less than 6 inches is weeds, and greater than 6 inches is plants. How can I use the Schmitt Trigger to control the digital output ports? Attached is the VI I am working on. Thanks

0 Kudos
Message 9 of 20
(9,657 Views)

Mazin,

 

It probably would have been better to start a new thread than to tag on to one that is 8 years old.

 

Have you tried the code that altenbach suggested?  It is not completely clear what you want the Schmitt trigger to do. How much hysteresis do you want?

 

Lynn

0 Kudos
Message 10 of 20
(9,642 Views)