10-10-2022 03:23 PM
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.
10-10-2022 07:28 PM
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:
10-11-2022 06:32 AM
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.
10-11-2022 08:54 AM
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.