jacobson Posted August 12, 2016 Report Share Posted August 12, 2016 I am getting this strange error whenever I try to drop a .vim into a VI that is saved. If the VI is not saved, everything seems to work but as soon as I save it and try to drop in a .vim, I receive this edit time error. This happens to any .vim file, even blank ones that I have just created. If I double click on the error then it will highlight a specific object that I can delete but the object is otherwise invisible and unclickable. This started happening right after I tried to add a VIM through scripting. I can actually still add a VIM through scripting but it has some pretty interesting context help. So I guess the question of the post is what the heck did I do and how can I get LabVIEW to start behaving again. Quote Link to comment
ShaunR Posted August 13, 2016 Report Share Posted August 13, 2016 Yeah. They're not very robust. Try clearing your object cache. Quote Link to comment
jacobson Posted August 14, 2016 Author Report Share Posted August 14, 2016 Clearing the cache didn't seem to do it. After looking into this more, the error is being thrown by the VIM xnode but I'm still not sure under what conditions it throws that error. I also think the strange context help message is just what shows up if the context help of the VIM you drop is blank. Quote Link to comment
jacobson Posted September 9, 2016 Author Report Share Posted September 9, 2016 To follow up on this thread, the error above only seems to appear in LabVIEW 2016 if the .vim is dragged onto a saved block diagram from windows explorer and has been reproducible on multiple computers. You are still able to use VI macros either by scripting them onto the block diagram or dropping one from the palette (add it to user.lib as JeffK originally suggested). This behavior is not the same as it was in LabVIEW 2015 SP1 or earlier which was confusing for me. Quote Link to comment
Steen Schmidt Posted September 14, 2016 Report Share Posted September 14, 2016 I think I made that error go away by adding "ExternalNodesEnabled=True" to the LabVIEW.ini file, even though that shouldn't be necessary any longer from LabVIEW 2016? /Steen Quote Link to comment
jacobson Posted September 15, 2016 Author Report Share Posted September 15, 2016 I thought I double checked that but I'll make sure tomorrow, thanks for the suggestion. Edit: It was there, same behavior when it wasn't in my ini so good to know I don't need that token. Quote Link to comment
Steen Schmidt Posted September 15, 2016 Report Share Posted September 15, 2016 20 hours ago, Steen Schmidt said: I think I made that error go away by adding "ExternalNodesEnabled=True" to the LabVIEW.ini file, even though that shouldn't be necessary any longer from LabVIEW 2016? Nope, didn't help after all. I get a huge number of Log: Missing Callee in 2016. In fact, 2016 seems quite unstable, or perhaps it's just because of VIMs. I'll try porting my code back to 2015, even though that means pulling out my Type Enabled Structures :-/ Quote Link to comment
GregSands Posted September 15, 2016 Report Share Posted September 15, 2016 Just to add to the description of the problem, it does work ok if going through the right-click menu and Selecting a VI(M) - i.e. not on the palette. Hope it can be fixed as the possibility of using Type Enabled Structures in VIMs is extremely appealing! Quote Link to comment
jeffk Posted September 16, 2016 Report Share Posted September 16, 2016 Dragging a vim onto a diagram from windows explorer goes through a different code path which is apparently not working so I would avoid doing that for now. I believe everything works when dropping a vim from a palette or selecting it from the palette "Select a VI..." item. In the latter case you will have to Enable "All Documents" in the dialog box. Quote Link to comment
Steen Schmidt Posted September 16, 2016 Report Share Posted September 16, 2016 (edited) The "Log: Missing Callee" error happens every time you drag a VIM onto a saved VI's BD. As long as the caller isn't saved, you can drag VIMs onto its BD all you want. That's the difference as far as I can tell, and it has been so at least back from LV 2012 (didn't feel like trying further back). It seems like a reference mistake in the VIM builder XNode, but I can't edit that, so I can't attempt to fix it. I know of someone who can though ;-) Edited September 16, 2016 by Steen Schmidt Quote Link to comment
jacobson Posted September 17, 2016 Author Report Share Posted September 17, 2016 If I'm feeling ambitious I might try writing a kludge of my own. The error is caused by the input to the update state ability being different based on whether the VI you are dropping the macro into is saved or not if someone wants to try fixing it for real. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.