Hello
I'm seeking help from the MC community.
I want to create a timer that will read a text file F:ExcelStatus.TXT every 200 ms.
I know how to read a file and process it, but no idea how to code for a timer.
Any help appreciated.
Martin
A timer to read a text file: How to do that
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: A timer to read a text file: How to do that
200 ms is a very short time,Hello
I'm seeking help from the MC community.
I want to create a timer that will read a text file F:ExcelStatus.TXT every 200 ms.
I know how to read a file and process it, but no idea how to code for a timer.
Any help appreciated.
Martin
not worth the trouble of a timer.
IB's update is every 250~300 ms.
You might as well let the indicator update every tick.
Re: A timer to read a text file: How to do that
Hello TJ
It's just that I didn't want to over charge the file reading. I got the feeling that it may slow down.
my pc.
The idea id to read a text file that is written from Excel. I got a tool to read directly in the Excel cell, but is is not recommended to do it frequently. I was told that Excel is not fast enough for that.
So I came out with the idea to read info from a text file.
Martin
It's just that I didn't want to over charge the file reading. I got the feeling that it may slow down.
my pc.
The idea id to read a text file that is written from Excel. I got a tool to read directly in the Excel cell, but is is not recommended to do it frequently. I was told that Excel is not fast enough for that.
So I came out with the idea to read info from a text file.
Martin
- TJ
- Posts: 7743
- Joined: 29 Aug 2006
- Location: Global Citizen
- Has thanked: 1033 times
- Been thanked: 2223 times
Re: A timer to read a text file: How to do that
Excel's can handle update speed of about once every 2 seconds.