09-23-2025 02:15 PM
Why does this code not save a new file to my desktop with the XY Plots included?
09-23-2025 07:58 PM
We can't debug an image. Kindly please upload your code and save it as an earlier version like 2019 so that we can test it out and advise accordingly.
09-24-2025 01:25 AM
Hi Ford,
@FordClark001 wrote:
Why does this code not save a new file to my desktop with the XY Plots included?
What is the exact problem?
Generic remark: typically the path to the user desktop is "C:\users\USERNAME\Desktop". You use a different path…
09-24-2025 09:22 AM - edited 09-24-2025 09:23 AM
The VI doesn't save a file at all, at least not one that I can find. I don't see any errors when running the VI. Computers in my organization save all desktop content to the onedrive as part of the desktop file path.
09-24-2025 04:57 PM
General note (unsure if it will work with OneDrive):
There is a "Get system directory" function that you should try to use when possible instead of manually creating a file path via concatenating strings:
It makes your code a lot more tolerant of changing operating systems and environments.
09-25-2025 01:09 AM
Hi Ford,
@FordClark001 wrote:
The VI doesn't save a file at all, at least not one that I can find. I don't see any errors when running the VI. Computers in my organization save all desktop content to the onedrive as part of the desktop file path.
What happens when you use a different path, like C:\temp or your %localappdata% path?
(In general: any local path, where you have sufficient access rights and NO OneDrive interception…)
When you need more help with your VI then please attach a downconverted version. Most will say "LV2021 or older", I prefer LV2019.
09-25-2025 10:13 AM
It doesn't save when I try the temporary folder on the C drive either. Attached is 2018 version of the sub vi.
09-25-2025 10:27 AM
@FordClark001 wrote:
It doesn't save when I try the temporary folder on the C drive either. Attached is 2018 version of the sub vi.
I can say your VI works fine for me.
I had to provide a template excel file with three worksheets, some data and then it saved TestData.xlsm in C:\temp.
09-25-2025 10:40 AM
Strange, there must be some sort of policy being enforced on my laptop that prevents labview from saving documents.
09-26-2025 08:24 AM
A question to ask (or a test you can run) is whether the problem is "special" for the Report Generation Toolkit or it affect all File Writes in LabVIEW. Can you, for example, write a "Hello, World" Text file that is saved on your Desktop? saved in your "My Documents"? I would expect "My Documents" to be "forced" onto One Drive, but am unsure about the Desktop.
Bob Schor