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: 

How to let two task in different event case run at one time.

Dear All,
          I have just thought of a problem, and write a simple vi.
          I want to try whether two task in different event case run at one time.
         The vi attached is the simple version.
         How can I to modify it?
         Thank you
 
 
Hugo
0 Kudos
Message 1 of 11
(3,320 Views)
Take a look at the New Event Handler VI that LV gives as an example for Event Structures.
Your cases are a bit more involved so I don't know if this will help or not.

Message Edited by Steve.Briggs on 11-21-2006 09:15 AM

Message 2 of 11
(3,314 Views)

Thank you for your reply.

Your vi is not run two events at one time.It is run one after another.

Thank you all the same.

 

Hugo

0 Kudos
Message 3 of 11
(3,297 Views)

You could move the code to a single Event case, and then add the two Events to the same state. 

-Khalid

 

Message 4 of 11
(3,288 Views)

Thank you for your reply.

I see that this method can solve the problem, but isn't it said it is not allowed that there are two event case structure in one vi?

 

Thanks.

 

Hugo

0 Kudos
Message 5 of 11
(3,280 Views)

I meant two Events handled by the same state of the Event structure.

Sorry about the confusion. 

-Khalid

Message 6 of 11
(3,260 Views)
Thank you for your reply.
I am sorry to say that I can't understand it.
Would you please give me a simply vi?
Thanks.
0 Kudos
Message 7 of 11
(3,239 Views)
Look at attached pic.
Message 8 of 11
(3,233 Views)

Thanks Dev!

-Khalid

Message 9 of 11
(3,225 Views)

Hi Khalid,

Its a honor to assist your top answers Smiley Happy

Regards,

Dev

Message 10 of 11
(3,209 Views)