12-12-2014 12:29 AM
hi all ,
i need to use text file as my Memory (like eprom in controller) . i have to send address and data to write and address to read that data. is it possible to create.
12-12-2014 12:39 AM
@SaranVenkateshS wrote:
is it possible to create.
Yes. Create a file of sufficient size, then read and write selected locations by first setting the file position. Use all low level file IO.
12-12-2014 01:42 AM
12-12-2014 02:34 AM
No, but this seems trivial to do from scratch. What have you tried?
12-12-2014 07:08 AM - edited 12-12-2014 07:08 AM
Here's something to get you started.
12-12-2014 07:49 AM
hi crossrulz,
I tried to create its not working for me. Is it possible to get VI file
12-12-2014 08:04 AM
If you are using LabVIEW 2014, you can just save the image I left you and then drag it onto your block diagram. It is what is called a "snippet".
Alternatively, you can post what you have tried and we can tell you where you went wrong.
12-12-2014 08:17 AM
Hi,
I have attched my vi code
12-12-2014 08:52 AM
1) You need to set the file position
2) You should set the data type on the read to be a U8 to get that byte.
3) You told the read to read nothing.
4) You will need to put something in your file in order to read it.
12-12-2014 11:03 AM - edited 12-12-2014 11:04 AM
Try this:
Currently it read everything. It would be easy to change it so it reads only one byte.