Hide message

Discuss macros to control the hardware functions of your ZEISS microscope
Post Reply
user-6850
Posts: 18
Joined: Thu Jan 01, 1970 1:00 am

Hide message

Post by user-6850 »

Hello.

I use a TCP script and run a macro with the "RUN macroname" command.
A pop-up dialog is displayed while the macro is running.

"Manual Component: Manual Tube Vis/Camera Slider"

How can I hide it?

Thank you.
The attachment Camera_Slider_Messages.png is no longer available
Attachments
Camera_Slider_Messages.png
Camera_Slider_Messages.png (12.27 KiB) Viewed 1986 times
user-4
Posts: 398
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello Yosuke,

did you have a look at (menu bar) 'Tools - Options - Acquisition - General'?

You can activate/deactivate 'Show a Request to Move Manual or Coded Hardware Components'.
user-6850
Posts: 18
Joined: Thu Jan 01, 1970 1:00 am

Post by user-6850 »

Thank you! It went well.

There's one more thing I'd like to ask you about.

I'd like to set Z-Stack First and Last by writing macro code.

I know how to get the current height, so I want to move First and Last by dozens of μm from there.

What should I do?

I thank you in advance for your reply.
user-4
Posts: 398
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

Hello Yosuke,

at the end you start an experiment via macro.

Therefore I would recommend to have a look at the experiment file, which has an XML structure, to carefully change some values.
First manually, then via macro.
user-6850
Posts: 18
Joined: Thu Jan 01, 1970 1:00 am

Post by user-6850 »

Thank you for your reply.

I understand the following about the "czexp" file:
<HardwareExperiment Version = "1.1">
<ExperimentBlocks>
~
<ZStackSetup IsActivated="true">
<First>
<Distance>
<Value> XXX </ Value>
<Last>
<Distance>
<Value> XXX </ Value>

How can I set the value from the macro after calculating First and Last from the current height?
user-4
Posts: 398
Joined: Thu Jan 01, 1970 1:00 am

Post by user-4 »

How can I set the value from the macro
Sorry, but you cannot set the values directly.

One way is to Import a .Net or (Iron)Python library that lets you handle XML-files.
Then you can walk through the XML tree and set Parameters.

A very simple alternative is to Import a .Net or (Iron)Python library that lets you read and write text-files.
After reading the file use ‘Replace’ to find and replace a marker like XXX in the XML-file.

For a first impression on 'how to' click here.
Post Reply