added method to set spectrometer port through plot