Copyright © 2024 | All Rights Reserved
From the main menu select Scripting and Automation> Function Blocks.
Click the + button and select Script to create a new Script type function block. Change the description of the function block to something more descriptive like Check Codes and Log Them to a File.
Now a script needs to be entered. For this task 4 steps will be needed (Table 1). For Diag Job Action double clicking on the Value cell will allow selection of the diagnostic job to act on and how to act on it. For more information on this command see the help for the Diag Job Action command.
Table 1: Script function block steps.
Step | Command | Value | Reason for Step |
---|---|---|---|
On the Start tab select Manual Start. This allows the Script function block to be started using Graphical Panel controls that will be set up in the next part of this tutorial.
1
Diag Job Action
Start Request DTCs from all nodes
Starts, or launches, the diagnostic service.
2
Diag Job Action
Wait until Complete Request DTCs from all nodes
Waits at this step until the selected diagnostic service is finished. When completed, continues to the next step.
3
Diag Job Action
Save Request DTCs from all nodes
Saves the received data and message traffic to a log file.
4
Stop
n/a
Ends this function block.