03-14-2008 07:21 AM
03-14-2008 10:40 AM
03-14-2008 11:27 PM
03-15-2008 01:47 PM - edited 03-15-2008 01:49 PM
Hi 2716jag,
see the attached example. I think this makes clear what Wiede said.
Mike
03-17-2008 02:00 AM
thanks mike,
do u hav any idea of interrupt handling.. from my driver side some interrupt will rise, that i should monitor from lab view application and do some coressponding things when the interrupt appear.. how the interrupt from driver side is noted in lab view,
03-17-2008 08:10 AM
03-19-2008 07:14 AM
03-20-2008 10:49 AM
03-20-2008 01:49 PM - edited 03-20-2008 01:50 PM
Interrupts are something that happen in the OS kernel and can only be handled there in any meaningful way. They have nothing to do in the application level of modern OSes unless you want to wreck your entire OS system beyond repair and consequently LabVIEW has no means of handling interrupts directly. The way this is passed to applications is usually through events or callbacks (and in the case of a callback it would be a fatal error for a kernel driver to directly invoke the callback funtion from within the interrupt handling routine). Callbacks require function pointers, an advanced C concept and also not supported by LabVIEW directly for various reasons. Events would be usually OS events. By calling directly into OS event APIs with the Call Library Node you could interface to a driver using them without an absolute need to write a wrapper DLL. However I recommend to write a wrapper DLL in any case.
@2716jag wrote:Hi WiebeI dont know that's a call back.. the case ishow to create a thread here, is that making the VI as reentrant it will work as thread? if so we have to call that where we want intialize thread? Im having a scenario that, i've to monitor with a thread whether an interrupt indication came or not in my dll. its a software interrupt driven by my driver through dll file.. tell me how can i handle this....can u get me?
03-24-2008 12:40 AM
Thanks Rolf
yeah its better to go for a Wrapper function.. but from that wrapper fn how we able to get intimation to lab view function that a interrupt occured in dll wrapper function.. how to put an event to note that