LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

curve fit

Solved!
Go to solution

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.

0 Kudos
Message 21 of 50
(1,275 Views)

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.

0 Kudos
Message 22 of 50
(1,265 Views)

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?

0 Kudos
Message 23 of 50
(1,257 Views)

the missed attached file

0 Kudos
Message 24 of 50
(1,256 Views)

the missed attached file

0 Kudos
Message 25 of 50
(1,256 Views)

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.

0 Kudos
Message 26 of 50
(1,214 Views)

I attached the last missed file

Download All
0 Kudos
Message 27 of 50
(1,213 Views)

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?

0 Kudos
Message 28 of 50
(1,201 Views)

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.

0 Kudos
Message 29 of 50
(1,196 Views)

OK, try something like this....

 

...any questions?

 

 

Message 30 of 50
(1,189 Views)