05-22-2024 01:24 AM
Team,
I try to use my old data acquisition VI to run in a loop (that part should work...at least, I hope so. I have not yet tested it).
The second part is using some datas out of that loop to fill an excel file by using the Express VI MS Office Report. There, there is still a lot that I have not yet understood about how it works.
I tried to modify my template according to my needs but, strangely, despite reloading the template, my lists doesn't update in the Express VI box. Could someone point me the error I made ?
Also, I try to take some value out of my loop (v1, v2, v1-v2) and to dump those into the excel report with each iterations until the operator hit the STOP button. Would such a VI work for that purpose ?
05-22-2024 05:25 AM
Good morning, Gb. I may be able to help. Here are some suggestions:
Bob Schor
P.S. -- I'm attaching a "Revised Revised" example, saved in LabVIEW 2021, with New Report. If you want to find the original, a search on the Forums, as I noted above, should find it ...
05-22-2024 07:46 AM
Thank you very much, Bob !
I will look at your post to try to understand how to get it running; and I will come back with a saved for previous versions if needed 🙂
05-22-2024 09:24 AM
I can't open your code. So I dropped down a MS Office Report express VI and configured it with your XLT file. Everything works as expected for me.
If you want to populate the table with data using this Express VI, you'll need to store the data in an array or read it from a CSV file (or similar) into an array and write it all at once to the template. This VI is not meant to be called repeatedly to append data to a file.
Using RGT for that purpose is not typically recommended due to the overhead associated with ActiveX. It's slow and depending on the rate at which your data is available, the write process may lag.