LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

write and read data

I have a question about beginning an end a log would the write simply go in front of the loop an the read following the end of the loop on this code attached below?

0 Kudos
Message 1 of 7
(2,674 Views)

What is your question?

 

You should clean up the code some.  You have unused functions scattered around and pieces of code that do something, but are outside of the loop.  Straighten up the wires.

 

Then define exactly what you want to do.  Usually you open a file before the while loop.  Do the write or read inside of the loop.  And which is it you are trying to do?  If you are logging data, you use write.  Then close the file after the while loop.

0 Kudos
Message 2 of 7
(2,668 Views)

those are for other parts I am working on. But i want to write a temperature log.

0 Kudos
Message 3 of 7
(2,661 Views)

@Gotti_uncc wrote:

those are for other parts I am working on. But i want to write a temperature log.


As we know temperature is floating value and you need to write log. But where? in excel, word, database? Better specify

 

One more thing, Try to make a simple VI for each task then combine it. Now in this case you want log, then create the different application and make sure it works, post only that in forum(if it gives problem) otherwise it confuses us. Make sure it works then combine it with your module and make it whole.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 4 of 7
(2,653 Views)

Can you upload the VI in 2011

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 5 of 7
(2,651 Views)

I apologize i am very new at this I would like to write a temperature log in excel. Here is a copy of only the temperature VI. I am confused on how to go about that.

0 Kudos
Message 6 of 7
(2,635 Views)

Here's a cleaned up version of your VI with a temperature log added.  It is as simple as opening a file before your loop, writing the string equivalent of your temperature to the file, and then closing the file after your loop.  You can't exactly write directly to an XLS file without doing to interesting things with ActiveX.  Instead, just write to a CSV, which is a text file format that Excel will just open.


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 7
(2,596 Views)