07-19-2007 09:03 AM
I get an Error 1031 when trying to run an example Labview program that came with a new piece of test equipment.
Error 1031 occurred at Open VI Reference in
Open IBOC Generator Control Session.vi->IBOC
-Open control Session.vi->IBOC - Open Control
Session.vi.ProxyCaller
07-19-2007 10:00 AM - edited 07-19-2007 10:00 AM
Shown below is from part of the code from one of the shipping examples called Dynamic Load Example. When you use the Open VI Reference and the Call by Reference Node, you can dynamically load any VI that has the same connector pattern as the type specifier. The message is telling you that the called VI's connector pane does not match the connector pane of the type specifier. You can attempt to fix it yourself by right clicking on the type specifier and selecting Select VI Server Class>Browse.. and then selecting the VI that is supposed to be loaded dynamically. Of course, this might cause other dynamically loaded VIs to fail if their connectors patterns are different. You have not attached the driver so it's hard to say why the error would be occuring now with something that had presumably worked at one time. You haven't given the name of the instrument, either. If the driver was written by the instrument vendor and is not available on NI's site, then you should contact the vendor.
Message Edited by Dennis Knutson on 07-19-2007 09:01 AM
Message Edited by Dennis Knutson on 07-19-2007 09:01 AM
04-08-2010 10:42 PM
Hi Dennis
I have read this subject and I have some questions to ask.
What if I would like to load two vi dynamically into the same call by reference node in the same loop at different occasions, that each perform the different functions, although each vi has similiar connector pane. So I do not need to browse and select the dirrerent vi since the connector panes are similiar. Am I wrong?
I have tested it with the attached vi and it works.
Why do I still get error when I followed the same rule in my application?
When it first load the first vi a few times and then it is cleared, it then again loads the second vi(different function but holds the similiar connector panes) and error 1031 appears. By right the reference to the previous vi is cleared. Please advise how I should do it?
Here is my attached pic of my application.
regards
Clement
04-13-2010 08:43 PM
Hi all
Just realised that there ia a change in the property of the control in the main vi and it did not reflect changes in the reference control in the subvi. That's why
Anyway thanks.
Clement
04-14-2010 05:25 PM
Hi rcard,
Dennis hit the nail on the head: I think we'll need to know more about where this driver and example code came from before we can effectively help you figure out what's going wrong with it. I'll be more than happy to take a look once you do.