LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

event logging

hello, can anybody help me with this please:

in my project i need to log events like button pushed, combo box value changed or start/stop of some measurement (in general basic activity on front panels). i would like to log it into SQL for further analyzing. i would not like to do it using shared variables, because there are too many of subjects i want to log (and i still did not get it how to do it this way Smiley Indifferent ). is there another possibility?

thanks a lot
0 Kudos
Message 1 of 7
(3,702 Views)
Hello,

If you want to log your events to a database, you'll need the SQL toolkit (or maybe it is now called the Entreprise toolkit) and then you'll find many example built in LabVIEW (Help > Find Examples...).

Or you can also use a simple text file... I think I can dig out some examples I made a coulpe of mouth before if you are interested.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 7
(3,697 Views)
thanx for reply
i have the sql toolkit, but the examples just dont fit my needs, nor built-in examples in LV show it. i need to know how to log those actions i have written above. it would be great if you can post some examples, maybe they would help me

korst
0 Kudos
Message 3 of 7
(3,694 Views)
Well... my examples use text files... I am not really used to work with SQL, but if you are then you can make different many stored procedures (one for each event) and call the appropriate procedure when the corresponding event occures.


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 4 of 7
(3,691 Views)
well, we are still kind of walking around... sql cause me no problem. lets begin with how can i find out a value changed (e.g. that start/stop button) other than wire each boolean button with a shared variable. i found some VIs that looks would be great to use (Alarm & Event Archive.vi, Read Events.vi...in DSC Module) but i cannot find any examples where these are used for logging.
0 Kudos
Message 5 of 7
(3,688 Views)
Oh... you mean you want to know how to detect the events, sory I didn't get that Smiley Indifferent.

Well, the tool you definitly need is the Event Structure, you can set the structure to execute code only when a determined event occurs. Most commonly events are "value changed" on a particular control or indicator, "timeout" for when nothing happens for a certain period of time, "mouse up/down" to detect a click on an objetc, ect...

Hope this helps more 😉


We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 6 of 7
(3,684 Views)
yo! i absolutely forgot that event structure... it is still not the way i imagined it*, but this might work. i hope i will get it working in few hours and than reply back my status

*i thought that it is possible to use some property node to pass the changed data to database or something like that
0 Kudos
Message 7 of 7
(3,680 Views)