Counter/Timer

取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 6 条)
4,847 次查看

Hi programmi...,

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

 

Hope it helps.

Mike

0 项奖励
2 条消息(共 6 条)
4,839 次查看

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 项奖励
3 条消息(共 6 条)
4,821 次查看

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

 

Ron Deavers, CLD
0 项奖励
4 条消息(共 6 条)
4,820 次查看
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 项奖励
5 条消息(共 6 条)
4,815 次查看
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 项奖励
6 条消息(共 6 条)
4,802 次查看