04-05-2024 01:32 PM
Hi all, I've been having a boggling issue with a VI no longer saving data as it should, which is suspect is related to these errors I was getting about a load conflict.
I have a VI called "NET_Scan_Accel_41s.vi" within a project called "FPGA computer connection_BDAs_modified_FPGA.lvproj."
When I first open the VI from the Project, there is a Resolve Load Conflict window regarding a control (.ctl) file called "Bindary_data_save_typedef.ctl." I chose the path where the Project and control file are actually stored. The VI opens and I get a Load and Save Warning List, warning me again that "Dependency loaded from new path (1 warning affecting 25 callers)." All of these callers are subVIs called things along the lines of "Binary_data_save_subvi_blahblahblah." Which is important because the problem I'm having is that the VI runs just fine (no broken arrow) but the data is not being saved.
I have tried finding the ctl file in the Files tab of the Project Explorer, right clicking and selecting Resolve Conflict, which seemed to update the affected callers to look in the new dependency path. So now when I open the VI, I don't get the Resolve Load Conflict or Load and Save Warning List, but the VI still does not successfully save the data.
Any reason why having a new path for the ctl file would affect the function of the subVIs?
I did not write this program, so I am a bit lost.
The original cause of all these errors in the first place also boggles me. It was working one week, and the next week it wasn't. The only thing that happened in between was another student on the project did a full metal backup of the computer we're working on. Not sure why that would affect anything. Interestingly, last week, I loaded up a (different) backup of the project in a new directory and the VI opened without these errors and the data saved successfully -- but now, another week later, even the backup isn't saving the data!!
Week 1 -- all working fine.
Week 2 -- original project VI giving errors and not saving data, but back up worked.
Week 3 -- both the original and the backup not saving data.
Help much appreciated!
04-06-2024 10:48 AM
You've presented almost no information that would help those of us who lack ESP or clairvoyance to be able to figure out (like "What does the code look like? Is the problem in the code, in the version of LabVIEW, or in the PC?").
Some "background questions" we don't know --
Bob Schor
04-06-2024 11:51 AM
Hi, yes, I agree it is likely impossible to solve remotely like this. I wish I was able to upload the whole project for someone else to be able to look at, but it doesn't seem like I can do that. But I am able to answer the questions you asked:
The only other idea I have had since yesterday is that perhaps, because the space is running low on the computer (~6 GB remaining), that something funky is going on with saving the data (even though the data files are max ~1 MB). I've had experiences where things stop working properly like that when disk space gets low.
Copying here also the message I sent to NI technical support that has a lot more detail:
The main problem we are having: a VI is not saving/storing measured data as it should.
The VI is called: NET_Scan_Accel_41s.vi
The Project is called: FPGA computer connection_BDAs_modified_FPGA.lvproj
NOTE: We are running LabView 2015 (32 bit). We have found that the FPGA code involved in this VI does not compile in more recent versions, so updating is not an option.
Windows 10 Pro OS.
How this problem has evolved:
I am at a loss for which of these errors is the true source of the issue with storing the data, nevermind why these errors have suddenly appeared between Jan 9 and Mar 14. Between Jan 9 and Mar 14, nothing was done that would seemingly disturb this program. Other Vis in the project were used without error during this time. The only other thing happening with this computer was a full metal back-up was made, involving uninstalling and reinstalling some security software.
Some more detail about what I mean by “not storing data properly”:
When the VI is working, it creates a new folder in a directory according to today’s date and creates binary files called “phd#.bin” named with incrementing numbers. These binary files are then imported into MatLab with a custom script and the output is 50 fields of data. For example, the VI calculates the velocity of a particle through a detector, so one of these fields is an array containing the velocity of every particle measured.
What is currently happening: the new folder is created successfully, as is the binary file “phd#.bin.” But when we import the data into MatLab, the output is (almost) empty. We know it is not the import function because the function still works on data collected on Jan 9 and earlier. So for some reason, the data is not being written to the binary file. I said “almost” because the file isn’t entirely empty:
I understand that this aspect of the problem is difficult to troubleshoot without access to the project.
04-06-2024 05:05 PM
More questions. [Note -- use the "Echo" feature, the quotation marks in the Toolbar, to echo at least my Questions, and place the answers to the questions just below them. Seeing "naked answers" without the benefit of the "clothing questions" is unsettling.]
@sorchaniburca wrote:
Hi, yes, I agree it is likely impossible to solve remotely like this. I wish I was able to upload the whole project for someone else to be able to look at, but it doesn't seem like I can do that.
Do you mean you are not "allowed" to do that, or "it's too big"? If the later, and if the Project code is all saved in a single Folder, do the following:
- Right-click the folder, "Send To:", "Compressed (zipped) folder".
- Attach the resulting (much smaller!) .zip file.
- The same version. (We have in the past tried to use this program in LabVIEW 2020 and the FPGA code within it would not compile so we are sticking to LabVIEW 2015 32 bit.)
Was LabVIEW 2020 present when you successfully ran the LabVIEW 2015 program, or was it added between the time it worked and the time it stopped working? I'm guessing you added if after it worked, in which case some aspect of LabVIEW 2020 is probably interfering with the original LabVIEW installations. There is a Safe Way to fix this, and an Easy Way to force you to reinstall Windows (which you do NOT want to do). Let me know, and I'll guide you through the (fairly simple) correct way to do this.
The only other idea I have had since yesterday is that perhaps, because the space is running low on the computer (~6 GB remaining), that something funky is going on with saving the data (even though the data files are max ~1 MB). I've had experiences where things stop working properly like that when disk space gets low.
When you look at your Disk Drives in Windows Explorer, there should not be a "warning" sign on your disk -- you want at least 10% free space. Have you tried emptying the Recycling Bin?
Some of the Errors that you mention may well be the result of "too many LabVIEW Versions from different "eras" (meaning versions differing by more than 3-4 years). I'll keep an eye out for your response to these comments/questions, and will provide what assistance I can. [I've posted "How to uninstall LabVIEW in the era of NIPM" a dozen times or so on the Forum, one more won't hurt ...]. Don't give up ...
Bob Schor
04-06-2024 06:05 PM
@Bob_Schor wrote:
More questions. [Note -- use the "Echo" feature, the quotation marks in the Toolbar, to echo at least my Questions, and place the answers to the questions just below them. Seeing "naked answers" without the benefit of the "clothing questions" is unsettling.] I didn't know about this function -- good to know!
@sorchaniburca wrote:
Hi, yes, I agree it is likely impossible to solve remotely like this. I wish I was able to upload the whole project for someone else to be able to look at, but it doesn't seem like I can do that.
Do you mean you are not "allowed" to do that, or "it's too big"? If the later, and if the Project code is all saved in a single Folder, do the following:
- Right-click the folder, "Send To:", "Compressed (zipped) folder".
- Attach the resulting (much smaller!) .zip file.
The zipped file is 230 MB (there's a lot going on in this project haha), and that exceeds the max size of attachments allowed.
- The same version. (We have in the past tried to use this program in LabVIEW 2020 and the FPGA code within it would not compile so we are sticking to LabVIEW 2015 32 bit.)
Was LabVIEW 2020 present when you successfully ran the LabVIEW 2015 program, or was it added between the time it worked and the time it stopped working? I'm guessing you added if after it worked, in which case some aspect of LabVIEW 2020 is probably interfering with the original LabVIEW installations. There is a Safe Way to fix this, and an Easy Way to force you to reinstall Windows (which you do NOT want to do). Let me know, and I'll guide you through the (fairly simple) correct way to do this.
LabView 2020 was present when the LabVIEW 2015 program worked.
The only other idea I have had since yesterday is that perhaps, because the space is running low on the computer (~6 GB remaining), that something funky is going on with saving the data (even though the data files are max ~1 MB). I've had experiences where things stop working properly like that when disk space gets low.
When you look at your Disk Drives in Windows Explorer, there should not be a "warning" sign on your disk -- you want at least 10% free space. Have you tried emptying the Recycling Bin?
Yeah it was under 10% so that's definitely a problem. I just emptied the recycling bin, and that freed up a LOT (now there is 40% free space). I won't be able to test whether the code saves data properly until Monday, but I will keep you updated on that!
Some of the Errors that you mention may well be the result of "too many LabVIEW Versions from different "eras" (meaning versions differing by more than 3-4 years). I'll keep an eye out for your response to these comments/questions, and will provide what assistance I can. [I've posted "How to uninstall LabVIEW in the era of NIPM" a dozen times or so on the Forum, one more won't hurt ...]. Don't give up ...
Bob Schor
I really appreciate you taking the time to actually read about my problem!! Hope you're having a good weekend. 🙂
~Sally
04-09-2024 04:43 PM
Update to say that unfortunately the freed up disk space did not solve the problem. We also tried uninstalling the two security software from the computer (in case they were interfering in some way), but that also did not solve the problem.