04-27-2016 09:19 AM
Hello everybody!
Feel free to help ;)!
I have a small question regarding the write to file. So, basically I have to read 10 Temperatures through 10 Thermocouples from a Storage tank. I want to write it into an excel file every hour. But the waveform is active all the time. So I don't want the loop to wait every hour.
Please Help!
I have read several forums regarding it but couldn't really find any solution!
Thank you!
Solved! Go to Solution.
04-27-2016 09:33 AM
@rb767 wrote:Hello everybody!
Feel free to help ;)!
I have a small question regarding the write to file. So, basically I have to read 10 Temperatures through 10 Thermocouples from a Storage tank. I want to write it into an excel file every hour. But the waveform is active all the time. So I don't want the loop to wait every hour.
I believe you meant to say "Please help for free!" You are asking us to do your work for you, but have provided so little information (and absolutely no code of your own) that I, for one, don't even understand where to start or the nature of the question/problem.
Do you have code that reads "10 temperatures through 10 Thermocouples"? [I assume you mean "takes a single reading from each of 10 Thermocouples"]. What do you mean by "the waveform is active all the time"? Sounds like you do have a VI (which you should attach!!), which if we could see, would explain "waveform" and "all the time". What do you mean "loop to wait every hour"? Do you want to take all 24 readings for the day at midnight, using a "predictive" algorithm? Do you want a program that the operator runs once an hour that takes a single reading?
What is the desired format of the Excel file? Do you really mean a file with the extension .xls or .xlsx, or a .csv file that Excel (or any text editor) can read?
Bob Schor
04-27-2016 09:54 AM
I actually meant feel free to help me 😄
Sorry i meant .xlsx!
Basically it's a very basic circiuit, I would be taking the signals from DAQ and writing it every hour in this excel file.
04-27-2016 09:55 AM
I guess you already display measurements in the loop.
Check time every loop iteration. If it is more than an hour after previous record, write into file, save time in the shift register.
04-27-2016 10:08 AM
I agree with Alexander (though I really dislike Express VIs, even more Dynamic Wires).
Bob Schor
04-27-2016 10:40 AM
@Alexander: Thank you so much.. i tried doing that but I am not able to save it every hour .. It's saving the normal way. Could be please help?
04-27-2016 11:00 AM
Both solutions.
I do not like express VIs either, but may be I start changing my mind.
Sorry I could not open your VI, I am at LV2011.
04-27-2016 03:00 PM
rb767,
I was modifying your code. I assume the attached VI will work for what you need. You will need to change the DAQ channel settings back to your hardware.
Joe
05-02-2016 02:54 AM
Hello Joework!
I am currently using LabVIEW 2013, hence can't open your file.. could you please share the screen?
Thank you for your time!
05-02-2016 08:33 AM
Here is a 2013 version.