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.HXPShutter 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 579 of file Microscope.cs.

Member Function Documentation

◆ GetPosition()

short BioImager.HXPShutter.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 588 of file Microscope.cs.

589 {
590 BioImager.MicroscopeConsole.Command com = BioImager.MicroscopeConsole.RunCommand
592 if (com.doubles == null)
593 return 0;
594 return (short)com.doubles[0];
595 }

◆ SetPosition()

void BioImager.HXPShutter.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 603 of file Microscope.cs.

604 {
605 if (Recorder.recordMicroscope)
606 Recorder.AddLine("Microscope.TLShutter.SetPosition(" + p + ");");
607 if (Properties.Settings.Default.LibPath.Contains("MTB"))
608 {
609 BioImager.MicroscopeConsole.RunCommand(
610 new BioImager.MicroscopeConsole.Command(BioImager.MicroscopeConsole.Command.Type.SetHXPShutter, new double[] { p }));
611 position = p;
612 }
613 }

Member Data Documentation

◆ position

int BioImager.HXPShutter.position
static

◆ tlShutter

object BioImager.HXPShutter.tlShutter = null
static

Definition at line 582 of file Microscope.cs.

◆ tlType

Type BioImager.HXPShutter.tlType
static

Definition at line 581 of file Microscope.cs.


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