pyvisa migration fixes

changed ask to query as recommended in
http://pyvisa.readthedocs.org/en/1.6/migrating.html