08-04-2008 10:45 AM
08-04-2008 12:06 PM - edited 08-04-2008 12:08 PM
lmd2 wrote:
I am using LabVIEW 7.0, and have taken a number of DLL functions and drawn LabVIEW wrappers using the CLFN. One particular function waits for hardware interrupts, and the timeout options are -1, 0, or n milliseconds. A timeout of -1 will block and wait indefinitely. In LabVIEW 8.x there is a configuration option for the CLFN of "Run in UI Thread" or "Run in any thread". Because this is a blocking function we would not want it to run in the UI thread, but prior to LabVIEW 8 the options were to run in UI thread or make reentrant (not quite the same thing). I have it configured for reentrant but keep getting the blue screen of death if multiple interrupts occur near simultaneously (note that if I set the timeout to 0 this works fine - just that you are continueally polling) somehow the blocking function is hosing us up. Is there anyway to get a multithread configuration of a CLFN in LabVIEW 7.0 or is there a known workaround for a case like this.thanx
08-04-2008 02:05 PM
Thanks Rolf
(I finally got those wrapper functions written for handling the pointer-to a pointer to a STRUCT, working fine - now this)
yes I just spoke with my client and they said I may have revealed a bug in their code, they are looking at their end.
So was I correct to configure the blocked function as reentrant(?), or is that not an issue either way. The blocked (waiting) function is in a while loop waiting for a data packet to be available, while in a seperate loop I am reading off a terminal stack. You think this should be do-able (assuming their code is ok)?
Thanx for your help in the past, and now again,
lmd2
08-04-2008 02:57 PM
lmd2 wrote:
Thanks Rolf
(I finally got those wrapper functions written for handling the pointer-to a pointer to a STRUCT, working fine - now this)
yes I just spoke with my client and they said I may have revealed a bug in their code, they are looking at their end.
So was I correct to configure the blocked function as reentrant(?), or is that not an issue either way. The blocked (waiting) function is in a while loop waiting for a data packet to be available, while in a seperate loop I am reading off a terminal stack. You think this should be do-able (assuming their code is ok)?
Thanx for your help in the past, and now again,
lmd2