Thanks swamptooth, that got me going.
I've found another way that doesn't need an extra midi track though.
In Amplitube3 context click on whatever you want to control (Volume or wah pedal) and then "assign automation" and select one of the "Param" 1-16 slots.
Now open the automation lane on the audio track, select Amplitube3 to control, then the "ParamX" that you assigned, then click the area in the automation lane that shows the current value, context click and select "remote control" click learn and move the expression pedal and it now works using only the original midi track.
Just enable the write automation button to start recording, but the assignment works even when write enable is not on.