LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

NI_DSC.lvlib deployment error on RT target

Hi, I'm trying to run my source code (LV20.0.1f1) on an RT target (RasPi 4B), which has run successfully previously, but has suddenly encountered a strange error.  After connecting to the device in my project, I run the main vi, and it begins deploying.  Inevitably, an error is reported during deployment that says:

 

NI_DSC.lvlib:Configure Logging (Shared Variable).vi loaded with errors on the target and was closed.

 

Sometimes it will bring up a vi front panel with a broken run arrow.  I'll click that to bring up errors, and it shows there are no errors in the vi (weird).  I'll try to deploy again immediately after, and LabVIEW will crash.  I've tried:  Mass compile, forced recompile, deleting any use of the configure logging vi and readding it.  Running into a wall here, any direction would be appreciated.  Thanks!

0 Kudos
Message 1 of 3
(674 Views)

Without seeing the code that might be causing the issue, I'm not sure how anyone on the Forum who is not able to see your code (which might be causing the problem -- assuming something didn't break in the hardware or software in the RaspPi 4B to which you are trying to deploy it) is going to help you with your mysterious issue.  What happens if you re-deploy the exact code that previously worked (from your Version Control repository)?

 

Bob Schor

 

 

 

 

0 Kudos
Message 2 of 3
(636 Views)

I declined to post the code because there wasn't code that I wrote that was being cited by any error, simply the presence of this DSC function. The "no error" error that pops up in various vis after failing deployment didn't point to anything mis-wired, in any row, or even to a vi that had the DSC function in it. For whatever reason, what I'd written before is now a problem, and to avoid creating busy work for someone sifting through two decent sized projects (one for target, one for PC), I posted what I thought was appropriate to troubleshoot the issue, which seemed like something external to my code, and more to do with LabVIEW and how the DSC functions do or don't work on a RasPi. For example in another problem I previously dealt with, I was unable to deploy network shared variables from the RasPi, which I later discovered was not due to my code but the lack of a SVE for Linux. I don't feel that my code would have been helpful there.

 

After moving the configure logging functions out of anything that made it to the target, it now deploys properly. None of the vis I modified which had the configure logging function were showing any error. The confusing thing about it besides not being a problem previously, is that the vis that contained the offending DSC function aren't actually run anywhere on the target, they just sort of piggy back on with other classes that are shared with and run on the PC side project.

 

Thanks.

0 Kudos
Message 3 of 3
(615 Views)