03-08-2006 01:00 AM
03-08-2006 02:01 AM - edited 03-08-2006 02:01 AM
Hi Edward,
This question doesn't get asked enough!
Message Edited by Dynamik on 03-08-2006 02:02 AM
03-08-2006 07:20 PM
HI, Dynamik,
Thanx for your great ideas. But I'm not sure about something.
1, "Write an event-logger to capture-to-disk program-events "
Does it mean I should register error event to treat errors? To synchronize the error treating, with 'notifier' or 'queue' ?
Before LabVIEW, my tool is Visual C++. And some mechanics/methodology impact on my thoughts. Maybe I was being trapped! So, I'm not sure that whether the error treatment be dealed serially or parallel?
2, "Check for errors frequently (always), beware that native functions and sub-VIs can handle existing errors in undesireable ways. Some functions will execute even if there's already an error wired in, and may REPLACE the original error with a new error if the function fails. This can be very misleading when debugging. Other functions will NOT execute if there's an error wired in - even if you want them to. It's common to Not wire the error-cluster to Task&Refnum Close functions (using some other data dependency to determine proper execution order.)"
How to 'Check for Errors' ? Wire all error out serially or combine them? Sorry for my not sure about it.
If any demo is available , that'll be wonderful! The examples of LabVIEW doesn't involved anything on it.
Thank you, Dynamik, again. Great idea you gave me!
03-08-2006 07:49 PM
03-09-2006 09:19 PM
Hi Edward,
Sorry i ignored this for so long. It seems like Odd Modem better understood your question.
> Does it mean I should register error event to treat errors? To synchronize the error treating, with 'notifier' or 'queue'
No, "event" was a [my] poor choice of words. I only meant that having/using a log to dump information about thing's happening in a "'big' project", might be convenient for debugging. If the "'big' project" terminates abnormally, a disk "error-log" could be very valuable. It would be up to you to create such a log, and you would choose when to write to it.
> If any demo is available ...
Demos for how to handle errors? Don't know of any.
Cheers
03-09-2006 11:24 PM
03-10-2006 12:41 AM
03-10-2006 01:55 AM
Hi becktho, tried to check-out your util...
LV 7.1 here!
03-10-2006 02:09 AM
Try this one:
03-10-2006 03:49 AM
Hi Thomas,
Very interesting! This would have been a great tool for a recent forum visitor who had an intermittent crash.
I have a couple comments-not to be taken as criticisms - simply observations
I was surprised to see the LV2 global! (?) I think several of the logging VIs (one for each Data-type) might be rolled into one by using a variant as input. The only other comment is that log entries might have a timestamp(?)
But this is just being picky. Nice approach! Your use of the queue to port messages to the File handling was really clever/excellent. I'll remember this.