Open ciozi137 opened 3 weeks ago
I think the easiest way is to have a picture control with your image, make sure the background color of the control is transparent. Then with a property node you can set the "Visible" property to False when the user is controlling it locally, and True when the script is controlling it remotely.
For an example, in the lithography program property UI subpanels (ie path edit), we do this to hide the buttons for the voltage schedule.
From: Patrick Irvin @.> Sent: Tuesday, October 29, 2024 9:47:37 AM To: levylabpitt/PPMS-Monitor-and-Control @.> Cc: Albro, Joseph Aaron @.>; Mention @.> Subject: Re: [levylabpitt/PPMS-Monitor-and-Control] Gentle UI "Lockout" when instrument is under "remote control" (Issue #21)
@Monkeymerlothttps://github.com/Monkeymerlot do you have any ideas how to do this in the simplest way possible? If an Instrument VI is being controlled by an external script I want to overlay a transparent image with some text to indicate the state of the VI and let the user know that they shouldn't be hasty about pushing any buttons or changing settings.
Something like this: image.png (view on web)https://github.com/user-attachments/assets/46bcb687-5ad4-496c-b32b-eb1cfb24ee52
— Reply to this email directly, view it on GitHubhttps://github.com/levylabpitt/PPMS-Monitor-and-Control/issues/21#issuecomment-2444290674, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI6TZOH6GZ7MXHQDMRIZR7TZ56GXTAVCNFSM6AAAAABQYENLHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBUGI4TANRXGQ. You are receiving this because you were mentioned.Message ID: @.***>
One more thing from a UX point of view: I wouldnt cover any abort buttons etc just in case the user needs to override for the instrument safety.
From: Patrick Irvin @.> Sent: Tuesday, October 29, 2024 9:47:37 AM To: levylabpitt/PPMS-Monitor-and-Control @.> Cc: Albro, Joseph Aaron @.>; Mention @.> Subject: Re: [levylabpitt/PPMS-Monitor-and-Control] Gentle UI "Lockout" when instrument is under "remote control" (Issue #21)
@Monkeymerlothttps://github.com/Monkeymerlot do you have any ideas how to do this in the simplest way possible? If an Instrument VI is being controlled by an external script I want to overlay a transparent image with some text to indicate the state of the VI and let the user know that they shouldn't be hasty about pushing any buttons or changing settings.
Something like this: image.png (view on web)https://github.com/user-attachments/assets/46bcb687-5ad4-496c-b32b-eb1cfb24ee52
— Reply to this email directly, view it on GitHubhttps://github.com/levylabpitt/PPMS-Monitor-and-Control/issues/21#issuecomment-2444290674, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI6TZOH6GZ7MXHQDMRIZR7TZ56GXTAVCNFSM6AAAAABQYENLHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINBUGI4TANRXGQ. You are receiving this because you were mentioned.Message ID: @.***>
@Monkeymerlot do you have any ideas how to do this in the simplest way possible? If an Instrument VI is being controlled by an external script I want to overlay a transparent image with some text to indicate the state of the VI and let the user know that they shouldn't be hasty about pushing any buttons or changing settings.
Something like this: