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.RLShutter Class Reference

Public Member Functions

short GetPosition ()
 
void SetPosition (int p)
 

Static Public Attributes

static Type rlType
 
static object rlShutter = null
 

Detailed Description

Definition at line 628 of file Microscope.cs.

Member Function Documentation

◆ GetPosition()

short BioImager.RLShutter.GetPosition ( )

If the library path contains "MTB", then return the position of the shutter, otherwise return the position of the shutter

Returns
The position of the shutter.

Definition at line 637 of file Microscope.cs.

638 {
639 BioImager.MicroscopeConsole.Command com = BioImager.MicroscopeConsole.RunCommand
641 return (short)com.doubles[0];
642 }

◆ SetPosition()

void BioImager.RLShutter.SetPosition ( int p)

The function takes an integer as an argument, and if the microscope is an MTB, it sets the position of the RLShutter to the value of the integer

Parameters
p

Definition at line 648 of file Microscope.cs.

649 {
650 if (Properties.Settings.Default.LibPath.Contains("MTB"))
651 {
652 BioImager.MicroscopeConsole.RunCommand(
653 new BioImager.MicroscopeConsole.Command(BioImager.MicroscopeConsole.Command.Type.SetRLShutter, new double[] { p }));
654 }
655 position = p;
656 if (Recorder.recordMicroscope)
657 Recorder.AddLine("Microscope.RLShutter.SetPosition(" + p + ");");
658 }

Member Data Documentation

◆ rlShutter

object BioImager.RLShutter.rlShutter = null
static

Definition at line 631 of file Microscope.cs.

◆ rlType

Type BioImager.RLShutter.rlType
static

Definition at line 630 of file Microscope.cs.


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