Jump to content

How can I run parallel dynamic VI?


luke

Recommended Posts

HELP!!!

I have to run many dynamic (I need polymorphism) VIs simultaneously, but I cannot make them reentrant (labview tells me that this is not supported!). I made an exaple to show that VIs do not run simultaneously: the correct bhaviour is that the execution time of the two parts should be the same, instead one of the two VIs waits the other to complete excution.

Someone has suggestions on how to solve the problem?

I really need help

Luca

Download File:post-2982-1158831171.zip

Link to comment

In LabVIEW Object-Oriented Programming (LVOOP) Dynamic Methods cannot be reentrant. You have to make your method static by opening its connector pane, right clicking the dynamic dispatch terminals and selecting required or recommended instead of dynamic dispatch terminal. However, you cannot override such a method.

If you need to be able to override your method, you can write a dynamic method to return you a VI reference for a static method. You then call this static method using call by reference node. This way you can dynamically determine correct static method to call, which can be reentrant. If all of the above was nonsense to you, then you should study LVOOP in more detail. Start by opening your LabVIEW help.

Link to comment
In LabVIEW Object-Oriented Programming (LVOOP) Dynamic Methods cannot be reentrant. You have to make your method static by opening its connector pane, right clicking the dynamic dispatch terminals and selecting required or recommended instead of dynamic dispatch terminal. However, you cannot override such a method.

If you need to be able to override your method, you can write a dynamic method to return you a VI reference for a static method. You then call this static method using call by reference node. This way you can dynamically determine correct static method to call, which can be reentrant. If all of the above was nonsense to you, then you should study LVOOP in more detail. Start by opening your LabVIEW help.

This makes sense! Thank you for the idea! I will try that!

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.