11-05-2005 01:49 PM
11-05-2005 02:48 PM
Maybe you should rethink your program layout. Why do you even need loops inside the event structure? These tend to gum up the gears because they are preventing the event to finish, blocking all othere events.
Could you explain what you are trying to do. I am sure there is a better and much simpler solution that deos not require loops inside the event cases. 🙂
11-05-2005 04:43 PM
Thanks for the quick replay! I have an imaq card and want to adjust brightness and contrast during "grab". The "grab" routine consists a while loop (imaq sample that comes with Labview 7.1). Since I can not make changes to the brightness and contrast after a "grab" starts, I found a posting that uses an event handler to stop the grab, set new values, then restart a new "grab" with updated value. I kept having problems with that approach and funneled down the issue to the one in my first post.
Here is the link to that post: http://forums.ni.com/ni/board/message?board.id=200&message.id=1059&requireLogin=False
Shan
11-06-2005 01:52 AM
11-06-2005 01:52 AM
Hi,
I would use globals or Occurrences to solve this problem.
You can use user events too but globals might do the job.
With kind regards