11-25-2010 08:45 AM
Hi altenbach,
the other files and original VI are attached. Especially, the notpad file is the file that I want to do, especially the heading of the file.
11-25-2010 12:16 PM
You did not attach any subVIs, so the VI is broken for me. Also your diagram is not manageable on my laptop screen, sorry!
(Why does everyone except me seem to have 5000x3000 pixel monitors?? I am so jealous!)
Anyway, please make my life a little easier and boil down the VI to the essentials. Just add a few diagram constant containing typical data and delete the bulk of the code.
You are also skating on thin ice with your program architecture. Since your save operations occur after the loop, any file error will cause you to irreversibly lose all acquired data. Use a proper state machine, where "save" is just another state, returning you to the idle state. Keep all data in shift registers. Now if the save operation fails or is accidentally canceled, you can take another shot at it later.
11-25-2010 03:18 PM
Hi altenbach,
thanks for your reply. There are so many subvis so it will be hard to upload. So, lets continue with sample vi.You are right that I'm skating on thin ice, however I have no chance because I'm new user of Labview. I developed this vi very hardly and to change it will be so hard for me.
I'm sending the sample vi, front panel, block diagram pictures and a text file. In the "New block diagram" attachment, I circled Reos and um,os with green colour, and array and flow rate with red one.
i.e., I want to write the red circled data (array and flow rate) in the text file and the I want to name the file with green coloured ones. It will be like the attached text file. Therefore the file name will be i.e.; "Reos=800; um,os=0,06". Also in the text file, before the all data, the headings will appear like in the text file; r/R uos(m/s) Flow rate(m3/s).
How can i achieve this? Also, I want to save the "best curve fit" circled in the red in the attachment of the "new front panel.jpeg" preferably in the same text file or if it is impossible to save in the same text file, it can be stored in another place.
I'm looking forward for your help. Could you please help me?
11-25-2010 03:19 PM
the missed attached file
11-25-2010 03:20 PM
the missed attached file
11-28-2010 01:39 PM
Hi altenbach!
Have you received my previous mail? Could you please help me? I attached the files again. The previous mail indicates what I want. Please help me. Thanks again.
11-28-2010 01:41 PM
I attached the last missed file
11-28-2010 01:50 PM
It seems you want a table with many entries, however, your program only generates 1 REOS, etc. Do you want to append a new row to the end of the file whenever the program runs?
11-28-2010 02:53 PM
Hi altenbach,
I want to write the array data (x-y) values into text file. It is ok. I can do this. However, I want to name this file with the resulted Reos. For example, the program run and calculates the specified one value of Reos=680. I want to name the file inwhich there are corresponding x-y array with this Reos=680. So the file name will be "Reos=680.txt". Then the program will last and stop.
Also, I want to write or copy the corresponding x-y curve figure into this file. The first row of the file should be the name of data. For example, at the top of the x values, "r/R" will be written and at the top of y values, in the first row, "u (m/s)" will be written. So the text file with name and its contents will be like that I attached previous mail "Reos=800; um,os=0,06.txt". Thanks in advance. I'm looking forward to hearing from you.
11-28-2010 03:31 PM