It might be worth grabbing one of the SCP (Scale With Parameters) AOIs from the Rockwell Sample Code Library. You would put the input minimum and maximum in raw data counts (not sure what kind of analog card you have, but could be -16383 min, +16383 max for example) and output minimum and maximum (-0.5 min and 0.5 max) and it should handle itself.