Jump to content

Dynamic reference w/ compiled program

Recommended Posts

I'm having one heck of a time getting the reference for a daemon I've launched w/ an built program. I have a serial card w/ 8 ports and instead of making 8 separate VIs which do the same thing, I made a single VIT, launch them as clones and change the VI Name. Changin the VI name doesn't work with a compiled program, I get an error returned. The best way I can think of is to change the FP Title Property and do the following:


As opposed to changing the VI Name Property in an uncompiled version and doing the following:


There has to be a better way to control dynamic VIs w/ a compiled program, anyone have any ideas?

Tthanks for your time.

Link to comment

One thing that works is to create the source VI as a re-entrant VI (instead of VIT) and launch it with the 0x8 flag set in the Open VI Reference function. Then, each copy gets spawned as a unique instance. You can track the instances by unique ref num or use the CloneName property for the spawned VI. I use the clone name to create named queues that I then use to collect/send data from all of the spawned instances running in their own threads. This is similar to what you're doing except LabVIEW names the clones instead of you and this does work in the run time.


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.

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.