LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW 2018 freezes after execution (Open G JSON libraries)

I have a VI that converts a large JSON input into a cluster.  After this VI executes, it takes a month of Sundays to unload.  Until then, I get the grayed-out panel with the (Not Responding) in the title bar.  The computer outside of LabVIEW performs fine 
As a subvi, it executes and returns the data in a timely manner.  It is only upon top level vi completion that the systems hangs.  Leading me to believe that it is something unloading.  I do not see anything in task manager as far as memory being dumped or CPU usage change, so I am perplexed. 
Lastly, there is an array of 'competitions', the lag is related to the number of elements in it.  However, if the number of elements is one or eighty, there is lag on VI complete. 

Any of the gurus out there know a way to speed this up?  

As you can see, there is not much going on here.  

PJS_0-1665433183842.png

 





Paul
0 Kudos
Message 1 of 4
(1,475 Views)

Since you're calling library code it's almost certainly a problem with the library, and debugging the entire library is likely not going to be trivial.

 

Are you early enough in your coding efforts that you could switch to different JSON libraries?  There's at least 2 more:

 

i3 JSON by LVH

JSONtext by JDP Science

0 Kudos
Message 2 of 4
(1,449 Views)

This is a pet project.  So switching things is not a problem.  
It seems I tried a couple other libraries and none worked.  However, it has been several years.  


Paul
0 Kudos
Message 3 of 4
(1,411 Views)

None of them work out of the box and I do not have the time to drill down into reentrants to figure out where errors are happening.  Most likely type mismatches, but the errors do not give enough information to get a start point.  I would have to hand edit the JSON to individual elements and test them.  
Way more time consuming than waiting several minutes when I terminate the VI. 

Maybe the owners of the parsers can do it quicker or I just let it go.  LabVIEW is not the best tool for this, but it is the one I am most familiar with. 


Paul
0 Kudos
Message 4 of 4
(1,396 Views)