LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple values rising & decaying to variable set point input

Solved!
Go to solution

In a part of a simulation system which I am trying to develop, I want to have a sub-vi that will receive the value input ( DBL ) & then if this value changes, let us say from 20 to 30 then the output should ramp up to 30 at a rate adjustable by a terminal on the sub-vi.

Like wise from this point onwards if the variable changes back to 20 then the value should now ramp down at the predefined rate.

 

Here is my attempt to do this as a part of an array of elements. This does not have to be an array at all.

I cannot seem to figure out the logic for ramping down.

 

Easier existing solutions must be out there. Help!

 

Vaishakh Chavan

0 Kudos
Message 1 of 2
(2,522 Views)
Solution
Accepted by topic author vaishakh.chavan@gmail.com

Sorry guys. Got this one figured out.

Here is the solution that i wanted & could not use the ramp function suggested in other posts.

Do get back...

 

Comments:

Use the uploaded vi as a sub vi, wire out the I/O's & then change the set point from a to b ( say from 10 to -30 ). Once the value ramps down ( or even as it is doing so ), change the set point from b to a or a'. ( -30 to 10 or -5 ).

 

Works fine for me.

0 Kudos
Message 2 of 2
(2,519 Views)