Double Ten technology is about creating sequences automatically

Date:2022/12/26 10:03:29 / Read: / Source:本站

Double Ten technology is about creating sequences automatically
In the previous section, we opened a sample sequence file and executed the main sequence in a different way
You'll learn how to create a new sequence file, create a sequence, and add steps to a sequence. Open the sequence editor,
Run the "File; New; "Create a new Sequence File, or click the diagram on the toolbar
You should see the main screen similar to Figure 4-1. By default, the new sequence file has only one sequence, that is
The main sequence contains three groups of steps that do not contain any steps in the initial state.
Tip: The shortcut to create a sequence file is "Ctrl+N".
Figure 4-2 TestStand built-in step types
Refer to Figure 2-13 when referring to the step list pane and step Settings pane in subsequent sections
Corresponding to what position to operate.
Next, add steps to the new sequence file. There are many types in the insertion panel of the sequence editor
TestStand comes with three types of steps (as shown in Figure 4-2) : 1. Use any steps
Module adapters, such as the "Action" step type, can call LabVIEW, LabWindows/CVI, C/C
TestStand can pass arguments to code modules such as ++DLL. Some also perform additional operations
Do, for example, compare the return value of the code module with the limit value; ② Use specific module adapters, such as
The "Sequence Call "step type specifies the use of the Sequence module adapter; Perform specific operations
Do, but do not need to call code modules such as "Statement", "Label", "Message Popup",
"Flow Control', etc., will explain how to use these steps in more detail later.
First add a Message Popup step to the principal group. To perform this operation, click the Insert surface
Drag the Message Popup step type into the main group area of the Steps list pane by holding it down
Domain, release the mouse, and a step is added. In the same way, add another Label step
Sudden. During the drag and drop, notice that when the mouse moves over the step list pane, a virtual appears
A rectangular box of lines with a solid line in bold above it. The position of the solid line determines what is added
The position of the steps in the sequence (as shown in Figure 4-3). If you select a step type from the Insert panel and add
To the step list pane, an instance of the step type is created.
Figure 4-4 Sequence after adding the two steps
In the sequence editor, in addition to adding steps through the Insert panel, you can also right-click the square of the menu
Expression implementation. Suppose you want to add a "Statement" step to 1) of the "Message Popup" and "Label" steps
You can right-click in the step list pane and select the "Message Popup" step in the pop-up shortcut menu
Select "Insert Step)) Statement"(as shown in Figure 4-5), and then select" Message Popup".
Then a new step is added.
After adding a series of steps to the sequence, what if you find that you need to adjust the order of some of the steps
Operation? For example, in Figure 4-4, you need to place the "Label "step before the" Message Popup "step. Do concretely
To do this, select the "Label" step and then drag it over the "Message Popup" step to release the mouse
Mark. During the drag process, the position of the solid black line is the new position of the step. To delete a step, select
To Delete it, right click and select "Delete" from the drop-down menu, or press the Delete key. As you can see,
If the steps correspond to a number of test items, adjusting the test items in the sequence editor is very simple
Things that don't require any coding work. In the sequence editor, cut, copy, and paste these operations
It is exactly the same as any other application. Select a step and click the icon basin 1bm on the toolbar
Cut, copy and paste the steps respectively. Use the menu command "File))Save" or click the toolbar
The icon N can save the sequence file. In the pop-up dialog box, select the save path and enter the file name, one

A sequence file is created.

