lmd2
2008-08-15 19:10:05 UTC
OK this gets a little complicated, first some background: I am writing VIs to call DLL functions using Call Library Function Nodes. One function enables IRQ interrupts and I feed it a reference to a dynamic user event. To test this I simply do an increment in the event structure, put 20 messages onto the bus at about 70mS interval, and the output counts up to 20 in about a second and a half. so far so good. Now the client wants more than a number to increment when an interrupt occurs, within the event structure I place a second CLFN that does a stack read.
Only now if I place 20 messages on the bus only 4, or 12 or 17 stack reads occur, and if I repeat the 20 messages every 30 - 40 seconds I'll get a few cases of reading less than 20 stack words, and then out of nowhere we read 28 words????
So doing a simple increment we know that the interrupt mechanism is good, but doing a stack read seems to make the queue crazy.
I know that the event structure is a little different for dynamic events (such as there is no option to lock the front panel), what I am wondering is if there are latency issues or anything that may affect the event queue, losing elements or backing up if the code inside can't be handled as quickly as events are registered? (or anything else that you can thnk of based on what I am observing)
thanx
lmd2
Only now if I place 20 messages on the bus only 4, or 12 or 17 stack reads occur, and if I repeat the 20 messages every 30 - 40 seconds I'll get a few cases of reading less than 20 stack words, and then out of nowhere we read 28 words????
So doing a simple increment we know that the interrupt mechanism is good, but doing a stack read seems to make the queue crazy.
I know that the event structure is a little different for dynamic events (such as there is no option to lock the front panel), what I am wondering is if there are latency issues or anything that may affect the event queue, losing elements or backing up if the code inside can't be handled as quickly as events are registered? (or anything else that you can thnk of based on what I am observing)
thanx
lmd2