Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • M mlib_devel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • ALPACA
  • CASPERCASPER
  • mlib_devel
  • Merge requests
  • !5

Avoid redundant VMC model validation

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Brett Hopkins requested to merge basmundhopk/mlib_devel:brett/rfsoc-vmc-avoid-revalidation into rfsocs/vmc-refactor Aug 19, 2026
  • Overview 0
  • Commits 1
  • Changes 1

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.

Edited Aug 20, 2026 by Brett Hopkins
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: brett/rfsoc-vmc-avoid-revalidation