MarceloGA Posted March 3, 2007 Report Share Posted March 3, 2007 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. Quote Link to comment
lraynal Posted March 3, 2007 Report Share Posted March 3, 2007 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! Quote Link to comment
MarceloGA Posted March 3, 2007 Author Report Share Posted March 3, 2007 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??? Quote Link to comment
MarceloGA Posted March 3, 2007 Author Report Share Posted March 3, 2007 Hi Guys I solved the problem now, i use only a property Node (Value "Signalling") in VI "B", this property forces a change the Value in VI "B", than this Change can be reflected to the Main VI "C" Best regards Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.