NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Help in modifying the Sequence Model

Hi,

I would like to do one of the following:
1) Modify the Single Pass execution entry point, so that, it will call the 'PreUUT' sequence in the same way as the 'testUUTs' entry point.

or

2) Add a new Entry point that does what is described in (1) above.

3) In addition I would like to make an entry point 'PARTIAL TEST' that will, both, call the preUUT and creats a report? (this is in case I select to test only few steps of my sequence). It is required to call the 'preUUT', to generate a report and to collect data with the database in this case.

If it makes things easier, I'm willing to modify the 'Single Pass' to 'Partial Test' instead of adding a new entry point.

Any suggestions/guidlines/examples before I begin to di
g in?

Thanks
0 Kudos
Message 1 of 4
(3,325 Views)
Hi Rafi,

My first suggestion would be to make a copy of the sequential process model in your user directory. In my case: C:\Program Files\National Instruments\TestStand 3.1\Components\User\Models. So copy all files from C:\Program Files\National Instruments\TestStand 3.1\Components\NI\Models\TestStandModels to your user directory. These paths will vary depending on where you installed TestStand and which version you're using. This way you will always have the original code to refer to. By default TestStand looks in the user Components directory first to find files so it will use your modified process model. You can change this by going to Configure >> Search Directories.

I don't think it would be any easier to modify Single Pass versus creating a new entry poi
nt. When you create a new entry point you can always copy the code from the Single Pass entry point. I would make the decision based on what options you want the user to have. It may be that you always want the user to enter the serial number. In this case you never want the user to use the Single Pass entry point in its orginal form. So,I would delete this entry point or rename it to Partial Test or leave it Single Pass and modify the code. It really depends on what you want your user to see.

As you dig in if you have more questions please feel free to post back.

Regards,

Sarah Miracle
National Instruments
0 Kudos
Message 2 of 4
(3,325 Views)
Hi Sarah

Thanks for responding. I began by copying the sequential model from NI to User's directory and selected it in the 'Station Options'.

I copied the Single Pass sequence and rename it. Now, when I look under 'Execute' I can see 3 entry point. However, the last two are both 'Single Pass'. (non of my entry points is Single Pass!!).

Question: Where is the name 'Single Pass' is given to the entry points shown in the menu? How do I modify it? (this one may be simple after the first question is answered...).

I will also need to modify the naming in the Operator Interface (CVI, full interface) provided by NI. Is it necessary to dig into the operator interface code in order to modify that?

After accomplishing this relatively simple task I will s
tart digging into the code to modify the sequence.

Thanks
Rafi
0 Kudos
Message 3 of 4
(3,325 Views)
Hey Rafi,

Here's what you do to change the name of the entry point in the menu:

1. From the View ring choose All Sequences. This will show you a list of all the sequences in your sequence file.

2. Right-click on execution entry point sequence and select properties.

3. Select the Model tab and replace the Entry Point Name Expression (ResStr("MODEL", "SINGLE_PASS")) with the name you want to be displayed. For example "New Name". The ResStr function is used for localization so as long as you're not going to try and change to another language you can simply remove this and replace the whole expression with a string.

As long as you still only have two execution entry points the CVI operator interface will update automatically. (I'm not
sure if this is the case with operator interfaces earlier than 3.0) If you have more entry points you will need to add an additional button.

I hope this helps!

Regards,

Sarah Miracle
National Instruments
0 Kudos
Message 4 of 4
(3,325 Views)