Bug fix in MakeSimulatedTrivial( )

This commit is contained in:
Milan Hanajik 2023-04-17 10:24:56 +02:00
parent 0d6875065c
commit 07d75b7d00

View File

@ -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;