Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 1d9567b

Browse files
Reduced Noise
1 parent 7d58c4a commit 1d9567b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PythonCLX_PIDSimulator.pyw

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def start():
102102
else:
103103
pv=process.update(float(ambient.get()))
104104
#Add Noise between -0.1 and 0.1
105-
noise=0.1-random.randint(0,10)/50
105+
noise=(random.randint(0,10)/100)-0.05
106106
#Store PV
107107
gData.storepv(pv[0]+noise)
108108
#Write PV to PLC

0 commit comments

Comments
 (0)