11-28-2022 11:45 AM
This VI has two completely different performances on two computers. On the first computer, (the one the VI was built on) the VI functions perfectly. On the second, the VI prompts the user to manually save the file despite a correct, real, and verified path and filename. On the second computer, if a template is added to the create report VI, the data is saved in the template file -- not a new file.
Any ideas how to fix this? The VI needs to run the exact same no matter what computer it is run on. Same version of labview, same operating system, version etc... Quite literally, I have held all parameters the same (even the file paths are designed to be the same) and the VI still functions differently.
Labview 2021 SP1 used. Back dated VI version in comments.
Solved! Go to Solution.
11-28-2022 11:47 AM
past version 18.0
11-28-2022 12:03 PM
11-28-2022 12:09 PM
@Gregory wrote:
Do you have the same version of Excel on both PCs?
Differences in Excel and ActiveX across deployment targets causing failures is the main reason I abandoned the MS Office Report Toolkit. The cost of adding MS Office to every deployment was a close second.
I save my data for Excel in simple text or .csv files.
11-28-2022 12:10 PM
Good question. I had to check.
Computer 1: Excel 365 - VI works perfectly!
Computer 2: Excel 2019 - VI does not work as expected.
11-28-2022 12:17 PM
No nice work around to output excel files then?
Looks like .txt will be our solution and just have to import the file into excel manually.
11-28-2022 12:32 PM - edited 11-28-2022 12:33 PM
@RTSLVU Could you do a super simple VI sending a string to a .txt file and then appending the file with another string that works on most distributions in your experience? I can adapt that to what I need.
I am trying to find the non-report generation tool kit VI's and cannot find the old VI's from my past experience anywhere. It appears everything I find is of the same "family" as the faulty excel VI's...
11-28-2022 12:40 PM
The way I was thinking of exporting the data to a .txt file won't work in for a LLB file. Would this apply to a file created by a distributable, but not saved to the LLB. Instead, the .txt file is saved to a directory on the computer?
11-28-2022 01:17 PM
Here's an example program I made for a colleague years ago that demonstrates a simple State Machine that creates a new file and appends data.
11-28-2022 01:18 PM
@CatDoe wrote:
The way I was thinking of exporting the data to a .txt file won't work in for a LLB file. Would this apply to a file created by a distributable, but not saved to the LLB. Instead, the .txt file is saved to a directory on the computer?
I don't understand this question.
You don't save data to an LLB, you save your data to file on the computer the program is running on.