Jump to content

Reentrant VIs for multiprocessing


GregSands

Recommended Posts

I've been experimenting with LV code for multiprocessing (on an 8-core machine) - this is for deconvolution, where I can work on multiple sections of a large 3D array independently. However I got tripped up by a non-reentrant VI buried in the sub-VI that I was using as the core processing routine which effectively blocked processes from executing simultaneously. Is there a facility for checking for such blocks, or for validating that I haven't missed setting a VI to reentrant where needed?

I find it a little frustrating that reentrancy is not immediately visible (unless I add it to the icon manually), nor can it be specified when inserting a VI, only when saving it (this is for 8.2, but as far as I know this hasn't changed in 8.5 or 8.6).

Cheers ~ Greg

Link to comment

Yes, you are not the only one !

I also went into the process of making core subVIs re-entrant, to helps with this I wrote a small piece of code that checks all the VIs in memory to see if they are re-entrant or not :

post-7452-1221025847.png?width=400

I agree it would be cool if LabVIEW could automatically add a "re-entrant glyph" on the VI icon, but until this feature comes I do it myself.

Hope this helps

Link to comment
  • 1 month later...

QUOTE (Antoine Châlons @ Sep 10 2008, 06:51 PM)

I agree it would be cool if LabVIEW could automatically add a "re-entrant glyph" on the VI icon, but until this feature comes I do it myself.

Just to document what I decided in the end (in case it helps others) - all my reentrant routines now have a red border, making it easy to pick them out of a block diagram or VI hierarchy.

Cheers ~ Greg

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.