From 12:00 AM CDT Sunday, October 17 - 11:30 AM CDT Sunday, October 17, will be undergoing system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.


Showing results for 
Search instead for 
Did you mean: 

Problem with Frequency and duty cycle on FPGA using an NI 9505

Go to solution

I'm having a problem with my FPGA code which is controlling a NI 9505 H bridge module. The problem is It's not acting like I would expect it to. The Square wave generator does not seems to be taking in my two variables for duty cycle and frequency. I'm new to LabVIEW and FPGA, so I'm sure the problem will be obvious. I just can't seem to figure it out. I've attached a screen shot of the code, as well as, the code it self.

0 Kudos
Message 1 of 5

you have wired integer values into a fixed point input.

0 Kudos
Message 2 of 5

When I change those variables to fixed points I still get the same results.

0 Kudos
Message 3 of 5

delete your controls.  go into the express VI and set the values as you would like them.  close the express vi.  create constant on the terminal of the express vi to observe the value that they expect for that terminal.  a value of .5 in duty cycle but the frequency is probably not what you expect it to be.

0 Kudos
Message 4 of 5
Accepted by topic author truby

Thanks for the help. My problem was I did not edit my variables to follow the wave generators requirements. I had to have unsigned fix point data with 32 bit word length and 0 bit int word length as inputs instead of the default values for fix points.

0 Kudos
Message 5 of 5