340 Chugging instead of Reving

Ok so now we kinda know your cam timing is close. Have you tried locking out the distributor at some arbitrary number like 32 (because it will start, run, drive and be perfectly happy there for a test) to eliminate any kind of advance problem?