Jump to content




Updating information


2 replies to this topic

#1 tysciman7

  • Members
  • 41 posts

Posted 06 February 2014 - 10:40 PM

Hello, I am a decent programmer in lua. But I still have trouble. I am currently setting up a nuclear reactor console monitor. With the help of open peripherals. My problem is that I do not know how to update the heat and eu/t for it to constantly display the information in real time. My code for the receiver is where I am going to display the information. He is the reactor console(the sender connected to the reactor) http://pastebin.com/aaUDricv
And here is the receiver in the control room. http://pastebin.com/4sPcFVtD

#2 Himself12794

  • Members
  • 56 posts

Posted 06 February 2014 - 10:54 PM

To constantly update it, I recommend placing the line
eu = p.getEUOutput()
in your while loop, right at the beginning. If you don't do that, then eu will always be what it was when you started the program. Adding to the while loop allows it to constantly update.

#3 tysciman7

  • Members
  • 41 posts

Posted 06 February 2014 - 10:55 PM

Okay, but thats not the true problem, thank you for that. But I asking how to fix the update






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users