09-27-2010 12:13 AM
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
09-27-2010 12:30 AM
Hi....
Read this post
http://forums.ni.com/t5/LabVIEW/Save-for-Previous-version-and-post/td-p/1250418
Then try it...
09-27-2010 01:26 AM
Sorry didn't think about that 🙂 .......
Here are the files saved as 8.6
09-27-2010 02:06 AM
Hi Boris,
I saw your coding...
ya. It is good. But You have to do some modification. Thats it.
Basic Array handling...
`
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>>
09-27-2010 02:49 AM - edited 09-27-2010 02:50 AM
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
09-27-2010 03:54 AM
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>>
09-27-2010 04:41 AM
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