NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

updating 4.2.1 sequence files loses all .net adapter information

As Doug mentioned previously, the behavior experienced and mentioned above is a result of the XML and Binary file format conversion code being skipped for step instances whose modules are exactly the same as the module specified for their respective step types. We have found that this issue affects the .NET and Sequence Call Adapters. In the case of the Sequence Call Adapter, if you have a sequence call step whose module exactly matches the module specified for its step type, you will encounter an error provider at edit-time if any of the parameters of the sequence call step are of type Number or Array of Number (this does not include Numbers or Arrays of Numbers that are nested within containers). If you click the error provider to reload the prototype, you will lose the value expression for parameters of that type.

 

Doug's previously mentioned workarounds are both valid and recommended for these two issues so I will restate them:

 

Recommended methods to workaround this issue

1) Save your files in the INI format in 4.2.1 before opening them in TestStand 2010. Once you have opened them in TestStand 2010 you can change them back to binary and resave them since the conversion has now already been done.

 

Or:

 

2) Another alternative is to make a trivial change to the .NET modules in your step types so that there are no steps that have exactly the same module settings as their step types. One such trivial change you can make that does not affect how anything executes is to modify the value of the TS.SData.ModuleSrcPath property of your step types (You will need to turn on the "show hidden properties" setting in the station options to see and edit this property on your step types). This property is only used for the create and edit code feature of code modules and does not affect how anything executes. Also, once you have resaved all of your files in TestStand 2010 you can change this back to whatever it was before. NOTE: You only have to change the step types, not the steps, so this workaround might be easier if you have lots of files since you can just put the modified step types in a type palette, then opening any of your existing files should then work.

 

We are sorry for any inconvenience this has caused or may cause in the future.

 

If you are in a situation where you have already upgraded your sequence files to TestStand 2010, saved over the original version, and have absolutely no backups of your sequence file, you can use the tool attached to this post as a last resort for recovering any affected steps.

 

Last Resort

Again, please note that the attached tool is not a recommended workaround. It is only being provided as a last resort to aide users who have found themselves in the unfortunate situation where they only have one copy of their sequence file and that copy has been affected by this bug and saved to disk.

 

To use this tool, extract the zipped files to <TestStand Public>\Components\Tools\TS 2010 Upgrade Bug Tool\. Create a custom Tools menu item that calls a sequence, point to the MainSequence of TS2010_Step_Fixer.seq, and name the tool something meaningful to you. You can run the tool on an already open sequence file or you can run the tool on all sequence files located in a directory (and its subdirectories). The tool will prompt you before updating or saving any files to disk.

 

Please let us know if you have any questions.

 

 

Manooch H.
National Instruments
0 Kudos
Message 11 of 19
(1,517 Views)

Hi Doug and Mannoch,

 

Is this issue also affecting SequnceFiles written in TS4.0 and TS4.2?

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 12 of 19
(1,507 Views)

Yes, files saved in 4.0 - 4.2.1 with step types that have default .NET or sequence call modules specified and step instances whose modules are specified exactly identically to the step type will see this problem. Note that this does not affect any of the built in step types and does not affect step types that do not have a default module so if you do not have such step types that you've created yourself or gotten from a 3rd party then you will not see this problem.

 

Let me know if you need more details.

-Doug

0 Kudos
Message 13 of 19
(1,494 Views)

HI Doug,

 

Thanks for your anwser, in this case i think see that there should be no problem for me. 

but it seems it is geeting time to install TS4.5 and take some look if my stuff under TS4.5 beta is working

right now Smiley Happy

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 14 of 19
(1,487 Views)

We have patched the 2 issues discussed in this forum thread. You can get the patch by visiting ni.com/info and entering the info code: TestStand2010Patch276751.

 

Alternatively, you can get the patch at the following link: TestStand 2010 Patch 276751

 

Thank you for your patience and cooperation in this effort.

Manooch H.
National Instruments
0 Kudos
Message 15 of 19
(1,437 Views)

Hi Doug and Manooch

 

i am interrested in your recommondations.

I have installed TS4.5 on new maschine (beta was not installed).

All my Step-Types were done in C# by using beta Api.

 

On the new maschine this error occurs.

Screenshot.JPG

 

It is ok. But what would you do:

Compile all .net stuff with newer Api or distribute beta Api ?

 

Regards

 

Juergens  

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 16 of 19
(1,422 Views)

This looks like an error caused because your custom steps were compiled against the Beta version of the API.  You should be able to fix this by rebuilding in the released version.

0 Kudos
Message 17 of 19
(1,420 Views)

 


j_dodek wrote:It is ok. But what would you do:

Compile all .net stuff with newer Api or distribute beta Api ?

 

Regards

 

Juergens  

 


 

Hi Juergens,

 

You should recompile your .NET code with the final release version of the 2010 API interop assemblies. There were several API changes since the beta so the beta interop assemblies are not fully compatible with the final release. Also, future versions of TestStand will install the final release versions of the 2010 interop assemblies, but not the beta versions, so if you move to the final release versions of the API interop assemblies your code will continue to work without needing to be recompiled in future versions of TestStand. Sorry for the inconvenience. We should probably make this issue clearer to beta users.

 

Hope this helps,

-Doug

Message 18 of 19
(1,409 Views)

Hi Doug,

 

Thanks for pointing out

 

Regards

 

Juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 19 of 19
(1,396 Views)