From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
01-27-2015 08:52 AM
I built an .exe and can work with it so far. The last step is creating a report (excel). Creating reports is working fine in the development environment but not via the .exe. Then I get the attached error message. What does it mean and what can I do?
Thanks!
Solved! Go to Solution.
01-27-2015 08:56 AM
Error code 7 has two definitions. One is from GPIB. But since you are not doing anything with GPIB, you can ignore that part of the explaination. The other part is File Not Found. That is what you are having problems with.
The Report Generation Toolkit uses dynamically called classes. Since they are dynamic, they are not automatically included in the EXE. So you need to use the Alway Include option in the executable properties on the following folders: <LabVIEW>\vi.lib\LVClass and <LabVIEW>\vi.lib\NIReport.llb.
01-27-2015 11:13 AM
One of the first things I had to learn - for survival's sake - was that you can have multiple error definitions for a LabVIEW error code. It will list all the errors for that particular number and it's up to you to determine which one it is.
In your case, there are two clues as to which one it is. The first clue is that you are doing file operations. The second is that you aren't making use of GPIB (if one even exists on your computer). If you were using GPIB, you might have to check where the error is coming from. e.g., If your subVI names are descriptive enough, the path will give you a big clue as to which error description describes the error.
01-28-2015 01:57 AM
I set the NIReport.llb to always included - I don't have more choice to choose. But it's not working... I get the same error while generating the report. Any other idea?
01-28-2015 02:16 AM
In the Application Builder, try to click on Advanced and enable the option Pass all command line arguments to application.
01-28-2015 02:40 AM
it looks like a little bit better because Excel opens for less than 1 second and closes again. The error message is the same
01-28-2015 02:45 AM
put a Clear errors
01-28-2015 02:54 AM
? what does that mean?
01-28-2015 02:57 AM - edited 01-28-2015 03:00 AM
In your code, try to check for this specific error code. If you have this error, use the Clear Error function. And test what you get in this case...
So in the block diagram of the "NI_Excel.lvclassnew........" subVI...if you clear this error, you may get you want. But not fure sure 😉
01-28-2015 03:10 AM
I need to install it before. Then I will try to put this Error VI after the VIs where the error comes up, then I try your suggestion.