05-01-2018 08:20 AM
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.
Solved! Go to Solution.
05-01-2018 01:45 PM
you have wired integer values into a fixed point input.
05-01-2018 02:19 PM
When I change those variables to fixed points I still get the same results.
05-01-2018 02:46 PM
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.
05-02-2018 09:23 AM
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.