LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

New event watcher program (attachment)

I don't know if this is already present in CVI 7, but the thing I miss in CVI 6 is some kind of event tracker window. Sometimes strange things happen in your program at times when breaking is not an option (when dragging the mouse, for example). At those moments I want to continue what I'm doing and check what happened afterwards.

In order to achieve this I've made an event viewer program which you can use to track all events of certain controls. The program creates its panel and menu item from scratch, so you can add the code to any program without the need of an extra uir file. When you want to view all the events which took place until now, press shift-ctrl F10 and you see a text box with all the events listed (see for a screenshot the .gif inside the zip file).

I've created a small sample program and project to test out the code. The file which is not included in the build is the bare event watcher code, the other files are just to demonstrate the code.

Any comments appreciated.

Enjoy,

Erwin Timmerman
0 Kudos
Message 1 of 3
(3,059 Views)
That is very slick and quite useful
Message 2 of 3
(3,031 Views)
Thanks for the comment.

I've changed the files in such a way that you can use the EventWatcher.c by just including the EventWatcher.h file without fiddling with your original source code too much. Look at the attached zip file, the project speaks for itself.

Regards,

Erwin Timmerman.
Message 3 of 3
(2,983 Views)