11-01-2013 07:31 PM
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?
11-01-2013 07:55 PM
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.
11-01-2013 08:40 PM
those are for other parts I am working on. But i want to write a temperature log.
11-01-2013 10:24 PM - edited 11-01-2013 10:24 PM
@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.
11-01-2013 10:25 PM
Can you upload the VI in 2011
11-02-2013 08:16 AM
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.
11-04-2013 07:28 AM
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.