Exploring a Basic ECU Toolkit Test Program
- Updated2023-02-17
- 5 minute(s) read
Exploring a Basic ECU Toolkit Test Program
Complete the following steps to open an existing sequence file and configure it to create a basic ECU test program.
Note Completed solution files can be
found in the <TestStand Public>\Tutorial\NI_ECUToolkit\Basic
Test Program\Solution directory.
-
Open <TestStand Public>\Tutorial\NI_ECUToolkit\Basic Test
Program\Basic Test Program.seq. This sequence file contains the
following sequences:
- MainSequence—Contains a single test step, Pin Impedance Test, which performs a pin impedance test on all A pins.
- PinImpedanceTest_Core—Sequence which serves as the module called by the Pin Impedance Test step in MainSequence. This sequence uses measurement control steps to configure instruments, perform measurements, and publish measurement data to the Pin Impedance Test step in MainSequence.
- ProcessSetup—Initializes instruments and instrument sessions.
- ProcessCleanup—Closes instrument sessions.
-
Specify a pin map file to define the instrumentation on the tester, define the
pins on the DUT, and define how DUT pins are connected to tester instrumentation
for each site.
-
Select or click the Edit Test Program
button on the ECU
Toolkit toolbar to launch the Test
Program Editor for the sequence file.
- Select the Pin Map panel and enter Basic Test Program.pinmap in the Pin Map File Path textbox. The filename you enter is a relative path from the sequence file to the pin map file, which in this case is located in the same directory as the sequence file.
-
Click the Edit Pin Map File
button located to the
right of the Pin Map File Path display to open
the Basic Test Program.pinmap file in the Pin
Map Editor.
- Review the pin map. Click OK to close the Pin Map Editor.
- Select the InstrumentStudio Project panel and enter Basic Test Program.instudioproj in the File Path textbox. The filename you enter is a relative path from the sequence file to the InstrumentStudio project file, which in this case is located in the same directory as the sequence file.
- Click OK to close the Test Program Editor.
-
Select or click the Edit Test Program
- Select the MainSequence sequence in the sequence file. This sequence contains the Pin Impedance Test step, which is an instance of the ECU Multi Test step type and uses the Sequence adapter.
- Select the Pin Impedance Test step and select the Tests tab of the Step Settings pane. You can use the Tests tab to define tests for individual pins or pin groups. You can use ECU Toolkit measurement control steps that refer to pin or pin group names in the called sequence without needing to know how each pin is connected to an instrument.
-
Create a test program configuration and specify a test limits
file to load limit values into ECU Multi
Test step tests at run time. You can use the same test program with
multiple configurations that specify different limits for the tests.
-
Select or click the Edit Test Program
button on the ECU
Toolkit toolbar to launch the Test
Program Editor for the sequence file.
- Select the Test Limits Files panel and click the Add Test Limits File button to add a new test limits file reference to the test program.
- Enter Production Limits as the name to identify the new test limits file in the test program.
- Enter ProductionLimits.txt in the Test Limits File Path textbox. The filename you enter is a relative path from the sequence file to the InstrumentStudio project file, which in this case is located in the same directory as the sequence file.
- Select the Configurations panel and click the Add Configurations button to add a new configuration to the test program.
- Enter Production as the name of the configuration.
- Select the newly created Production panel. Each configuration you specify uses a corresponding Configuration panel that contains a table of the test program conditions and fields for configuring the test limits file for the configuration.
- Select Production Limits in the Test Limits File listbox.
-
Select or click the Edit Test Program
-
Specify a sequence for the Pin Impedance Test step.
- Select the MainSequence sequence and Pin Impedance Test step.
- Select the Module tab on the Step Settings pane.
-
Click the Browse
button located to the
right of the File Pathname textbox.
- Browse to <TestStand Public>\Tutorial\NI_ECUToolkit\Basic Test Program\Basic Test Program.seq and click Open. Select the Use a Relative Path for the File you Selected option when prompted, and click OK.
- Select PinImpedanceTest_Core from the Sequence drop-down listbox.
-
In the Sequence Parameter Table, configure the
following parameter values:
Parameter Value Pin Map Context Step.PinMapContext Pins {"A","B","C","D","E","F"}
-
Specify a measurement configuration file for the Apply Pin
Configuration step in the PinImpedanceTest_Core
sequence called by the Pin Impedance Test step.
- Select the PinImpedanceTest_Core sequence and the Apply Pin Configuration step.
- Click the Step Settings tab on the Step Settings pane.
-
Click the Browse
button located to the
right of the Measurement Configuration Path
textbox.
- Browse to <TestStand Public>\Tutorial\NI_ECUToolkit\Basic Test Program\BasicTestProgram.measconfig and click Open. Select the Use a Relative Path for the File you Selected option when prompted, and click OK.
-
In the Parameter Table, configure the following
parameter values:
NAME VALUE Pin Map Context Parameters.PinMapContext Pins to Configure Parameters.Pins
- Save the sequence file.
-
Configure a lot to run.
-
Select or click the Configure Lot
button on the ECU
Toolkit toolbar to launch the Configure Lot Settings dialog box.
- Select Production in the Test Program Configuration option.
- Click OK to close the Configure Lot Settings dialog box.
Note You can also use the Active Configuration drop-down menu on the ECU Toolkit toolbar to set the configuration. -
Select or click the Configure Lot