LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

need suggestion on error treating strategy

Hi, becktho,
yes, it's fantastic. It impressed me. I'll try it in my project/
Thank you!
0 Kudos
Message 11 of 20
(1,295 Views)

Hi

Criticism is very useful, when constructiv.

Just to answer your comments dynamic:

1. The LV2 global allows me to be safe - if I used a normal global (what I did in an earlier version), I had to use semaphores to control access
2. Well, the numeric ones could also be handled using variants (nobody is perfect - me too ;)), but as this has grown this way I kept it
3. If you have a look at the file-entries in the file, you'll see that they do have a timestampt. Also the log-level and the error-causing module are written to the file. In addition - if the log-file exceeds 10MB, it is backuped (to either be deleted or reviewed at a later time)
 
Anyway - I'm glad if this tool could help some guys.
 
Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 12 of 20
(1,294 Views)
Hi Thomas,

another great contribution.  I've been thinking along these lines for quite a while now in order to enable "global" error handling in an application.

I always thought that it would be "frowned upon" to de-localise the error handling like this.

Hence my question:  Is this simply a logging feature, or is the error-handling also centralised?  I'm stuck in a timewarp on LV 6.1 so I can't test myself.

I suppose a multi-tiered approach could be used where a centralized threar controls the occurring errors and steers the "global" activities accordingly whereas the low-level error handling is still done locally.  I think there's a lot could be done with this approach.

As soon as I upgrade, I'll try out the software,

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 13 of 20
(1,292 Views)
Hi Shane
 
Thanks for the flowers :D. Have you been able to look at the code?
 
To answer your question: The purpose of this library is just to log statements.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 14 of 20
(1,280 Views)


@shoneill wrote:
 I'm stuck in a timewarp on LV 6.1 so I can't test myself.


In this case, sure you can. See if this helps.
Download All
Message 15 of 20
(1,281 Views)
Thanks warren for you assistance in conversion to previous LV versions ;).
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 16 of 20
(1,273 Views)
Thomas,

You're welcome.  And Warren, thanks for the conversion.  It's pretty neat, I must say.  I like the distinctive icons too, adds a nice touch.

Haven't had a chance to look through everything but I will definitely get around to it.

Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)
0 Kudos
Message 17 of 20
(1,266 Views)
Shane - any comments are welcome. Maybe I can improve it once more ;).
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 18 of 20
(1,260 Views)
Sorry becktho..
I was working on about 6hrs sleep and 1 neuron.  The last thing I did before shutting-down was double-check for (and overlook) timestamps.
 
Nice work.
 
BTW, Here, Ben discusses "Mutex" - the newest  word in my vocabulary. Smiley Happy
 
When they give imbeciles handicap-parking, I won't have so far to walk!
0 Kudos
Message 19 of 20
(1,244 Views)
nice post.
In my projects i use a modified queued msg handler architecture, which helps me trap the errors as they occur. and the structure is very much simple, also it allows me to handle the errors (not just logging) with little modifications in the template.
the template also allows me to locate the area where the error ocuured first.
feedbacks are welcome.
this post has given me some new ideas and soon i will update my template to incorporate new features
 
you can find me template here

Tushar Jambhekar
tushar@jambhekar.com

Jambhekar Automation Solutions
LabVIEW Consultancy, LabVIEW Training
Rent a LabVIEW Developer, My Blog

0 Kudos
Message 20 of 20
(1,236 Views)