Jump to content

Events not working in reentrant VIs?


Recommended Posts

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

Link to comment

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

Link to comment

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

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.