Get Labware Dimensions at Runtime

Hi all,

I am wondering if there is a way to get the dimensions of a labware at run time, particularly the height of a plate. I am trying to add labware at run time based on user input and I would like to get the height of a selected plate in order to determine the appropriate carrier to add it to (taller plates should go on an AC carrier where as shorter plates, ex. microtiter plates, can go on an MD carrier). I am already pulling in the .rck file, with which the labware dimensions should be associated, to use with the DevAddLabwareToTemplate function.

Thanks for your help!

1 Like

Hi @MasonDuran ,

If you have STAR Tools installed on your computer, you will have access to a library called Labware_Property_Query. There is a function in there that will return the Rack Height and Clearance Height, but will require a sequence as an input.

2 Likes

Hi @BrandonBare_Hamilton,

Is there a way to do it without requiring a sequence? Only because I would like to get the rack height prior to adding the labware to the deck and generating a sequence for it so I know where on the deck to add the labware.

1 Like

@MasonDuran ,

Yes. Same library but the File_GetDefinitionFileValue function.

The i_str_ConfigFilePath = the labware definition (full path). The i_str_ValueToSearch = “Dim.Dz”.

The function will return true or false if it doesn’t find the value and the return is a string. You will need to convert it to a float before using it. I would recommend using either the HSLStrLib:StrFVal function or HSLExtensions:Core::ConvertToFloat function to do this conversion. This should return the value from your labware defintion.

1 Like

@BrandonBare_Hamilton ,

Perfect, that worked! Is there any documentation that lists the different i_str_ValueToSearch for each labware definition value in case I want to get some other value (ex. plate format, stack height etc)?

Thanks for providing this info

1 Like

Hi @MasonDuran ,

There is an excel file that lists the keys that can be queried using that function within the Labware Properties folder.

image

2 Likes

@BrandonBare_Hamilton Great, thanks again!

2 Likes