LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Occurence in a DLL doesn't clear as expected?

I've got a LabVIEW DLL that contains an occurence. The DLL is setup to create, set and check the occurrence.

The VI I'm testing this with can obtain the occurrence from the DLL and set and check the occurrence.

What I'm seeing is the occurrence can be set in the DLL or the test VI. The occurrence can be checked in the DLL or the test VI, however, the occurrence will not clear in the other (i.e., if the occurrence is checked in the DLL and found to be set, then checked in the test VI, the occurrence is still set).

Has anyone else experienced this? It seems that checking the occurrence in either should clear the occurrence in both, especially as it can be set in either.
0 Kudos
Message 1 of 3
(2,641 Views)
phi wrote:

> What I'm seeing is the occurrence can be set in the DLL or the test
> VI. The occurrence can be checked in the DLL or the test VI, however,
> the occurrence will not clear in the other (i.e., if the occurrence is
> checked in the DLL and found to be set, then checked in the test VI,
> the occurrence is still set).
>
> Has anyone else experienced this? It seems that checking the
> occurrence in either should clear the occurrence in both, especially
> as it can be set in either.

I think you expect a different behaviour of occurrences than what is
implemented. If you have two places waiting on the same occurrence
refnum they are supposed to be triggered both when that occurrence is
set and depending on "ignore if previously" set even if the Set
occu
rrences has occurred before the Wait Occurrence executes.

Rolf Kalbermatter
Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
0 Kudos
Message 2 of 3
(2,641 Views)
Thank you! You've cleared up something that has taken (so far) three days of explaining to NI technical support that I am not using the events structure to try and get an answer. Thank you again!

Tim Stahl
0 Kudos
Message 3 of 3
(2,641 Views)