LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to lock the random values?

Solved!
Go to solution

Hi all,

 

 I want my pressure input in range of 250 to 280 values...i.e. mV input is coming to LV via cFP..I converted that to 280 by mathematic manipulations. 

now I want that if values goes above 280, it should give 280 as a constant value and if values moves down to 250 according to mV, it should give constant output 250 despite of incoming values..

 

Can anybody guide me?

 

Thanks

Vaibhav Gandhi
,
B.E. Instrumentation & Control,
INDIA
0 Kudos
Message 1 of 7
(3,641 Views)

For example, use 'In range or Coerce' from Comparison palette.

 

Coerce.jpg

Message Edité par J.DECHET le 01-12-2010 12:01 PM
0 Kudos
Message 2 of 7
(3,639 Views)

"In range or coerce" returns the boolean value,..

i need upper/ lower limit as an indication..

 

sorry i m not getting

Vaibhav Gandhi
,
B.E. Instrumentation & Control,
INDIA
0 Kudos
Message 3 of 7
(3,635 Views)
Solution
Accepted by topic author Vaibhav G

a simple complement to previous but to adapt to your needs:

 

CoerceAndLimits.jpg

0 Kudos
Message 4 of 7
(3,627 Views)

Hi Vaibhav,

 

you should read messages more carefully!The output in the first answer is clearly not a boolean (it's a double)...

And by reading the context help for "In range and coerce" you would see that it provides 2 output values...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 7
(3,610 Views)

Hi sorry, but i ve got such at first try..

 

anyways thanks for advice...

Vaibhav Gandhi
,
B.E. Instrumentation & Control,
INDIA
0 Kudos
Message 6 of 7
(3,604 Views)
You can mark J.DECHET's post as soution.
Shreyas Hebbare
Shreyas Technologies
India
0 Kudos
Message 7 of 7
(3,579 Views)