NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing the "UUT Serial Number" popup in TS 3.1

How do you change the wording in the popup to read something other than "Enter UUT Serial Number" ?? ie "Enter UUT Serial Number and WIM" or "Enter UUT WIM and Serial Number"?
0 Kudos
Message 1 of 6
(3,905 Views)
What I have done before is to modify the "modelsupport2.dll" with CVI.

The code is in "C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\modelsupport2.prj". I modified the files "banners.c" and "modelpanels.uir"(I also have included my company logo on this window) and I generate an alternative modelsupport2.dll.

To use this new modelsupport just copy it in the same path (same as the project) of the original (keep a backup just in case) 😃

Hope this helps

Regards
0 Kudos
Message 2 of 6
(3,896 Views)
Also keep in mind that you can replace that code module entirely with any module you want. If you program in LabVIEW, you can make a LabVIEW dialog, and replace the DLL call in your process model. If you prefer C#, you can create a class that displays a dialog and use that instead.
0 Kudos
Message 3 of 6
(3,869 Views)
There are several ways of changing that message, one by changing the DisplayUUTInformationDialog function call inside modelsupport2.dll, or by overriding PreUUT callback, where you could use instead that function call, a message popup, that can be customized to fit your requirements.
After the message popup step, you have to update the Parameters.UUT.SerialNumber and Parameters.ContinueTesting variables inside the callback.
Another way of doing this is to change in the SequentialModel, the PreUUT callback, but this will impact on all the sequence files that are using that model file.
0 Kudos
Message 4 of 6
(3,868 Views)
It's true, is it not, that if you create a Users directory at the same level as NI (in the path shown below), and if the deployment is set to look at User directories, that you're safe to make modifications there?

"C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels\modelsupport2.prj".
0 Kudos
Message 5 of 6
(3,808 Views)
mrbean: Yes it is best to leave the NI directory alone and make changes in the User directory. Just copy the entire NI directory contents into the User directory and make any changes there. That way, when upgrading, you don't lose any changes since only the NI directory will be overwritten. Also, if something gets screwed up, you have a default to fall back to.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 6
(3,799 Views)