hfettig Posted January 4, 2005 Report Share Posted January 4, 2005 Hi, I am trying to use mouse events (mouse move, up) in a reentrant VI. It works fine if I simply run the VI. But as soon as I call it from a different VI, the mouse events do not seem to work. Then I just added a Stop button on the front panel and the value change event does not seem to work either. Any suggestions? Thanks, Heiko P.S. I am running LV 7.1.1 Download File:post-1022-1104863255.vi Quote Link to comment
aart-jan Posted January 4, 2005 Report Share Posted January 4, 2005 Reentrancy is something you use for subvi's. You can set a vi to be reentrant in vi properties, but if it is a top-vi, Labview will not open the same vi twice. Furthermore, events can only be embedded in subvi's if you fire them programmatically using "user events" aartjan Quote Link to comment
didierj Posted January 5, 2005 Report Share Posted January 5, 2005 If you want to "clone" frontpanel vi's, then you'll have to first make a template vi (not reentrant) and then call it with vi-server. Alternatively use the Open VI Clone Reference.vi from OpenG. Didier Quote Link to comment
hfettig Posted January 5, 2005 Author Report Share Posted January 5, 2005 Thanks, This is more or less what I thought the problem was. Just wanted to make sure I was not making some stupid mistake. I worked around it by using multiple instances of a template rather than a multiple copies of a reentrant VI. Heiko 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.