08-11-2005 05:01 AM
08-11-2005
01:25 PM
- last edited on
04-27-2025
12:40 PM
by
Content Cleaner
The main problem is probably that you didn't include the dynamic VI into the build (Source Files in the app builder). When you call VIs dynamically you have to make sure yourself that the exe can open them. Also, when you have an exe, the exe acts like a directory, so to get the path of the directory where the exe is in, you need to do another strip. You can tell you're running an exe by using the App.Kind property.
In addition, your VIs are pretty messy. I'm attaching the Close VI after a couple of minutes of work. Note the changes I made. There can probably be some more. You should also do error handling. That will help find your problem points.
08-12-2005 01:07 AM
08-12-2005 07:19 AM
I think the crash comes from a sort of race condition. Here is what you do:
My guess is that on occasion the reference opened in step 4 becomes invalid because of the ending of the VI in step 2 and when you try to close it, it crashes the RTE.
Placing a wait before running the Close VI seems to solve this, which is why I think this is the case, but that's just a guess.
In any case, it's very important that you follow the things I talked about in my last post. For example, in my modified close VI you added a strip path, but you didn't rearrange the code to look clean. Also, in both cases, your VIs won't work when you run it from LV. I told you how to solve that. You should also note that this way it will only work if the VIs are located in the same directory as the EXE, which is not a good way of doing this. You also need to have some error handling, so you can monitor the data and know when something has gone wrong and where it has gone wrong.
In addition, I have to say that I still don't understand what these VIs are supposed to accomplish. As another suggestion, Instead of having the second VI close the first, let the first call the second and then close itself.
08-12-2005 07:33 AM
08-12-2005 10:17 AM
First, if you have that option in the menu of the EXE, set it there.
If you don't, search you LabVIEW.ini file and see if you can find the line that determines the blink color. If you do, copy it to the EXE's INI file.
If you can't, search the site for any or all of the following terms "labview, blinking, executable, ini" or search google for Brian Benken. He has a site with the list of INI settings.