xps_vmc_conf_mask.m runs during hardware platform-mask initialization and currently calls vmchub_set_param every time. The first VMC get/set operation initializes the VMC application and scans or validates the entire model, even when the selected hardware has not changed.
On the LFT3 spectrometer design, the first SelectHardware operation took approximately 394 seconds, making the model take around 7 minutes to open.
This change reads the hardware device already stored in the VMC Hub using get_param(vmchub, 'ProjDevice'). It calls vmchub_set_param only when that value is empty or differs from the platform block. This avoids unnecessary VMC validation when opening the model, editing the platform mask (without changing the hardware), or Ctrl+D.