LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need Help Implementing Ramp Function for Kikusui Electronic Load PLZ205W in LabVIEW

Solved!
Go to solution

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.

0 Kudos
Message 11 of 30
(287 Views)

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…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 30
(279 Views)

@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: 

snip.png

Or is it soemthing else that is not working. 



______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
0 Kudos
Message 13 of 30
(274 Views)

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. 

0 Kudos
Message 14 of 30
(257 Views)

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.

0 Kudos
Message 15 of 30
(255 Views)

@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

snip.png

______________________________________________________________
Have a pleasant day and be sure to learn Python for success and prosperity.
Message 16 of 30
(252 Views)

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) 

0 Kudos
Message 17 of 30
(222 Views)

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!?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 18 of 30
(217 Views)

Hi GerdW,

 

The ramp should be done one after the other, so there won't be any delay between them. Thanks in advance.

0 Kudos
Message 19 of 30
(211 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 20 of 30
(195 Views)