Time step Results EPANET-MSX

Hi all,
below the code I wrote using the Matlab Toolkit.

clear;
close(‘all’);
clc;
start_toolkit;
G=epanet(‘Net3.inp’);
G.loadMSXFile(‘Net3.msx’);
t_d=1;
G.setTimeSimulationDuration(t_d2460*60)
G.setMSXTimeStep(300)
H = G.getComputedHydraulicTimeSeries
Q = G.getComputedQualityTimeSeries
ammonia= G.getMSXComputedQualitySpecie(‘cNH3’)
chloramine= G.getMSXComputedQualitySpecie(‘cNH2CL’)

I don’t understand how to get results for all the nodes with a time step of 1 h, if I run the code results are shown each 5 minutes. Any advice?

Thanks

Hi @Savvedim,

Change your line from G.setMSXTimeStep(300) to G.setMSXTimeStep(3600)

Regards,
Marios