LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Load Conflict seemingly broken my VI even when resolved?

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!

0 Kudos
Message 1 of 6
(535 Views)

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 --

  • What version(s) of LabVIEW you are running (specify Version ID, which includes Year, and whether 32 or 64-bit).
  • What version was used to develop the code.
  • Are you running from a LabVIEW Project, or are you running a "built executable"?
  • Who developed the program?  Are they still available for a consult?
  • Are there any on-site LabVIEW experts available to advise you?

Bob Schor

0 Kudos
Message 2 of 6
(482 Views)

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:

  • LabView 2015 32 bit. 
  • 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.) 
  • As a LabVIEW project.
  • This program is perhaps 9-10 years old with major developments from ~5 people over the years (including one new addition by me a few years ago). None of those other 5 are particularly responsive any time I have asked for help in the past. 
  • I have the most LabVIEW expertise in my group currently. 

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:

  • As of Jan 9 2024: Program ran with zero errors or warnings and stored data properly. This is the last known time of running this VI without error.
  • The next time we tried to run this program, Mar 14 2024:
    • Upon opening, the VI had 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 I’m guessing is important because the problem we’re seeing is about the data being saved.
    •  However, I was able to copy a back-up of the project we had saved on an external hard drive into a new directory, and the VI opened without the warnings, ran, and successfully stored the data! So it seemed like a good temporary fix.
  • Now, the next time to run this program since March, it is now April 5 2024:
    • Both the original and the back-up projects are not storing data properly.
    • What I have tried today:
      • Copied the back-up to a new directory again. Problem persists.
      • Found the ctl file in the Project Explorer, right clicked and selected 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. Problem persists.
      • Tried running another VI in the project called “NET_Scan_Accel_20s.vi”, which is the predecessor to the one we want to run. This VI has the same problem.
      • Tried recompiling the FPGA code. Problem persists.
      • Tried shutting down the computer and restarting. Problem persists. Additionally, upon restart, we get some additional errors:
        • “Unable to locate the LabVIEW Run-Time Engine. VIPM Service requires a version 2019 (or compatible) LabVIEW Run-Time Engine.”
          • According to NI MAX we already have Run-Time 2012 SP1 f9, 2014 SP1 f11, 2015 f3, 2015 f3 (64-bit), and 2019 f2 (64-bit) installed. I don’t even think the LabView 2015 (32-bit) version we are using is compatible with these newer Runtimes…
          • I went ahead and installed JKI VIPM (2024 Q1) which came with Runtime 2023 Q3 (64-bit).
          • Now that error no longer occurs upon computer boot up.
        • The first time the VI is run after reboot, it loads for a while and then gives the error: “Error 1 occurred at Wait on Notification in NET_Scan_Accel_41s.vi. Possible reason(s): (1) LabVIEW: An input parameter is invalid. (2) NI-488: Command requires GPIB Controller to be Controller-In-Charge.”
          • I have yet to troubleshoot this error, the reason being that when this error occurs and I select “Stop” and then press Run on the VI again, it runs.

 

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:

  • The first field in a “phd” file is called “Start_time.” Normally this is a small array (say, containing less than 20 values). In the error scenario, the field “Start_time” exists but it contains thousands of values.
  • The second field in a phd file is called “Start_timestamp.” Normally this is a single value. In the error scenario, the field “Start_timestamp” exists but it is empty.
  • No other fields were written to the binary phd file.

I understand that this aspect of the problem is difficult to troubleshoot without access to the project.

 

0 Kudos
Message 3 of 6
(478 Views)

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

0 Kudos
Message 4 of 6
(459 Views)

@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

 

0 Kudos
Message 5 of 6
(452 Views)

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. 

0 Kudos
Message 6 of 6
(409 Views)