If you are using Teststand 2010 with DOTNET 4.0 you will get an error as Teststand 2010 was build with DOTNET 2.0. The work around for this is to create a file called SeqEdit.exe.config. In this file add the following:
<?xml version="1.0"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
</assemblyBinding>
</runtime>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0" />
</startup>
</configuration>
Adding supportedRuntime = v4.0 will set Teststand to use the DOTNET 4.0 runtime engine. Then all you need to do is save this file in the Teststand directory. <Teststand>\Bin. In my case it was C:\Program Files (x86)\National Instruments\TestStand 2010 SP1\Bin. Once it is in this location restart Teststand and you should now be able to use DOTNET 4.0 libraries. Typically in my case I use CSharp DLL's to do the main part of my code and Teststand is just the sequencer.
No comments:
Post a Comment