Check Carrier Presence v2

https://github.com/theonetruenerd/VenusPackages/blob/main/CheckCarrierPresence.pkg

This library adds functions which allow you to check whether one or more carriers are loaded on the deck. It requires the sensor at each carrier position to be present and functional. The functions it adds are:

CheckCarrierPresenceByArrOfLabIDs(variable iInstrument, array iArrLabIDs, array oArrLabIDsNotLoaded)

This function checks whether several carriers are loaded on the deck. This is done by checking if the sensor at each carrier is giving a signal. It will output an array of all the not-loaded carriers, as well as returning a boolean to say whether all carriers are loaded (0) or at least one carrier is not loaded properly (1)

Params iInstrument:

The instrument present, must be ML_STAR

Params iArrLabIDs:

The input array of the Lab IDs for the carriers being checked

Params oArrLabIDsNotLoaded:

The output array of the Lab IDs of any carriers which are not loaded. Empty if every Lab ID is loaded.

Returns:

Boolean of whether all carriers are loaded correctly (0) or at least one carrier is not loaded correctly (1)

Return type:

Boolean

CheckCarrierPresenceByLabID(variable iInstrument, variable iLabIDOfCarrier)

This function checks whether a carrier is loaded on the deck. This is done by checking if the sensor at the carrier is giving a signal. It will return a boolean to say whether the carrier is not loaded (0) or loaded (1).

Params iInstrument:

The instrument present, must be ML_STAR

Params iLabIDOfCarrier:

The labware ID of the carrier being checked

Returns:

A boolean determining whether the carrier is loaded (0) or not loaded (1)

Return type:

Boolean