Hi,
My colleagues threw me a curve ball in the form of wanting to do aspirations from carriers containing two different tube-types to a plate. The tubes in question are 2ml cryo and 0.5ml cryo i.e tube definition differs alot.
Due to time constraints i brute forced it by grabbing the suffix from the 0.5ml tubes and then used VirtualLabwareV2 to raise the z-height before aspiration and then lowering it back to original height after. The reason for raising and lowering is that the VirtualLabwareV2 changes the z-height for the carrier and not the individual tube.
Would the code example below work to create sequences that caters to carriers containing different tube type, by reading barcodes and storing these in an array and then iterating over that array?
Example:
seq_Source.CopySequence(ML_STAR.SourceTubes1ml);
seq_Source.SetCurrentPosition(1);
PosCount = arrayBarcode.Getsize();
lastdigitforlabware = 1;
for(loopCounter1 = 0; loopCounter1 <= PosCount; loopCounter1++)
{
dummy = arrayBarcodes.GetAt(loopCounter1);
dummy = dummy.StrFind(_FB);
if(dummy != -1)
{
LabwareName = "Falsebottom_05_000";
}
if(dummy == -1)
{
LabwareName = "Cryo_20_000";
}
dummy1 = LabwareName + IStr(lastdigitforlabware);
dummy2 = seq_Source.GetPositionId();
seq_AspSequence.Add(dummy1, dummy2);
seq_Source.Increment(1);
if(loopCounter1 == 23)
{
lastdigitforlabware = 2;
}
if(loopCounter1 == 47)
{
lastdigitforlabware = 3;
}
if(loopCounter1 == 71)
{
lastdigitforlabware = 4;
}
}