From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
09-20-2006 12:28 PM
09-21-2006 04:42 PM - edited 09-21-2006 04:42 PM
Message Edited by Ecleamus R on 09-21-2006 04:44 PM
09-21-2006 06:27 PM
Ecleamus
When I same it works, it works. I store the reference in a local parameter that is feed back up to a global when the callback returns. This global is then passed to all other callbacks that need access to the .net object. So when it works, all calls to the object work. I can run the sequence over and over again with no issues.
So I already answered question 2 I do store it in a station global and it does go away when I close test stand. However even before that, at the end of the sequence, I dispose of the object and set its reference to nothing. I do this because the object uses a license for a piece of commercial software that I want to release. In this way the object ties the license up for about 30 seconds to a minute, it is then released and disposed of. So yes every time the sequence is run, I have to re-instantiate the object which is why I am baffled that once working it will work all day long, but I have to kick start it every time I open TestStand.
As far as producing no errors, the object appears to be instantiated because I get a .NET reference. However in the same step I instantiate the object I call a read only property that simply returns a TRUE. When it works I get a TRUE, but when it doesn't I get a FALSE.
As for Unload All Modules it has no effect. When it is working it stays working, and when it is not working it is not fixed by unloading all modules.
While experimenting last night, I uncovered an interesting clue. I have 2 copies of this .NET dll on my system. The first is in the Visual Studio directory, and the second is in the TestStand directory \Components\User\Models\TestStandModels. I have been pointing to the one in the TestStand User Model directory. Last night just for fun I pointed to the one in my Visual Studio Directory. I closed and reopened TestSTand and all worked. I repointed to the one in the TestStand User Model Directory and I was back to needing to kick start. I am assuming this to be because of Registry entries confounding the facts.
I was working this way so that when I deployed the new TestStand model, everything would be where it was on my development system. Since I am getting close to deploying it, I need to resolve this. The true test will be when I put it on a test station will I have the same issues. Any thoughts
TIA
Del Protin
09-22-2006 03:09 PM
09-25-2006 08:23 AM
09-26-2006 06:30 PM