From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem related to Event

Solved!
Go to solution

Hi
I am facing a problem with Events. Please ref. the attached Event.zip file.

AEv.vi is a LV2G used to Init/Generate/Read/ Destroy the event. Test2.vi is a main vi (one should run this vi)

The Init action of AEv.vi needs to be done in other vi (other than Test2.vi:- But for testing purpose I have initialized it in Test2.vi only).

Test2.vi is used to genetate the event.

I could have called AEv.vi statically inside Test2.vi for Generating the Event......but the Path that comes is  decided at runtime...... (I have many vis similar to AEv.vi.....Smiley Sad.........which to run shall be decided at runtime....)

The Problem:

When I run Test2.vi, it gives me error code 1 (try to run Test2.vi...it gives dialog on occurance of error)........

Can any one address this problem?

ThanX!

0 Kudos
Message 1 of 3
(2,574 Views)
Solution
Accepted by topic author ITA
I have modified your vis to do what I think you want.  The way you were doing the User Events will not work.  I added a Queue to send the commands to Ev.vi
Randall Pursley
0 Kudos
Message 2 of 3
(2,530 Views)

Hi!

Thanks, It worked for me!

 

 

0 Kudos
Message 3 of 3
(2,510 Views)