LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Schmitt Trigger Analog Input

Hello, I am trying to develop a simple code (or at least I hope it to be simple) which triggers a led depending on the temperature (with hysteresis).

 

The temperature measurement is done by reading the analog voltage from a diode (its a simple project from school).I read the voltage of the diode (which is around 0'61 V) and i filter it. then i use the V = S*(T) + b formula from the Diode sensibility to get the temperature formula, so I put it on Labview.

 I then made an attempt to make this hysteresis with some comparators (i attach photos) but my proffesor said that was not it, so i had to try another thing. I have been searching a lot and i dont know what else to do, I have never used labview before and i have verry little knowledge of electronics. Please helpimage.pngimage (1).png

0 Kudos
Message 1 of 4
(652 Views)

We can't run or debug images. Please attach your code instead.

Besides, what hardware are you using? Your code seems to be not reading or writing to any hardware.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 4
(609 Views)

Let's use this names :

 

  • SL : signal level
  • HT : high threshold
  • LT : low threshold
  • CS : current state (True/False or High/Low, let's use T and F)

 

The hysteresis can be implemented like this :

 

  • CS = T :
    • SL < LT : CS becomes L
    • SL >= LT : CS remains T
  • CS = L :
    • SL > HT : CS becomes H
    • SL <= HT : CS remains L

 

You will need a While Loop, a Shift Register (CS) and a Case Structure. Let us know if you need further help.

0 Kudos
Message 3 of 4
(595 Views)

Here is an example showing the suggested method.
Sorry for the mix up between L/H and T/F in the description.

 

Hysteresis example.png

0 Kudos
Message 4 of 4
(580 Views)