Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

crio 9024 can not general higher than 10hz pwm

I use crio-9024 to general pwm signal.When the frequence is low(actually less than 10hz), it works fine. But, when the frequence is higher than 10hz, the pwm signal will be not accurracy. Worse more, when I set the frequence to 100hz, it will generate 10 hz signal.Hope somebody can help me!

0 Kudos
Message 1 of 8
(5,592 Views)

Capture.PNG

this is the program 

0 Kudos
Message 2 of 8
(5,573 Views)

@galaxy4444 wrote:

 

this is the program 


No, this is just a picture.

0 Kudos
Message 3 of 8
(5,538 Views)

Smiley HappyYes,it is a picture.Here is the code in the attachment.Would you give me some advice?

0 Kudos
Message 4 of 8
(5,534 Views)

see if your digital output card supports PWM specialty digital mode, you dont need to roll your own PWM. Also the timed loop should be synchronized to scan engine

0 Kudos
Message 5 of 8
(5,484 Views)
hi galaxy4444, I have read the program you published on the forum. The method you generate the PWM is not the optimal way. You may refer to the example in the attachment.
0 Kudos
Message 6 of 8
(5,435 Views)

Program Files (x86)\National Instruments\LabVIEW 2014\examples\CompactRIO\FPGA Fundamentals\Counters\PWM Generation

0 Kudos
Message 7 of 8
(5,433 Views)
Did you mean this example. I use labview2011, so I find this file in this directory. I try to add this vi to my project. But when I run this program, the wave it generates is unstable. Worse more, the parameter is also incorrect. Is it because my project is in scan mode not fpga mode? So appreciate for everyone's help!
0 Kudos
Message 8 of 8
(5,348 Views)