BioImager  3.9.1
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
BioImager.TLShutter Class Reference

Public Member Functions

short GetPosition ()
 
void SetPosition (int p)
 

Static Public Attributes

static Type tlType
 
static object tlShutter = null
 
static int position
 

Detailed Description

Definition at line 537 of file Microscope.cs.

Member Function Documentation

◆ GetPosition()

short BioImager.TLShutter.GetPosition ( )

If the library path contains "MTB", then invoke the get_Position method on the tlShutter object. Otherwise, return the position variable

Returns
The position of the shutter.

Definition at line 546 of file Microscope.cs.

547 {
548 BioImager.MicroscopeConsole.Command com = BioImager.MicroscopeConsole.RunCommand
550 return (short)com.doubles[0];
551 }

◆ SetPosition()

void BioImager.TLShutter.SetPosition ( int  p)

The function takes an integer as an argument and sets the position of the shutter to the value of the integer.

The function is called by the following line of code:

Parameters
p0 or 1

Definition at line 559 of file Microscope.cs.

560 {
561 if (Recorder.recordMicroscope)
562 Recorder.AddLine("Microscope.TLShutter.SetPosition(" + p + ");");
563 if (Properties.Settings.Default.LibPath.Contains("MTB"))
564 {
565 BioImager.MicroscopeConsole.RunCommand(
566 new BioImager.MicroscopeConsole.Command(BioImager.MicroscopeConsole.Command.Type.SetTLShutter, new double[] { p }));
567 position = p;
568 }
569 if (Properties.Settings.Default.LibPath.Contains("Prio"))
570 {
571 if (p == 0)
572 Microscope.sdk.shutterClose();
573 else
574 Microscope.sdk.shutterOpen();
575 }
576 }

Member Data Documentation

◆ position

int BioImager.TLShutter.position
static

◆ tlShutter

object BioImager.TLShutter.tlShutter = null
static

Definition at line 540 of file Microscope.cs.

◆ tlType

Type BioImager.TLShutter.tlType
static

Definition at line 539 of file Microscope.cs.


The documentation for this class was generated from the following file: