Hi all, i need to read data from a text file and write in keil µvision program. How to open file, read, write and close file works in µvision programs. Thanking you,
"i need to read data from a text file and write in keil µvision program" What do you want uVision to do with the data that it reads? What data from uVision do you wnat to write to the file? How does this relate to the original thread? http://www.keil.com/forum/docs/thread7044.asp
"How does this relate to the original thread?" Its related to that thread only but i got an idea that we can store the selected data in VC GUI in a text file then we can retrieve that data from text file in µvision programs. Is it possible to read data from a text file and send data to a text file from µvision programs?. Thanking you.
"i got an idea that we can store the selected data in VC GUI in a text file then we can retrieve that data from text file in µvision programs." So what exactly do you want uVision to do with this data once it has read it from the file? And what data do you want uVision to write to the text file?
"So what exactly do you want uVision to do with this data once it has read it from the file?" for example i have to give receivers addres to vision when it is in transmitt mode. so user will select the receivers address in GUI and that address will save in a text file , so µvision program has to read the address from text file like that. Thanking you, if you have some idea please help me. Thanking you.
I think it exists at least 2 solutions - use one serial port from Keil and a second from another application running in parallel which provide all needed infos - use the AGSI interface and write a plugin best regards Dirk
Hi Thx for ur message, but is this AGSI interface can use to read and write from .txt file ?
Yes, with an AGSI Plugin you can do many things. If you need some assist look at http://www.jasys.de/prod_sw_e.htm or write to plugin@jasys.de
"i have to give receivers addres to vision when it is in transmitt mode." uVision does not have a "transmit mode" What do you mean by this? Are you talking about running code in the uVision simulator?
Keil's AGSI documentation: http://www.keil.com/appnotes/docs/apnt_154.asp You might also want to look at: http://www.keil.com/appnotes/docs/apnt_143.asp http://www.keil.com/appnotes/docs/apnt_144.asp http://www.keil.com/appnotes/docs/apnt_145.asp http://www.keil.com/appnotes/docs/apnt_170.asp
I'm not sure, if it's useful, but in my µVision there is in the File menu an option Open to read and an option Save for writing Textfiles. ;-)
"in my µVision there is in the File menu an option Open to read and an option Save for writing Textfiles." That would open a file in an editor window, and save the text from an editor window to a file. Hence my initial questions: What do you want uVision to do with the data that it reads? What data from uVision do you wnat to write to the file?
in µvision there is no transmitt mode, but we r developing a project in that we make a transmitt mode, so for that user has to set receivers address in VC GUI, so we are saving this seleted data in a .txt file, so now we need that µvision program has to read the data in .txt file. how can i do this. thanking you
"in µvision there is no transmitt mode, but we r developing a project in that we make a transmitt mode" So this is for the uVision Simulator, then?
Hi its not a µvision simulator, i dont have much idea in µvision programming,i want how to read and write data from .txt file , if u have any idea please tell me.thanking you
"its not a µvision simulator" No - I don't mean something that simulates uVision. uVision includes a simulator that allows you to run embedded code on the PC without an actual embedded processor or target hardware. Are you making something to use with embedded code that is running in the Simulator in uVision? "i dont have much idea in µvision programming" That is clear! That is why I suggested that you get your embedded guy(s) to continue this discussion! It is very difficult to understand what you actually want to do, as everything is being obscured by the lack of understanding of what uVision is and does.