09-15-2011 04:56 AM
Hello. I wrote labview program for storing temperature and voltage data in spreadsheet with date and time. But i am getting repetation of the same values in the spreadsheet .Please find the attachment. Can any one help me?
09-15-2011 11:06 AM
Based on my quick look that is the least of your issues. You are only writing the file after the loop is stopped because the write file code is outside of the loop. So it would be better to log inside the loop in case you were to crash or power failure then you won't loose your data.
You are passing your, "current data 2"into the delimiter input of write spreadsheet file. This is bad!
You are not controlling flow on which write spreadsheet file will write first. Race condition.
You don't need to add a delay in a timed loop. That is the purpose of a timed loop to set the rate without adding a delay. You actually have three delay statements inside of the loop.
No error handling
Attached is my attempt to fix your code.
Matt
09-15-2011 02:56 PM
Thank you very much for your help
09-15-2011 03:07 PM
Hope it helps you get your project done. Let me know if you need anything else.
09-16-2011 05:05 AM
Thanks for ur help . Do u know how to calculate speed using square wave. Thanks in advance
09-16-2011 05:27 AM
Thanks for ur help and the program which u attached is wrong well but i am not getting time and date in the spreadsheet. I made couple of change and can u please check which went wrong. Please check attachment.
09-16-2011 06:30 AM
thanks its working now. Thank you very much.Do u know how to calculate speed by using square wave pulse calculation
09-16-2011 06:59 AM
Please find attachment . I am planning to find the speed of analog tacho generator. Can u please find where i went wrong. Thank u