LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Output Voltage Ramps

Hi guys.
 
I am fairly new to labview. I am trying to build up a user interface for a machine.
I have the majority of what I want to do completed.
However I am trying to add some extra functionality, and I am not really sure what way to go about it.
 
I have a slide 0-10V scale on my front panel. This is being written to the aO0 on the 6071E card.
 
When I press a "Ramp Down" button. I would like this output to ramp from whatever value it is at on the slide, to zero, over a certain period.
I was looking at the ramp block, but am not really sure how to use it.
 
Thanks.
 
 
0 Kudos
Message 1 of 5
(3,105 Views)
I am doing something similar to this now. What is the time frame for the ramping and how many points will be involved? In my case the time frame is about one point per second over hours. I generated the equations of the line segments as a function of time. At each update, I enter the current time into the equation and generate the appropriate value. If this would be of use to I can probably extract the relevant portions for you.

Lynn
0 Kudos
Message 2 of 5
(3,094 Views)

Hi.

Thanks for the reply.

The time frame would be a ramp down over about 20 seconds or so, using 10 points.

What you are doing sounds quite similar, are would be very useful.

Regards

Kevin

0 Kudos
Message 3 of 5
(3,089 Views)
Kevin,

The attached VI, Display.2.vi (LV 7.1), is the one I am working on. These are subVIs to a much larger project and have not been extensively tested or documented yet. The user can enter a start voltage and then endpoint voltage and slope or time for each straight line segment. For your application substitute the slider for the start voltage and set the end voltage to zero. Just use one segment and one cycle.

This generates an array with all the values but you could obtain point by point values from the In Range and Coerce node.

Hope this is of some help to you.

Lynn
0 Kudos
Message 4 of 5
(3,080 Views)
Thanks Lynn.
 
Sorry for the late update.
I have stdied your VI, and was able to build a simplier version for my appliaction.
 
Best regards
 
Kevin
0 Kudos
Message 5 of 5
(3,052 Views)