############################################################################### ### FILE: survey.mod ### PURPOSE: Define a MACRo leaf to survey location ### SCOPE: Top Level ### ### Copyrights (C) 2010-2011 Life Technologies. All rights reserved. ################################################################################ DEFine -singleton SURVey $prerinse$='' $purpose$='' $context$='' $ignoreErrors$=False $arm$=ARM $location$ $locations* ### Verify locations TRY ITERATE -key=group "$location$ $locations*" ITERATE -key=location -delimiter="," ${group} FLUidics:ARM:LOCation? ${location} ERRor -id=$error$ $arguments$ "$message$" NEXT TRY ACQuisition+ -owner=Survey Robot IF $[ "$prerinse$" != "" ] FLUidics:$arm$:RinseInside $prerinse$ ELSE FLUidics:$arm$:PrimeLine FLUidics:$arm$:RinseOutside -duration=0.5 ITERate -key=group "$location$ $locations*" FLUidics:SURVey -context=$context$ -purpose=$purpose$ \ -ignoreErrors=$ignoreErrors$ ${group} FLUidics:$arm$:RinseInside -duration=0.2 FLUidics:$arm$:RinseOutside -duration=0.5 FLUidics:$arm$:IDLE FLUidics:$arm$:PARK ACQuisition- -owner=Survey Robot SET ERRID "$error$" SET ERRARGS "$arguments$" SET ERRMSG "$message$" FLUidics:$arm$:RinseInside -duration=0.2 FLUidics:$arm$:RinseOutside -duration=0.5 FLUidics:$arm$:PARK ACQuisition- -owner=Survey Robot ACQuisition~ -owner=Survey IF ${#ERRID:-} "ERRor -id=${ERRID} ${ERRARGS} \"${ERRMSG}\"" DESCribe SURVey Determine the current liquid level in each of the specificed location(s). Locations can be given as multiple groups separated by whitespace, and where locations within a group are separated by commas. After each group has been surveyed, the needle moves to the wash station for an inside and an outside rinse. Example: * Survey locations A1,A2,B1,B2, then rinse before moving to C2; rinse again before A3,B3 and C3. > SURVey A1,B1,A2,B2 C2 A3,B3,C3 DEFine SURVey~ $types$=Well,Bottle,MixingWell $locations* FLUidics:LiquidLevel~ -types=$types$ $locations* FLUidics:LiquidVOLume~ -types=$types$ $locations* DESCribe SURVey~ Clear any survey data (heights/volumes).