If you do a web search for "linear displacement transducer" you'll find loads of companies. I've never used them myself but I'm sure others on the forum or the Info-LabVIEW list can help further.
One final thought: if some back pressure is OK, and presumably it is a closed system whose volume you know, you could just measure the pressure and calculate the volume from the pressure rise?
