LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Property node error in parallel loops

Solved!
Go to solution

Parallel loop property node error.png

 

Sorry for the screenshot to be in german, the "property node error 1 (arg1)" is thrown after running both VIs at the same time. The IMAQ-Image continues updating, the string indicator property node throws this error again after hitting "continue" on the error message window.

 

There is no further purpose on these VIs, just the fact that the error occurs while running them parallel doesn't make sense to me. LabVIEW should handle this in my opinion...

0 Kudos
Message 11 of 14
(1,419 Views)

@andyforpresident wrote:
[...]LabVIEW should handle this in my opinion...

And what exactly is "this"? That you created a race condition on the UI Thread?

 

Two comments:

1. As the IMAQ loop has no error (cluster) in whatever type included, you cannot tell if that loop also encounters issues. If it does, there are no options to report this so the loop do "seem" to continue without any issue.

2. As already pointed out, the source of the issue is that two concurrent running threads are competing to each other in regard to the UI Thread. It is well known best practise NOT to implement such race conditions which you can prevent by inserting a general UI taking care of all display stuff. So the easiest fix ever for this situation lies in your own capabilities to follow common sense and best practises by implementing a proper architecture.

 

However, i concur that error 1 for the property node should not occur. The error message itself doesn't make much sense in this context. As it seems to be an issue limited to the IMAQ image indicator, it is true that there might be some underlaying issues within LV. Still, as mentioned above, the easy fix is in your own hands...

 

Norbert

 

Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
Message 12 of 14
(1,412 Views)

@andyforpresident wrote:

 

There is no further purpose on these VIs, just the fact that the error occurs while running them parallel doesn't make sense to me. LabVIEW should handle this in my opinion...


I agree that the eror makes very little sense here. (buth neither does the code! :D)

 

Do you get the same error if you would connect an error indocator to the property node?

Do you get any strange string values when the error occurs (What is the original value of the string?)

 

What if you right-click the property node and "ignore errors inside node"?

 

(I don't understand the "race condition" comment, because the string is local to one subVI and order of execution should not matter. Is it resource contention? What does the task manager show when you run the code? Have you tried newer LabVIEW versions?)

0 Kudos
Message 13 of 14
(1,388 Views)
Solution
Accepted by topic author andyforpresident

Hi,

 

I could reproduce this issue with LabVIEW 2015 but not with 2015 SP1, The List of Bug Fixes from the 2015 SP1 Version shows one entry that can be assigned to that behaviour:


 

552345.PNG


 

LabVIEW 2015 SP1 Bug Fixes - National Instruments
http://www.ni.com/product-documentation/53045/en/

 

This has also been fixed in the LabVIEW 2015 f3 Patch and LabVIEW 2014 SP1 f5 Patch.

 

Sorry for the inconvenience and thank you for your patience.

 

Message 14 of 14
(1,359 Views)