Posted 17 August 2017 - 02:18 AM
Hi, I am trying to use a program I wrote on 2 different Monitors (connected via Wired Modems), but the shell.run function only lets one at a time run!
I have no Idea how I can use the parallel API to work with my Program.
So, I don't know how I can have two while functions running at the same time…
This is my Code:
I have no Idea how I can use the parallel API to work with my Program.
So, I don't know how I can have two while functions running at the same time…
This is my Code:
updaterate = 0.1
flowrate = 50
m = {}
for i=1,16 do
if peripheral.isPresent("monitor_"..i) then
table.insert(m,"monitor_"..i)
end
end
for s=1,#m do
shell.run("monitor", m[s], "turb", updaterate, flowrate)
end