Virtual instrument parameter calibration with particle swarm optimization