09-29-2006 01:33 AM
JLV, the property is there in 6.1.
Jaegen, if I remember correctly, updates to the screen are always put off until *something*. Basically, I think it's timed (i.e. N times a second), but it's probably also synchronized to the BD code (e.g., if you're in the middle of executing certain nodes, wait on updating the display). You could probably test this by using a Value property to insert a lot of data into a control and then add a property before it and see how it responds.
09-29-2006 02:18 AM
Good point, Matt! With shifted error handling, one should have the try {...} catch {...} finally {...} construct of other programming languages in mind, that is: I have code that must be executed (e.g. releasing file references or other resources) no matter if an error occurred. For this reason there's code at the end of the line that I'd simply not wire to the shifted error cluster, like enabling frontpanel updates again in Darrens example.
I always wonder if LabVIEW will have a more sophisticated error handling one day. The mentioned try {...} catch {...} finally {...} construct for instance could be realised with something like a 3-frame error sequence or so!
Greetings,
Hans
09-29-2006 02:27 AM - edited 09-29-2006 02:27 AM
Message Edited by Jaegen on 09-29-2006 12:28 AM
09-29-2006 03:01 AM
As far as I know, Close or Release primitives always perform their function even if there is an error wired into them. Of course, you could use the right click option to ignore errors in the node, but I believe that does not apply to errors which were wired into the node. Another option would be to use the Merge Errors VI (in conjunction with the Clear Errors VI to preserve data flow) to have the node execute and keep the last error. Another option would be to search this site for Mike Porter's Error Fork Stacker which will keep the text of both errors.
@HJPhilippi wrote:
I have code that must be executed (e.g. releasing file references or other resources) no matter if an error occurred.
09-29-2006 06:56 AM - edited 09-29-2006 06:56 AM
Message Edited by JoeLabView on 09-29-2006 07:58 AM