Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I ramp a pulse generation

I have been changing the duty cycle of a motor by generating a pulse signal.  When I change the duty cycle, the motor jumps to that duty cycle.  I would rather ramp the motor to the specified duty cycle.  Is this possible?

 

Here is the vi that I am currently using.  Thank you in advance for your help.

Ron Deavers, CLD
0 Kudos
Message 1 of 6
(4,804 Views)

Hi programmi...,

you can use a property node to change the duty. Look into your DAQmx.Create Channel.vi.

 

Hope it helps.

Mike

0 Kudos
Message 2 of 6
(4,796 Views)

I understand that I can do something like the picture but I still do not know how to ramp the duty cycle with the hardware.  I can probably use a for loop or while loop to increment the duty cycle until I reach the desired cycle.  I would like to know if the hardware can take care of that.

Ron Deavers, CLD
0 Kudos
Message 3 of 6
(4,778 Views)

Here is an example of the only way that I feel I can accomplish what I am trying to do.

 

Ron Deavers, CLD
0 Kudos
Message 4 of 6
(4,777 Views)
Hi programmindragon, I believe that you're headed in the right direction on this one. I can't think of any other way of slowly ramping up the duty cycle besides the way you have described. Please let us know if this is not a viable solution for your application.
S_Hong
National Instruments
Applications Engineer
0 Kudos
Message 5 of 6
(4,772 Views)
Hello S_Hong.  The solution that I illustrated is viable.  I was hoping that there is a way to have the hardware create a ramp.  Thank you both for your help.
Ron Deavers, CLD
0 Kudos
Message 6 of 6
(4,759 Views)