LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Write/read from file, easier?

Hello, I have attached 2 programs. With the "analiza" I analize data and write some info about project. With the "nastavitev" VI, I want to open previously saved file and look at the data. Is there a more simple way of reading text file, then mine?

Regards

Boris

Download All
0 Kudos
Message 1 of 7
(3,093 Views)
0 Kudos
Message 2 of 7
(3,087 Views)

Sorry didn't think about that 🙂 .......

Here are the files saved as 8.6

Download All
0 Kudos
Message 3 of 7
(3,075 Views)

Hi Boris,

I saw your coding...

ya. It is good. But You have to do some modification. Thats it.

1.jpg

Basic Array handling...

 

 

2.jpg`

 

Is your code write all the collected data in a same file. Because you create and close in the same loop. but it is not good. It will create seperate file or overwrite the file. So you can follow the example code in the labVIEW. just refer it for the referance.

And maintaining so many sting control is really needed or you can find some other way. because these factos will affect the DAQ performance in the sense "time".

if it is possible follow some architecture for the DAQ coding that will be good.

For any forther things.. Post

 

 

<<Kudos are welcome>>

0 Kudos
Message 4 of 7
(3,061 Views)

Thank yo on you reply.. It would be super if I could write all the data ( string and DAQ data in the same file), but I don't know how. That is why I started to write into 2 files with the same name.

Another problem is,that  I don't know how I would retrive info from file where all the data is ( DAQ dat and string)?

Regards

Boris

0 Kudos
Message 5 of 7
(3,048 Views)

hi,

Why you are going for string ang numeric. Better change all the data type into string...

Then Store it in the excel or text file..

Reading  file.

write file attached...

Check it out...

 

<<Kudos are welcome>>

0 Kudos
Message 6 of 7
(3,037 Views)

Tip: You dont need to index the rows individually, Index Array can be resized!

Tip: Build an array of your indicators (or make it an array to start with) and perform the channel check as a loop.

Tip: Instead of picking lines from the file, wire it to a loop (see #1).

 

If anything is done more than once, it should be a loop. 😉

 

/Y

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 7 of 7
(3,031 Views)