You should not be performing actions which take a long time in the actual event case. You can either spin off that process as a dynamic VI, or, as a better solution, set up a producer-consumer structure. The event structure becomes your producer loop which sends messages to the consumer loop via the use of queues. This is a very fundamental program architecture and well worth spending the time to learn it. You can take a look at this KB article for more information: <a href=" http://www.yqcomputer.com/
" target="_blank">Application Design Patterns: Producer/Consumer</a>.