BioImager  4.9.0
A .NET microscopy imaging application based on Bio library. Supports various microscopes by using imported libraries & GUI automation. Supports XInput game controllers to move stage, take images, run ImageJ macros on images or Bio C# scripts.
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 548 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 557 of file Microscope.cs.

558 {
559 BioImager.MicroscopeConsole.Command com = BioImager.MicroscopeConsole.RunCommand
561 return (short)com.doubles[0];
562 }

◆ 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 570 of file Microscope.cs.

571 {
572 if (Recorder.recordMicroscope)
573 Recorder.AddLine("Microscope.TLShutter.SetPosition(" + p + ");");
574 if (Properties.Settings.Default.LibPath.Contains("MTB"))
575 {
576 BioImager.MicroscopeConsole.RunCommand(
577 new BioImager.MicroscopeConsole.Command(BioImager.MicroscopeConsole.Command.Type.SetTLShutter, new double[] { p }));
578 position = p;
579 }
580 if (Properties.Settings.Default.LibPath.Contains("Prio"))
581 {
582 if (p == 0)
583 Microscope.sdk.shutterClose();
584 else
585 Microscope.sdk.shutterOpen();
586 }
587 }

Member Data Documentation

◆ position

int BioImager.TLShutter.position
static

Definition at line 552 of file Microscope.cs.

◆ tlShutter

object BioImager.TLShutter.tlShutter = null
static

Definition at line 551 of file Microscope.cs.

◆ tlType

Type BioImager.TLShutter.tlType
static

Definition at line 550 of file Microscope.cs.


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