This utility captures a screenshot of the NI InstrumentStudio application using Windows APIs. It is intended for use in automated test workflows (e.g., TestStand, LabVIEW, Python) where visual evidence of instrument configuration or measurements is required.
Before invoking the screenshot utility, ensure the following:
- NI InstrumentStudio is already launched
- The required Instrument Soft Front Panel (SFP) is open and fully loaded
- InstrumentStudio is in a stable state (not during startup, shutdown, or dynamic reconfiguration)
- For multi-monitor setups, consistent display scaling is recommended for reliable results
⚠️ Note
The utility does not launch InstrumentStudio or open SFPs. It captures the current state of an already running InstrumentStudio session.
- The screenshot is captured from the currently open InstrumentStudio window
- The utility relies on Windows window-capture APIs and inherits their platform limitations
- In multi-monitor environments with different resolutions or DPI scaling, partial captures may occur
- Full-window screenshots are most reliable when InstrumentStudio is visible and not minimized
- Launch InstrumentStudio
- Open the required instrument Soft Front Panel(s)
- Configure the instrument as needed
- Invoke the screenshot utility from TestStand, LabVIEW, or Python
- The screenshot is saved to the specified output path