11-07-2011 02:44 PM
Hi,
I'm trying to create a cRIO application that needs to spawn a dynamic number of processes depending on events happening during execution. On the Windows platform, this is relatively straight forward, just obtain a VI reference, or static, strict typedef'ed vi reference etc, and run it. works like a charm. I can't seem to get this to work on the cRIO.
Can anyone point me to, or quickly list, the restrictions (if any) and suggested method for doing this?
Thanks!
-Q
Solved! Go to Solution.
11-09-2011 05:02 PM
Hi Q:
Can you provide some insight into how you're trying to do this now? I ask because you should be able to use the same method you were using on Windows.
If your project contains your main VI as well as the VIs you want to call dynamically, all the VIs should be in the same location. Therefore, you should be able to come up with the path to the dynamic VIs by using the path method to your main VI and replacing the main VI name with the dynamic VI name. In order for this to work, make sure you deploy all VIs under your cRIO controller.
There aren't any restrictions I can think of so give this a shot and let us know if you have further troubles with it.
11-09-2011 05:38 PM - edited 11-09-2011 05:39 PM
[edited to add extra space between images and text]
The problem may have been caused by this dialogue that sometimes pops up that makes no sense to me (I only have LV2011 installed, no other version?) Or possibly because I somehow made my own "strict typedef" static VI reference, whilest when I re-created your example, I noticed the "make strictly typed VI reference" right click option. Both my original attempt and the one I created based on your post above now works without error. I have not tried to build it yet though, but if I put the "clone.vi" in "always include" and put it in the same folder as the .exe it should still work I assume?
By the way, something else strange, if I right click the block diagram and to to "application Control" I get this palette:
But notice all the stuff that is missing here? If I open help, search for "start asynchronous call", then select "find on palette" from the help window, it opens this palette:
But as soon as I make a selection or click on the window, the "extra" options dissapear? Whats going on here? Have anyone else seen this behaviour? (I have VI package manager installed, could that cause this?)
11-10-2011 08:22 AM
Hi QFang,
I have VI package manager installed and don't have the problem. You may just be able to mass compile the "vi.lib" folder located in the c:/.../National Instruments/labview xx folder.
It also might be a custom setting issue. When you set go to the "edit pallete view" there is an option to reset to defaults that might be worth a try.
If neither of those work I would just repair LabVIEW.