I want to share a basic code for PWM control with a DC motor, through a Shield (L293 & L298).
I Use a DFROBOT Shield.
http://www.dfrobot.com/index.php?route=product/product&product_id=69#.UTkCM9GcHrs
My setup is Arduino uno R3, Labview 2010 on MacOS
Regards
Rafael
Mexico