Part A: Creating the CPU Subsequence
1. In the Sequence Editor, select File File»»OpenOpen and open
C:\Exercises\TestStand I\Ex 3-3 Creating a Sequence File.seq.
2. Right-click on the Powerup Test step. Select Insert Step Insert Step»»SequenceSequence Call
Call. Rename the stepCPU Test.
This step calls a specified sequence file as a subsequence during sequence execution. For this to work, there must be an existing sequence for this step to call. Therefore, the next step is to create the sequence CPU Test, which is called as the subsequence.
Note
Note The step and sequence to be called do not need to have the same name. However, for this exercise it is easier to remember the sequence name if the step name is the same.
Lesson 3 Creating Sequences Exercises
3. Click in the View Ring View Ring and select the All Sequence All Sequence view as shown.
4. Notice that there is currently not a sequence namedCPU Test in this sequence file. You can create this sequence in this sequence file by right-clicking in the window and selecting Insert Sequence Insert Sequence as shown.
5. Rename the sequence CPU Test.
6. Click the VViewiew RinRingg and select theCPU Test sequence. This opens the CPU Test sequence, which does not currently contain any steps. This is the sequence you will create.
Lesson 3 Creating Sequences Exercises
7. Be sure the LabVLabVIEWIEW StaStandarndardd ProProtottotypeype AdaAdaptepterr is selected in the Ada
Adaptepterr SelSelectectoror RinRingg. Click the SetupSetup tab to change to the Setup step group window. The setup for this subsequence requires one function. Right-click in the window and select Insert Step Insert Step»»ActionAction. Rename the step to Pick Test to Fail.
Lesson 3 Creating Sequences Exercises
9. Click the Browse Browse button and select the VI,
C:\Exercises\TestStand I\VIs\CPU PreTest.vi. Click OK OK to select this VI as the code module.
10. A dialog box may appear with options for the file path. Choose the option to use a relative path for the file you selected use a relative path for the file you selected , so that the path to the code source is stored relative to the sequence file. Click OK OK to return to the Edit LabVIEW VI Call Edit LabVIEW VI Call dialog box.
11. Make sure the Sequence Context ActiveX Pointer Sequence Context ActiveX Pointer checkbox is enabled. When completed, the dialog box will appear as shown below. Click OK OK to return to the sequence file window.
Lesson 3 Creating Sequences Exercises
12. Click the Main Main tab to switch from the Setup step group window to the Main step group window. Right-click in the sequence display window and select Insert Step Insert Step»»TestsTests»»Pass/Fail TestPass/Fail Test. Rename the step Register Test.
13. Repeat step 12 three more times to create theInstruction Set Test, Cache Test, and FPU Test steps, as shown below.
Lesson 3 Creating Sequences Exercises
14. Right-click on theRegister Test step. Select Specify Module Specify Module to bring up the Edit LabVIEW VI Call dialog box. Click the BrowseBrowse button to select the code module VI,C:\Exercises\TestStand I \VIs\Register Test.vi.
15. Click OKOK to return to the Edit LabVIEW VI Call dialog box. Choose the option to pass the Sequence Context ActiveX Pointer Sequence Context ActiveX Pointer as a parameter to the VI. The dialog box should resemble the one shown below.
16. Repeat all of steps 14 and 15 for theInstruction Set Test step, except select Instruction Set Test.vi Instruction Set Test.vi.
Lesson 3 Creating Sequences Exercises
18. Repeat all of step 14 and 15 for theFPU Test step, except select FPU FPU Test.vi
Test.vi. The finished screen is shown below. The name of the resource being called at each step appears in the DescriptionsDescriptions column in the right window pane.
19. Click on the Parameters Parameters tab. Right-click in the right window pane and select InsertInsert ParametParameterer»»BooleanBoolean to create a Boolean parameter that is passed into this sequence when it is called as a subsequence. Parameters are discussed in greater detail in Lesson 4.
Lesson 3 Creating Sequences Exercises
21. Click the Main Main tab to view the Main step group window of the MainSequence. Right-click on theCPU Test step and select Specify Specify Module
Module to select which sequence should be called at this step. In the resulting dialog box, click the Use Current File Use Current File option and select the sequence CPU Test from the Sequence Ring Sequence Ring as shown.
The CPU Test sequence created during this exercise has been selected as the sequence to be called at this step. Remember that this sequence requires a parameter called CPUFail to be passed to it. Notice that when you select the CPU Test sequence, the CPUFail parameter is automatically added to the list of parameters to be passed to the sequence. This is because the Use Prototype of Selected Sequence Use Prototype of Selected Sequence option is checked.
Lesson 3 Creating Sequences Exercises
22. You still need to specify the value for this parameter. Click the Browse Browse button to launch the expression browser. In the expression browser, click the + sign next to “Locals” and then click the CPUFail variable. Click Insert
Lesson 3 Creating Sequences Exercises
23. Click OK OK to return to the Edit Sequence Call dialog box, which should now resemble the following screen.
24. Click OK OK to return to the sequence file window. Run the sequence file by clicking the Run Run button. The report now contains a section to report that the sequence CPU Test was run. Additionally, another section lists the results of each of the four tests created in this exercise. Close the report, but leave the sequence file open for the next part of this exercise.