LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

property node for boolean control will not work with incoming error -201003.

Hello LabVIEW Folk,

 

I have error -201003 feeding into a property node setting the disable trait of a boolean control that causes the properties not to be set.  The error is just a USB carrier not plugged in to the USB port so that is not the issue.  It seems that the error should not cause lack of property node execution.  Clearing the error before the property node results in proper function of the property node.

 

 

Any ideas?

 

Thanks,

HLB

0 Kudos
Message 1 of 3
(2,808 Views)

Almost all built-in functions and VIs will not execute their code if they have an error in their error input. The logic for this is that if you have an error, you don't want the rest of the code to execute (because something's wrong) and you want the source of the error to remain in the error cluster so that you can log or handle it.

 

This is a common pattern in LabVIEW and if you want the node to ignore the error, you can use the Clear Errors VI before it and Merge Errors after it, although this is a construct I personally dislike.

 

Two additional points:

  1. If you get an error in one of the properties, you can configure the node to execute the rest of the properties or not.
  2. I believe the only primitives which always work are the ones which close references (like a file reference or a queue reference).

___________________
Try to take over the world!
Message 2 of 3
(2,804 Views)

Ok, that is good.  Just need to handle the error, not bypass it.

 

Thanks tst,

HLB

0 Kudos
Message 3 of 3
(2,788 Views)