Hi NLquist,
I am new to LabVIEW and I am still trying to understand the loop structure in LabVIEW. I am able to ramp up to a particular value with a loop but I am finding it difficult to implement ramping down after ramping up and to make it constant for a while. It will be a big help if you could provide an example.
Hi Varghese,
@Varghese89 wrote:
I am able to ramp up to a particular value with a loop but I am finding it difficult to implement ramping down after ramping up and to make it constant for a while.
A ramp is defined by
y := slope * time + offset
Simple math, right?
With correct slope/offset values you can implement any kind of ramp: rising (slope>0), falling (slope<0), steady-state (slope=0). All you need to do is defining slope/offset as arrays and calculate one ramp after the other…
@Varghese89 wrote:
Hi NLquist,
I am new to LabVIEW and I am still trying to understand the loop structure in LabVIEW. I am able to ramp up to a particular value with a loop but I am finding it difficult to implement ramping down after ramping up and to make it constant for a while. It will be a big help if you could provide an example.
you can define the down ramp like this:
Or is it soemthing else that is not working.
Hi GerdW,
Thank you for your reply. I understand the ramp function but I am facing difficulty in implementing these one after other. I need to wait till the ramp up function is completed to give ramp down function inputs and I want to execute them continuously. I am in my learning phase and sorry for the confusion.
Hi Jay,
As I mentioned earlier, I can't find that Ramp pattern by delta function. It requires additional add-ons. Thank you for your response.
@Varghese89 wrote:
Hi Jay,
As I mentioned earlier, I can't find that Ramp pattern by delta function. It requires additional add-ons. Thank you for your response.
Try this
Hi Jay,
Thank you for the support. I have already implemented a ramp function but I need to give values simultaneously. For example, now i have to change the inputs after every iteration. Is it possible to give all the ramp inputs earlier
(like first ramp from 0 - 100, then from 100 - 50, then 50 -0)
Hi Varghese,
@Varghese89 wrote:
Is it possible to give all the ramp inputs earlier
(like first ramp from 0 - 100, then from 100 - 50, then 50 -0)
Sure, you can define all the ramp parameters at any time you like!
@Varghese89 wrote:
I have already implemented a ramp function but I need to give values simultaneously.
What exactly do you understand by "simultaneously"?
The ramps should be done one after the other or in parallel!?
Hi GerdW,
The ramp should be done one after the other, so there won't be any delay between them. Thanks in advance.
Hi Varghese,
@Varghese89 wrote:
The ramp should be done one after the other, so there won't be any delay between them.
You can create your waveform (or sample array) with all needed data and then start the output loop to iterate over all those samples.
When that waveforms contains samples for more than one ramp then you have fulfilled your requirement…