Jump to content

Event Structure


Recommended Posts

Hi Guys

I want to transfer data from a VI to another VI. The picture can explain the Goal. The VI "A" generates a error, this error is transferred to the VI "B", when a Error is coming. Now the error has to go to the Main VI (VI "C"). But the VI "C" doesn't ask about the success, the process is so, the VI "C2 has to react a change in VI "B", for this reason a use a Event Structure. Now is a problem, when the values of VI "B" is changed through VI "A", these change cannot be show in VI "C", because the Event Structure react only a Mouse or Key Control for the user, but not when the Value is changed for an other VI.

I try to do that whit a User Event; I create this event in VI "B", to send to VI "C" the values through this even Structure, but it isn't working. :throwpc:

Link to comment

Why don't you use a functional or global variable ?

You can send the Error in this variable when it occur (in "A" or "B"), and read this variable in you main VI "C" (in the Timeout event, or somewhere else).

Try this link to learn about Functional Variable:

http://zone.ni.com/devzone/cda/epd/p/id/3124

You can use a Queue as well, if you don't want the last error to erase the previous one...

Go through the LabVIEW functionnalities and librairies to discover what is existing!

Link to comment

When you use a Global Variable or something, your system is charge unnecessary, another thing my Main VI has to be fast, and for this reason the main VI “C” doesn’t have to make this work. When you use a time out, your application waits always something, and your resources are minimized.

i want to solve that whit this solution, if someone knows please can you help me???

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.