Click or drag to resize

Rack Class

Template, Rack or Deck Layout All these labware are defined as Rack in SDK, you can easily handle the labware and decklayout with its methods
Inheritance Hierarchy
SystemObject
  Huarui.STARLineRack

Namespace:  Huarui.STARLine
Assembly:  SharpHamilton (in SharpHamilton.dll) Version: 0.1.0.0 (0.1.0.0)
Syntax
public class Rack : IDisposable

The Rack type exposes the following members.

Properties
  NameDescription
Public propertyBarcode
Rack Barcode
Public propertyBarcodeMask
Barcode Mask
Public propertyColor
background color of rack
Public propertyContainers
Containers in rack
Public propertyDepth
Rack depth in y
Public propertyFile
File of Rack
Public propertyHeight
Rack height in z
Public propertyID
Labware ID
Public propertyImageFile
Image file of rack
Public propertyIsBarcodeUnique
barcode must be unique?
Public propertyIsContainerConnected
dose container in this labware connected to others
Public propertyIsVisible
Is rack visible in the deck layout
Public propertyItem
find rack or child rack with labware id
Public propertyProperties
Property of labware
Public propertyRotation
Rack rotation degree
Public propertySites
sites infomration on template and decklayout
Public propertyTag
object for developer to store information
Public propertyType
Rack Type
Public propertyWidth
Rack width in x
Public propertyX
Rack Position X
Public propertyY
Rack postion Y (front)
Public propertyZ
Rack Z base position
Top
Methods
  NameDescription
Public methodAddContainerToRack
Replaces a container on a rectangular pre-loaded rack
Public methodAddLabware
add labware to defined position This can only be call in Deck property in STARCommand
Public methodAddLabwareToDeckSite
add labware to site of template This can only be call in Deck property in STARCommand
Public methodDispose
Dispose function
Public methodGetTrack
Get track position for rack in the decklayout
Public methodRemoveFromDeck
Remove labware from deck This can only be call in Deck property in STARCommand
Public methodRenameLabware
Rename labware Id This can only be call in Deck property in STARCommand
Public methodUpdateLoadedLabware
Updates the list of loaded labware and updates the view
Public methodUpdateUsedLabware
Update labware status in deck layout visibilization
Public methodUpdateUsedPositions
Updates the list of used positions and updates the view
Top
Examples
To add a labware into decklayout
C#
ML_STAR.Deck.AddLabwareToDeckSite(@"C:\Program Files (x86)\HAMILTON\ML_STAR\TIP_CAR_480BC_HT_A00.tml", "6T-6", "ABC", "default");
ML_STAR.Deck.AddLabware((@"C:\Program Files (x86)\HAMILTON\ML_STAR\TIP_CAR_480BC_HT_A00.tml", "ABC", x, y, z, rotation)
delete a labware by its ID
C#
ML_STAR.Deck.RemoveFromDeck(id);
get the labware with its ID, and get the container from labware
C#
var cts = ML_STAR.Deck["ht_l_0003"].Containers;
Container[] cnts = new Container[8] { cts["6"], cts["7"], cts["8"], null, cts["10"], cts["11"], null, cts["13"], };
See Also