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.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 590 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 599 of file Microscope.cs.

600 {
601 BioImager.MicroscopeConsole.Command com = BioImager.MicroscopeConsole.RunCommand
603 if (com.doubles == null)
604 return 0;
605 return (short)com.doubles[0];
606 }

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

615 {
616 if (Recorder.recordMicroscope)
617 Recorder.AddLine("Microscope.TLShutter.SetPosition(" + p + ");");
618 if (Properties.Settings.Default.LibPath.Contains("MTB"))
619 {
620 BioImager.MicroscopeConsole.RunCommand(
621 new BioImager.MicroscopeConsole.Command(BioImager.MicroscopeConsole.Command.Type.SetHXPShutter, new double[] { p }));
622 position = p;
623 }
624 }

Member Data Documentation

◆ position

int BioImager.HXPShutter.position
static

Definition at line 594 of file Microscope.cs.

◆ tlShutter

object BioImager.HXPShutter.tlShutter = null
static

Definition at line 593 of file Microscope.cs.

◆ tlType

Type BioImager.HXPShutter.tlType
static

Definition at line 592 of file Microscope.cs.


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