Text this: Design and simulation algorithm for cam system analysis