From the context of your text I see you use Windows as operating system.
If you use interrupt what type of interrupt do you mean? If you mean hardware interrupt from the parallel port you have to write your own kernel mode driver to get it and a DLL which waits for the event. There are some toolkits which will do this for you. One of my customers uses that from Kithara. This toolkit consists of a kernel mode driver and a DLL. You will call a function in that DLL which waits for the interrupt. If the interrupt occurs the function ends and you can stop your lasers.
With some Win API programming you can raise the priority of your LabVIEW thread to high priority which will not interrupt it from other user mode applications but kernel mode drivers will alway
s have a higher priority than user mode applications. Moving your mouse, network traffic and other kernel activities will cause an undefined delay in the reaction. This is by design of windows because windows is not designed for real time processing.
If you have control what is running on the machine when your application is used this should not be really a problem for you.
Waldemar
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions