09-06-2012 03:31 PM
I am generating PWM's in Veristand through an FPGA. It works just fine as is and I can vary the duty cycle in the VeriStand workspace and it responds appropriately. Now I'd like to be able to vary the period of the PWM's without having to go back into the system def file to edit it. Is there a way to add a control to the workspace to do this or will I have program this to be done on the FPGA? My FPGA is close to max capacity so I need to try to minimize the amount of code I add to it (I'll be going through and doing some optimization once all features are working properly).
Thanks for the help.
09-06-2012 11:16 PM
09-07-2012 08:08 AM
That looks like it would work pretty well. I have one question though that maybe you can answer. Do you know if the square wave generator uses up more FPGA resources than say just the PWM Out subVI that I am using?
09-07-2012 09:03 AM
I've wondered that myself before.... I'm not sure. I'd have to do a test. Let me know if you find out
09-14-2012 08:16 AM
To kind of answer the question at hand... when I compiled my code with the square wave generators in place of the PWM Out subVI it it used slightly less resources on the FPGA. I can't be 100% sure if that was just due to the one change or some of the other changes I made as well, but it might be helpful to know/look into for future programs.