LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Intrerrupts

How can is possible to deactivate and activate intrerrupts in LabVIEW? I have an application about Meteo (wind direction, speed of wind , temperature, and the value received is affected by Windows proccess.
I try with priority but don't satisfy me. It is possible to do that? The signals coming from game port (X-axis and Y-axis inputs which driven an internally timers (monostable). I measure this period of time but the number is instable.
0 Kudos
Message 1 of 3
(3,134 Views)
Hello �

From your description, I understand that the precision of your data acquisition system is being affected by some Windows processes and you would like LabVIEW to ignore these processes.
Also, when you say you have tried with priority, I assume you are modifying the priority of your VIs.

The first thing to be aware of is that Windows is not a real time operative system. If these processes affect your application to the point where you are concerned about it, then it would be a good idea to consider switching to a real time OS.

There are some tricks that you can use to help LabVIEW run as a higher priority application but it will never be close to real time.

Go to the Task Manager and click on the Processes tab. Right click on the LabVIEW thread
and go to Set Priority. You can modify the application priority from there.

If you are using Windows NT, you will probably see that the priority resets back to Normal every time LabVIEW is launched. In this case, you need to write a VI calling the kernel32.dll to be able to start LabVIEW with a different priority than Normal. You might want to take a look at these knowledge bases:

Programmatically Changing the Process Priority in LabVIEW
How Can I Programmatically Set the Process Priority for an Application or Executable

Hope this helps!

S Vences
Applications Engineer
National Instruments
0 Kudos
Message 2 of 3
(3,134 Views)
The documents mentioned have been combined, updated and moved to Developer Zone at:

Program Process Priorities in Windows

http://zone.ni.com/devzone/cda/tut/p/id/6871

Regards,

John H
Applications Engineer
National Instruments
0 Kudos
Message 3 of 3
(2,923 Views)