achates Posted June 17, 2008 Report Posted June 17, 2008 Hi, I am writing a code in which I acquire data real time from solar panels through DAQ and then carry out some calculations on the samples. I wish to write the final values along with timestamp in same xl file. Though I am able to write calculated values, I am not being able to write time values as it shows some type mismatch error.I am using Labview 8.5. Please help me out :-). Regards, achates Quote
TobyD Posted June 17, 2008 Report Posted June 17, 2008 QUOTE (achates @ Jun 16 2008, 04:40 AM) Here's the code. When you post code you should make every effort to keep it concise and readable. I took some time to clean up what you posted. This will give you an idea of what I mean. Try to keep code to a single screen if possible. Also, with all of the repeated code in this example you have some great opportunities for subVIs. You mentioned that you are able to write calculated values to file, but I don't see any code that does that. Can you clean up and post the part of the code that you are having trouble with? http://lavag.org/old_files/post-8758-1213631220.vi'>Download File:post-8758-1213631220.vi -Toby Quote
achates Posted June 18, 2008 Author Report Posted June 18, 2008 As per your suggestions, I am reattaching the code. In the code, the samples are being compressed with the last sample being written to the file. My question ultimately boils down to ' how can we write dynamic data values after compression along with the date and time at which each was sampled in the same xl file'? Quote
bbean Posted June 18, 2008 Report Posted June 18, 2008 QUOTE (achates @ Jun 17 2008, 06:16 AM) As per your suggestions, I am reattaching the code. In the code, the samples are being compressed with the last sample being written to the file. My question ultimately boils down to ' how can we write dynamic data values after compression along with the date and time at which each was sampled in the same xl file'? here's one way to do it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.