From 07d75b7d00e6610689db8a40b47ac24326e929cc Mon Sep 17 00:00:00 2001 From: Milan Hanajik Date: Mon, 17 Apr 2023 10:24:56 +0200 Subject: [PATCH] Bug fix in MakeSimulatedTrivial( ) --- TBF/Rig/Sequences/SequenceBase.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TBF/Rig/Sequences/SequenceBase.cs b/TBF/Rig/Sequences/SequenceBase.cs index 277d43482..b84fceaa4 100644 --- a/TBF/Rig/Sequences/SequenceBase.cs +++ b/TBF/Rig/Sequences/SequenceBase.cs @@ -1586,7 +1586,7 @@ namespace TBF.Rig.Sequences tstRslt.EndTime = DateTime.Now + new TimeSpan(0, 0, 1); tstRslt.FlowSetTime = 10; tstRslt.TestTime = tstRslt.TargetTime(); - if (outPath != null) + if (outPath != null && outPath.FlowMeter != null && outPath.Scale != null) { tstRslt.PulsesMaster = (outPath.FlowMeter.LtrPerPulse > 1E-6) ? (1.0075 * tstRslt.TargetVolume() / outPath.FlowMeter.LtrPerPulse) : 1; tstRslt.MassStartRaw = 0;