Tuesday, February 06, 2007

Find-and-Replace Editing for Cosmos Files

I have all of my training files set up the way I want, all loaded into the Cosmos, and when it comes time to get on the trainer I just punch one up and ride. That's all well and good until I did another ramp test on Friday. The good news is that the ramp test is up 6%. The bad news is that all of my training files need to be redone to account for the power increase.

One of my favorite workouts is 60 minutes of 15 seconds at critical power (high wattage work effort) followed by 15 seconds of recovery. For those that don't do division in their heads quickly, that's 120 work intervals I need to change (assuming I leave the recovery wattage alone) either in the Tacx PC software, or on the head unit itself. Mmmm, I think not. Took me long enough to enter that workout the first time, I'm not redoing it.

That's the extreme example. I've got plenty of workouts with eight or sixteen intervals for which I need to change the wattage. None of which I care to do by hand (though I've already done some just to get by). What is needed, and I can't be the only one, is a mass edit tool to go into a set of files, and anywhere it finds X wattage, change it to Y.

I write software by trade, so this is doable. The file formats are documented over at Whitepeak.org, it's just a matter of sitting down with Visual Studio for an hour or so and hammering it out. We'll see how bored I get this weekend.

No comments: