Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

NI 9476 FPGA

Hi all,

 

this is regarding the quality of PWM signals from a NI 9476 module. I have attached my FPGA vi as a reference. Note that the FPGA VI also includes data for another module used for PWM in the same project (NI 9472). Also note that in order to keep resources used at approproate levels I had to bind most of the channels (channels 09-30) of the NI 9476 to use the same frequency.. 

 

Here is the problem.

 

Firstly, channels 31 and 32 of the 9476 do not work at all. Independently of the frequency or duty cycle, the output on the o-scope is a constant 24v signal, no freq, no duty cycle.

 

For the rest of the channels that work, the signal is not of the best quality. More specifically, for channels 1 to 30, if I set the PWM frequency up to 200 HZ, the output signal is fair and I am getting pretty much what I want. The o-scope shows a square PWM signal with the correct frequency and correct duty cycle. However, if I increase the frequency further the signal begins to deteriorate. According to the specs of the 9476 module, its max speed is 0.5 ms or 2 kHz. If I set my PWM frequency at 2 kHz, my signal is not square at all and my duty cycle is 20-25% higher than my setpoint. 

 

Anyone who has any experience on why I get these problems, please help out a bit..

 

Regards

Harry

0 Kudos
Message 1 of 5
(5,150 Views)

Hey charmand79,

 

Reviewing what you have posted, are you able to run a the LabVIEW Example? From your post you mentioned that you don't get anything out of channels 31 and 32, do they work normally just not with your program. Can you control them independently? If you select just one channel do you get the correct output signal and range? Also what value are your pull down resistors in your circuit https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z000000P8gGSAS&l=en-US ?

 

BeauH
Applications Engineer
National Instruments
0 Kudos
Message 2 of 5
(5,134 Views)

Beau,

 

thanks for the reply. I have already tried using a pull-down resistor but it did not solve the problem. At the end of the day I consider channels 30 and 31 gone. They dont work in FPGA, nor in scan mode, not at all. This is a typical situation for an NI module. I mean, not working. Also, if you noticed from my message, the rest of the channels do not do what has been "described in the box". I mean that the PWM signal at the max specified frequency for the module is not a PWM signal at all. Another typical situation for an NI module. 

 

We have found a solution here.Stop using NI.

 

Thanks a lot for your effort though. Nothing personal.

 

Harry

0 Kudos
Message 3 of 5
(5,128 Views)

Hi

 

Have you checked the status lines to provide an indication of  any fault? Check the manual for further guidance.

 

Had a 'similar problem with a 9215 module, returned to NI and they confirmed  a faulty channel which was repaired.

 

Contact you r local sales office.

 

Regards

 

xseadog

0 Kudos
Message 4 of 5
(5,125 Views)

Hello, 

 

From the information in the post it appears that the channels "31 and 32" are damaged in some way and do need repair.  As for the frequency, the period is 1 mS (500 uS high + 500 uS low) so the frequency you can achieve is 1 kHz not 2 kHz.  Also the 500 uS propagation delay is a Max spec which means that the delay could be shorter than that (and typically is).  The delay can also vary between turning on and turning off which is why you see the differences in duty cycle. The NI 9474 is a much faster module that would be much better suited for applications such as PWM.  

 

Regards, 

Justin
National Instruments
Product Support Engineer - Conditioned Measurements
0 Kudos
Message 5 of 5
(5,070 Views)