LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Executable - User Event Generated to Stop SubVI (LV7.1)

I have a main VI that dynamically loads and runs a subVI at a certain point.  When the main program is stopped, I have a 'Stop' Case that generates a User Event to stop the running subVI window which is event-based.  In source code, works fine.  In executable, running subVI does not stop.  Any good reason for this and any good workarounds?

Sincerely,

Don
0 Kudos
Message 1 of 4
(2,705 Views)
ps. In general, anyone having problems with user events in executables built in LV7.1?  Working fine in source, getting crashes with some operations that generate user events in executables.

Sincerely,

Don
0 Kudos
Message 2 of 4
(2,694 Views)

hi there,

 

hm, as a first guess. where and when is the UserEvent unregistered and destroyed? do you wait for the SubVI to stopp before you unregister and destroy the UserEvent?

 

Best regards
chris

CL(A)Dly bending G-Force with LabVIEW

famous last words: "oh my god, it is full of stars!"
0 Kudos
Message 3 of 4
(2,691 Views)

I believe I have solved my problem.  Somehow an error occurred in the subVI which held up execution so that the user event could not fire and close the subVI.  I am still investigating the cause of this but I have retested and it appears to work as expected now.  Additionally, my second problem occured as a result of an Abort VI I used if the application was an executable (and that is why it did NOT occur just using source code).

 

Sincerely,

 

Don

0 Kudos
Message 4 of 4
(2,681 Views)