4.2 Step Built-in Attributes
For each step type, set its instance in the Step Settings pane, which contains
The common Settings page, which is the same for all step types; It also contains steps for specific types
Pages, which vary by step type, because each step type contains built-in attributes
And custom properties. Built-in attributes are present for all step types, although their default values may be
No, custom properties vary depending on the type of step. In the step Settings pane, the Properties Tab (genus
Sex configuration page), you can set built-in properties. There are many built-in properties, mainly the basics of the setup steps
The information, such as step name, description, run options, and so on, forms a list in the property configuration page and clicks the column
For each item in the table control, its panel is displayed to the right, as shown in Figure 4-6 as the "General" panel
The board. These built-in properties are described next using the Statement declaration step type as an example, followed by other steps
I won't repeat this part of the setup when typing.
General Panel(General Panel)
Figure 4-6 shows the common panel, which contains step name, step type, icon, description, and comment
Some of the information is displayed in the step list pane.
Figure 4-6 Property configuration page
Name: Name of the setting step. You can also right-click a node in the step list pane
Step 1, then select "Rename" from the shortcut menu that pops up. In the steps list pane, select the steps
After that, click the step again to rename it again.
Type: Displays the type of the current step, usually not set, such as adding a declaration step,
Then its type is automatically Statement,
Adapter: There are step types that call code modules. There are many types of adapters,
For step types that do not call code modules, such as declarations, the value is "None" and is not set by default.
Icon: Each step type has its own unique icon that appears in the step list pane
You can also collect ICONS and add them to the < TestStand Public·\Components\lcons\ directory
Description: For each step, its description appears in the step list pane
The description information is automatically generated based on the step Settings and cannot be entered manually.
Comment: Add descriptive information about the purpose and purpose of this step
, you can make comments here, and these will also appear in the step list pane for later dimensions
Protection of
Run Options Pane 1 (Run Options Pane)
Run Options panel (as shown in Figure 4-7) contains code module loading and unloading mode Settings, run mode
, interactive execution steps, result collection, and handling of test failures and errors.
Load Options: Declares when code modules will be loaded into memory. total
There are three modes, which are easier to understand literally :"Preload when opening sequence file "is in
The code module is loaded when the sequence file is opened :"Preload when execution begins"
The code module is not loaded until the column starts executing, which is also the default; Load dynamicall is executed roughly
Only load its code module at this step, a pattern that reduces memory overhead but affects the sequence
The speed of execution.
Tip: How to set an option and the specific meaning of the setting item can be adjusted at any time through the shortcut key "F1"
The TestStand help document will automatically locate the help information corresponding to the current option.
You can also click the toolbar icon to bring up the help.
Unload Options: Corresponding to loading options, unload options determine code modules
When to remove from memory. Code modules can be unloaded to save memory space and free occupied text
So that other applications can access l 'Ed and edit the file. Unload when sequence file is
unloaded', is the default option, when the sequence file is unloaded.
Run Mode: There are four running modes, namely "Normal", "Skip",
"Force to Pass", "Force to Fail", which is useful for debugging, as described in Chapter 6
Precondition Evaluation in Interactive mode. Precondition evaluation in interactive mode
Mode): Declares whether a prerequisite is in effect when a step is executed in interactive mode. The same will happen in chapter 6
There is a detailed introduction.
TestStand Window Activation: After a step is performed, whether
Let the operating system focus on the TestStand window. This feature may be useful in some cases, such as code modules
I'm going to pop up a dialog, and then I'm going to go back to TestStand,
Result Record Option: Determines whether TestStand collects this step
The result.
Step Failure Cause Sequence Failure (Step Failure Cause Sequence Failure): Mo
The recognition is selective, as long as one step of the test fails the state of the entire sequence is failed, for some it is not
Very important step, it is recommended not to check it.
Ignore Run-Time Errors: After this option is selected, if the current step or
TestStand automatically ignores errors that occur during execution in the code module it calls
TestStand no longer enables error handling.
Looping Panel
On the Cycle panel (as shown in Figure 4-8), you can set the cycle mode for a single step. For example, let the current step
Perform this step a fixed number of times or repeat this step several times until the status changes to Pass or Fail. cycle
There are four ways to do this.
None: The step does not work in loop mode, which is the default setting.
Fixed Number of loops: fixed number of loops in the current step. step
The final state is determined by the ratio of the number of qualified states to the total number of cycles.
Pass/Fail count (Pass/Fail count):TestStand continues to loop through this step until it does
The number of qualified or failed steps reached the specified value, or the number of steps executed reached the upper limit in advance.
TestStand determines steps based on the number of passes or fails, and whether the number of loops reaches the maximum number of executions
Final state.
Custom: Custom loop mode, this method is the most flexible, loop initial value, loop
Variable increment step size can be set arbitrarily.


Call Us Now 0755-28905930 OR More Contact Information →

Go To Top