12-21-2014 01:13 PM
I am trying to read the next value in a .txt file every second. Right now, I can put the whole thing in a while loop, but I believe it reopens the .txt file everytime. If I put just the count in a while loop, it only updates the vlue when the loop terminates.
The file testnumbes.txt is just a list of numbers. Eventually I want to program the setpoint for a pressure regulator based on a routine I specify in the .txt file.
Thanks and happy holiday!
12-21-2014 01:28 PM
12-21-2014 04:24 PM
Ok so I figured it out so the below works. My issue though was that I couldn't just send the indicator value from a loop. The whole thing needed to be in a loop. I'm not really sure why, but this works.
12-21-2014 05:31 PM
While I have figured it out on the input side, I can't figure out how to output to a file. While below works, it is opening the file every time.
12-21-2014 05:47 PM