To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI enables/disables the screensaver in Windows
Description
This VI uses the Windows Registry functions in LabVIEW to write values to the ScreenSaveActive Key. The VI opens a reference to the Desktop sub key in the Windows registry, then write values to the ScreenSaveActive Key according to the boolean value provided by the user pushing the Screensaver Control. Finally, the VI closes the desktop sub key in the Windows registry
Requirements
LabVIEW Full Development System 2012 or compatible
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange. **
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hello,
This VI is proved very useful to me.
But while developing it by myself, I stumble upon Enum constant block.
I am not able to connect my Enum constant block with write to registry block.
Kindly help what configuration I have to take care of while connecting these two blocks.
Thank You,
Jatin Patel
Jatin,
The Read (And write) Registry Value Simple vis are polymorphic. The selector terminals are not visible by default, but you can right click and change that under "Visible items". For write, you probably want to select the U32 case if you're using an enum as the type of data.
Hope this helps.