Valve setting problem


#1

Dear all,
is it possible to read this code for a valve? i have to set that valves (in epanet) close during simulation, and the use ganet.
thanks.

Do
’ Set pump status
If (sumTime Mod 3600 = 0) Then
’ Change my fixed 1hr simulation time index
simulationTimeStep = simulationTimeStep + 1
For i = 1 To 138
setLinkValue pumpIndices(i, 1), EN_STTING, pumpStatuses(i, 1)
Next i
End If