Click or drag to resize

Control Instrument

Instrument Control

Instrument Control

After instrument connected, you can start control

C#
ML_STAR = new STARCommand();
ML_STAR.Init(deck, hwnd, false);
ML_STAR.Start();
ML_STAR.Initialize();
ML_STAR.Channel.PickupTip(tips);
ML_STAR.Channel.Aspirate(samples, 150, aspParam);
ML_STAR.Channel.Dispense(samples, 150, dispParam);
ML_STAR.Channel.EjectTip();
ML_STAR.End();

manipulation of deck layout, use array of containers instead of sequence

C#
var labwPath = STARRegistry.LabwarePath;
ML_STAR.Deck.AddLabwareToDeckSite(Path.Combine(labwPath, @"ML_STAR\SMP_CAR_32_12x75_A00.rck"), "1T-7", "Smp");
var smp = ML_STAR.Deck["Smp"].Containers;
var samples = new Container[] { smp["1"], smp["2"], smp["3"], smp["4"], smp["5"], smp["6"], smp["7"], smp["8"] };

venus-styled error handling. If recovery was set to cancel, the error will be throwed as STARException

C#
ErrorRecoveryOptions options = new ErrorRecoveryOptions();
options.Add(MainErrorEnum.InsufficientLiquidError, new ErrorRecoveryOption() { Recovery = RecoveryAction.Bottom });
ML_STAR.Channel.Aspirate(smples, 150, aspParam, AspirateMode.Aspiration, options);