11-27-2012 02:05 PM
Hi,
I am a rookie on compactRIO and LabVIEW. Currently I am trying to use NI 9478 to control a DC-DC converter. Here is my problem:
Can I generate a 20KHz PWM using NI 9478(with a minimal resolution of 1024)? How? Since NI 9478 does not support single-cycle timed loop(SCTL). I am really stuck.
Thank you very much!
Goffy
PS: RT Controller: cRIO 9024 Chassis: cRIO 9114
11-28-2012 03:41 PM
Hi Goffy,
You can generate the PWM using the FPGA of the cRIO with the NI 9478 module. I recommend that you use one of the examples that ships with LabVIEW. You can access the example finder by going to Help > Find Examples. Then go to Hardware Input and Output > CompactRio > FPGA Fundamentals > Counters > PWM. The example "PWM Out, Simple - cRIO.lvproj" has an example of how to do this. It will have to be modified for your application.
I hope this helps!
Regards,
Dayna P.
Applications Engineer
National Instruments
11-28-2012 09:13 PM
9478 has an update rate of 20 Khz. you will not be able to use this module to generate a 20 KHz PWM signal.
use one of the high speed digital modules.
11-28-2012 09:14 PM
Hi, Dayna
Thank you very much for your reply! I have figured out this problem. Turn out that NI 9478 can generate 20KHz PWM, as long as the duty cycle is in the range of (1/8~7/8) (approximately!). I have tested that the upper limit frequency for the NI 9478 is around 150KHz, which means that the state change of NI 9478 can never be faster than 1/150KHz=6.66us. Wished that I had ordered NI 9474 instead of NI 9478.
Best wishes,
Goffy
11-28-2012 09:20 PM
Hi, Stu McFarlane
Thank you very much for your reply! I have learned this in a hard way. I have ordered a NI 9474 today, hopeing it would not disappoint me.
Best regrads,
Goffy