LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Need to create text file as my memory .

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. 

0 Kudos
Message 1 of 16
(3,276 Views)

@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.

Message 2 of 16
(3,264 Views)

hi 

 

0 Kudos
Message 3 of 16
(3,249 Views)

No, but this seems trivial to do from scratch. What have you tried?

Message 4 of 16
(3,231 Views)

Here's something to get you started.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 5 of 16
(3,207 Views)

hi crossrulz,

                      I tried to create its not working for me. Is it possible to get VI file

0 Kudos
Message 6 of 16
(3,194 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 7 of 16
(3,183 Views)

Hi, 

        I have attched my vi code

0 Kudos
Message 8 of 16
(3,173 Views)

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.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 9 of 16
(3,160 Views)

Try this:

 

Currently it read everything. It would be easy to change it so it reads only one byte.

 

0 Kudos
Message 10 of 16
(3,143 Views)