04-30-2015 07:34 AM
The title of your post is LabVIEW to Excel. If you want to write to Excel, you should use the Report Generation Toolkit, which is extremely easy to use (there are numerous discussions and examples in the Forums).
As a general rule, if you want to (a) learn LabVIEW and (b) use LabVIEW to do anything other than the most trivial demonstration of a simple task, then try to follow these two simple steps:
In particular, this means that to do the Excel writing you mention, you need to use the RGT and the following four functions:
As I noted, there are numerous examples of code that does this, both in the Forums and in the LabVIEW Help. I posted a revision of one of the LabVIEW Help Examples here in January, 2014.
Bob Schor
04-30-2015 08:24 AM
thank you 😄 🙂
04-30-2015 08:27 AM
Thank you BOB but I think that the solution with DDT is more easy for a beginner 🙂
04-30-2015 08:28 AM - edited 04-30-2015 08:29 AM
Hi Ramlus,
what's the reason for all that Rube-Goldberg in your code?
Why do you need to convert the DDT wire to DBL and immediatly back to DDT?
Why do you need to index the string array - does autoindexing not work for you?
Why do you need to concat a scalar string?
I think that the solution with DDT is more easy for a beginner
In the long run you will be better off using NO expressVIs…
04-30-2015 08:29 AM
If it works, go for it! Just remember that the "advanced" methods, in this case, are not so difficult ...
BS