1. Introduction

1.1. Glossary

Sequence File:
Represent a TestStand file with .seq extension that can contain one ore many sequences.

Sequence:
Represent a sequence of steps. Sequences have three groups of steps (Setup, Main, Cleanup) and are always part of a Sequence File.

1.2. Graph Legend

1.2.1. Graph Nodes

These nodes are used in graphs to represent elementary components :

Diagram

1.2.2. Graph Edges

A black arrow is used in graphs to represent calling relations between components :

Diagram

2. Workspace

2.1. Requirements

REQ_700, REQ_800

2.2. Workspace Hierarchy

This graph shows all Sequence Files in the workspace and their calling relationships.

Diagram

2.3. Workspace Objects

Table 1. Workspace Objects
Object Version

ni workspace Test Workspace

       ni project Project 1

             ni folder Chapters

                   ni seqfile Chapter1.seq

1.0.1.3

                   ni seqfile Chapter2.seq

2.0.0.0

             ni folder Common

                   ni seqfile Common1.seq

0.3.1.0

                   ni seqfile Common2.seq

1.0.6.0

             ni seqfile TestSequenceFile.seq

1.1.0.0

3. Code Modules

3.1. Languages

Diagram
Note

This graph only shows steps that are inside the documented Sequence Files. Other code modules may be called in child Sequence Files.

4. Chapter1.seq

4.2. File Properties

This sequence file contains all tests of chapter 1.

Table 2. Sequence File Properties
Display Name # of Sequences Version File Format

Chapter1.seq

3

1.0.1.3

Binary

4.4. File Globals

No objects of this type.

4.5. Sequences Overview

The Sequence File contains the following 3 Sequences:

Table 3. Sequences Overview
Name Type Steps Prototype

NI_UIControls\SeqCalbk.png icon for Sequence type MainSequence

Model Callback

4

MainSequence ()

NI_UIControls\SeqNorml.png icon for Sequence type Test 1

Normal

2

Test 1 (
   A (Number),
   B (Number),
   Result (Number)
)

NI_UIControls\SeqNorml.png icon for Sequence type Test 2

Normal

2

Test 2 (
   A (Number),
   B (Number),
   Result (Number)
)

4.6. Sequence MainSequence

Executes all tests defined in Chapter 1 of Test Program.

4.6.1. Requirements

REQ_004, REQ_005

4.6.2. Parameters

No objects of this type.

4.6.3. Steps

Table 4. Steps List
Step Description

SeqAdp Get Login Status

// This step is here to add a calling relation between Chapter1.seq and Common2.seq
Call Get Login Status( , Locals.LoginStatus) in Common2.seq

SeqAdp Test 1

Call Test 1(1, 2, Locals.Test1_Result) in <Current File>

SeqAdp Test 2

Call Test 2(8, 3, Locals.Test2_Result) in <Current File>

SeqAdp Cleanup Bench

Call Cleanup Instruments in Common1.seq

4.6.4. Locals

Table 5. Locals
Name (Type) Default Value Comment Flag

Test1_Result (Number)

0

0x0

Test2_Result (Number)

0

0x0

ResultList (Array of Result[0..empty])

…​

0x400000

LoginStatus (Boolean)

False

0x0

Translation of all flags used in Locals:

Table 6. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

4.7. Sequence Test 1

Add A+B and return result

4.7.1. Requirements

REQ_006, REQ_007

4.7.2. Parameters

Table 7. Parameters
Name (Type) Default Value Comment Flag

A (Number)

0

0x0

B (Number)

0

0x0

Result (Number)

0

The result of A + B

0x4

Translation of all flags used in Parameters:

Table 8. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

4.7.3. Steps

Table 9. Steps List
Step Description

StatementStep A+B

Parameters.Result=Parameters.A+Parameters.B

dotnet action Test .Net

Action, System.Data.CommandBehavior: CloseConnection Assembly: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

4.7.4. Locals

Table 10. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 11. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

4.8. Sequence Test 2

Substract A-B and return result

4.8.1. Requirements

REQ_008, REQ_009

4.8.2. Parameters

Table 12. Parameters
Name (Type) Default Value Comment Flag

A (Number)

0

0x0

B (Number)

0

0x0

Result (Number)

0

The result of A - B

0x4

Translation of all flags used in Parameters:

Table 13. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

4.8.3. Steps

Table 14. Steps List
Step Description

StatementStep A-B

Parameters.Result=Parameters.A-Parameters.B

lvadapt action Test LabVIEW

Action

4.8.4. Locals

Table 15. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 16. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

5. Chapter2.seq

5.1. Requirements

REQ_789, REQ_485

5.2. File Properties

This sequence file contains all tests of chapter 2.

Table 17. Sequence File Properties
Display Name # of Sequences Version File Format

Chapter2.seq

4

2.0.0.0

Binary

5.4. File Globals

No objects of this type.

5.5. Sequences Overview

The Sequence File contains the following 4 Sequences:

Table 18. Sequences Overview
Name Type Steps Prototype

NI_UIControls\SeqCalbk.png icon for Sequence type MainSequence

Model Callback

3

MainSequence ()

NI_UIControls\SeqNorml.png icon for Sequence type Test 3

Normal

2

Test 3 ()

NI_UIControls\SeqNorml.png icon for Sequence type Test 4

Normal

2

Test 4 ()

NI_UIControls\SeqNorml.png icon for Sequence type Test 5

Normal

2

Test 5 ()

5.6. Sequence MainSequence

Executes all tests defined in Chapter 2 of Test Program.

5.6.2. Parameters

No objects of this type.

5.6.3. Steps

Table 19. Steps List
Step Description

SeqAdp Test 3

Call Test 3 in <Current File>

SeqAdp Test 4

Call Test 4 in <Current File>

SeqAdp Test 5

Call Test 5 in <Current File>

5.6.4. Locals

Table 20. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 21. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

5.7. Sequence Test 3

Check a DMM measurement between limits

5.7.1. Requirements

REQ_006, REQ_007

5.7.2. Parameters

No objects of this type.

5.7.3. Steps

Table 22. Steps List
Step Description

StatementStep Measure DMM

Locals.Measure = 3.14

NoneAdp test Checks Locals.Measure

Numeric Limit Test, 3 ⇐ x ⇐ 5, V

5.7.4. Locals

Table 23. Locals
Name (Type) Default Value Comment Flag

Measure (Number)

0

0x0

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 24. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

5.8. Sequence Test 4

Check a SCOPE measurement for InRush current test.

5.8.2. Parameters

No objects of this type.

5.8.3. Steps

Table 25. Steps List
Step Description

StatementStep Measure SCOPE

Locals.Measurements = {1.01, 1.23, 2.05, 4.5, 2.1, 0.1}

StatementStep Check Locals.Measurements

5.8.4. Locals

Table 26. Locals
Name (Type) Default Value Comment Flag

Measurements (Array of Numbers[0..empty])

…​

0x0

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 27. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

5.9. Sequence Test 5

Visual inspection

5.9.2. Parameters

No objects of this type.

5.9.3. Steps

Table 28. Steps List
Step Description

MsgBox Ask if UUT is well painted and clean ?

NameOf(Step)

lvadapt action Call LabVIEW example

Action

5.9.4. Locals

Table 29. Locals
Name (Type) Default Value Comment Flag

Measurements (Array of Numbers[0..empty])

…​

0x0

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 30. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

6. Common1.seq

6.1. File Properties

No description found (add content in Sequence File description)

Table 31. Sequence File Properties
Display Name # of Sequences Version File Format

Common1.seq

2

0.3.1.0

Binary

6.3. File Globals

No objects of this type.

6.4. Sequences Overview

The Sequence File contains the following 2 Sequences:

Table 32. Sequences Overview
Name Type Steps Prototype

NI_UIControls\SeqNorml.png icon for Sequence type Get Bench Status

Normal

3

Get Bench Status (
   BenchStatus (Boolean)
)

NI_UIControls\SeqNorml.png icon for Sequence type Cleanup Instruments

Normal

2

Cleanup Instruments ()

6.5. Sequence Get Bench Status

Get the bench status from all bench components.

6.5.2. Parameters

Table 33. Parameters
Name (Type) Default Value Comment Flag

BenchStatus (Boolean)

False

0x4

Translation of all flags used in Parameters:

Table 34. Flags
Flag Value Description

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

6.5.3. Steps

Table 35. Steps List
Step Description

SeqAdp Get Login Status

Call Get Login Status( , Locals.LoginStatus) in Common2.seq

SeqAdp Get Power Status

Call Get Power Status(Locals.PowerStatus) in Common2.seq

StatementStep Return global status

Parameters.BenchStatus = Locals.LoginStatus && Locals.PowerStatus

6.5.4. Locals

Table 36. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

LoginStatus (Boolean)

False

0x0

PowerStatus (Boolean)

False

0x0

Translation of all flags used in Locals:

Table 37. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

6.6. Sequence Cleanup Instruments

Set Bench to default state to be ready for further tests. Used this sequence to control inial conditions of next test.

6.6.2. Parameters

No objects of this type.

6.6.3. Steps

Table 38. Steps List
Step Description

dotnet action Action

Action, System.Data.CommandBehavior: CloseConnection Assembly: System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089

StatementStep Cleanup Instruments

// Call code to cleanup bench

6.6.4. Locals

Table 39. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 40. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

7. Common2.seq

7.1. File Properties

No description found (add content in Sequence File description)

Table 41. Sequence File Properties
Display Name # of Sequences Version File Format

Common2.seq

3

1.0.6.0

Binary

7.3. File Globals

The scope of the file globals is 'All Executions Share'.

Table 42. File Globals
Name (Type) Default Value Comment Flag

String (String)

"toto"

0x0

StringArray (Array of Strings[0..1])

…​

0x0

└─ [0] (String)

"element1"

0x0

└─ [1] (String)

"element2"

0x0

Number (Number)

22

0x0

NumberArray (Array of Numbers[0..1])

…​

0x0

└─ [0] (Number)

1

0x0

└─ [1] (Number)

2.6

0x0

Boolean (Boolean)

False

0x0

BooleanArray (Array of Booleans[0..1])

…​

0x0

└─ [0] (Boolean)

False

0x0

└─ [1] (Boolean)

True

0x0

Object (Object Reference)

Nothing

0x0

ObjectArray (Array of Object References[0..empty])

…​

0x0

ContainerLevel1 (ContainerLevel1 (Container))

…​

0x0

└─ ContainerLevel2 (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

2

0x0

      └─ StringLevel2 (String)

"str2"

0x0

      └─ BooleanLevel2 (Boolean)

True

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

└─ NumberLevel1 (Number)

1

0x0

└─ StringLevel1 (String)

"str1"

0x0

└─ BooleanLevel1 (Boolean)

False

0x0

└─ ObjectLevel1 (Object Reference)

Nothing

0x0

ContainerLevel1Array (Array of ContainerLevel2[0..1])

…​

0x0

└─ [0] (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

1

0x0

      └─ StringLevel2 (String)

"str1"

0x0

      └─ BooleanLevel2 (Boolean)

True

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

└─ [1] (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

2

0x0

      └─ StringLevel2 (String)

"str2"

0x0

      └─ BooleanLevel2 (Boolean)

False

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

7.4. Sequences Overview

The Sequence File contains the following 3 Sequences:

Table 43. Sequences Overview
Name Type Steps Prototype

NI_UIControls\SeqNorml.png icon for Sequence type Get Login Status

Normal

2

Get Login Status (
   Access (Number),
   Status (Boolean)
)

NI_UIControls\SeqNorml.png icon for Sequence type Get Power Status

Normal

2

Get Power Status (
   Status (Boolean)
)

NI_UIControls\SeqNorml.png icon for Sequence type DummySequence

Normal

1

DummySequence (
   String (String),
   StringArray (Array of Strings[0..1]),
   StringArray[0] (String),
   StringArray[1] (String),
   Number (Number),
   NumberArray (Array of Numbers[0..1]),
   NumberArray[0] (Number),
   NumberArray[1] (Number),
   Boolean (Boolean),
   BooleanArray (Array of Booleans[0..1]),
   BooleanArray[0] (Boolean),
   BooleanArray[1] (Boolean),
   Object (Object Reference),
   ObjectArray (Array of Object References[0..empty]),
   ContainerLevel1 (ContainerLevel1 (Container)),
   ContainerLevel1Array (Array of ContainerLevel2[0..1]),
   ContainerLevel1Array[0] (ContainerLevel2 (Container)),
   ContainerLevel1Array[1] (ContainerLevel2 (Container))
)

7.5. Sequence Get Login Status

Get login status from the bench login manager. It returns the status and the access rights of the current login user.

7.5.2. Parameters

Table 44. Parameters
Name (Type) Default Value Comment Flag

Access (Number)

0

Represent the access level of current user (0 = not logged in, 1 = operator, 2 = maintainer, 3 = admin)

0x4

Status (Boolean)

False

True if a user is logged in

0x4

Translation of all flags used in Parameters:

Table 45. Flags
Flag Value Description

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

7.5.3. Steps

Table 46. Steps List
Step Description

StatementStep Get Login Status

// This step gets login status
Parameters.Status = True, Parameters.Access = 1

lvadapt action Login LabVIEW

// Call login Manager
Action

7.5.4. Locals

Table 47. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 48. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

7.6. Sequence Get Power Status

Get the power status of the test bench.

7.6.2. Parameters

Table 49. Parameters
Name (Type) Default Value Comment Flag

Status (Boolean)

False

True if 24V PSU and 40V PSU are running correctly

0x4

Translation of all flags used in Parameters:

Table 50. Flags
Flag Value Description

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

7.6.3. Steps

Table 51. Steps List
Step Description

StatementStep Get Power Status

// This step gets power status
Parameters.Status = True

lvadapt action Get Power Supply Satuts

Action

7.6.4. Locals

Table 52. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 53. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

7.7. Sequence DummySequence

This sequence is used to test that all types of variables are correctly managed in Locals and Parameters.

7.7.1. Parameters

Table 54. Parameters
Name (Type) Default Value Comment Flag

String (String)

"toto"

This parameter is used to pass string to the function

0x0

StringArray (Array of Strings[0..1])

…​

0x0

└─ [0] (String)

"element1"

0x0

└─ [1] (String)

"element2"

0x0

Number (Number)

22

This parameter is used to pass number to the function

0x4

NumberArray (Array of Numbers[0..1])

…​

0x0

└─ [0] (Number)

1

0x0

└─ [1] (Number)

2.6

0x0

Boolean (Boolean)

False

This parameter is used to pass boolean to the function

0x0

BooleanArray (Array of Booleans[0..1])

…​

0x4

└─ [0] (Boolean)

False

0x4

└─ [1] (Boolean)

True

0x4

Object (Object Reference)

Nothing

This parameter is used to pass container to the function

0x4002000

ObjectArray (Array of Object References[0..empty])

…​

0x0

ContainerLevel1 (ContainerLevel1 (Container))

…​

This parameter is used to pass container to the function

0x0

└─ ContainerLevel2 (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

2

0x0

      └─ StringLevel2 (String)

"str2"

0x0

      └─ BooleanLevel2 (Boolean)

True

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

└─ NumberLevel1 (Number)

1

0x0

└─ StringLevel1 (String)

"str1"

0x0

└─ BooleanLevel1 (Boolean)

False

0x0

└─ ObjectLevel1 (Object Reference)

Nothing

0x0

ContainerLevel1Array (Array of ContainerLevel2[0..1])

…​

0x0

└─ [0] (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

1

0x0

      └─ StringLevel2 (String)

"str1"

0x0

      └─ BooleanLevel2 (Boolean)

True

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

└─ [1] (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

2

0x0

      └─ StringLevel2 (String)

"str2"

0x0

      └─ BooleanLevel2 (Boolean)

False

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

Translation of all flags used in Parameters:

Table 55. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

0x4002000

IncludeInReport (0x2000) - Set this flag on a property to specify that a report generator displays the property in the report. This flag affects only properties that are in a result list or that TestStand copies to a result list. Typically, a report generator considers that the IncludeInReport flag on a container property applies recursively to the subproperties of the container. Typically, a report generator does not recursively apply this flag from a property to its attributes. Set this flag on both the attribute and on the property that owns the top-level attribute for the attribute to appear in the report.

NameNotEditable (0x4000000) - Set this flag to prevent the user from editing the name of the object in a sequence editor.

7.7.2. Steps

Table 56. Steps List
Step Description

PythonAdapt action Dummy Python

// Call login Manager
Action

7.7.3. Locals

Table 57. Locals
Name (Type) Default Value Comment Flag

String (String)

"toto"

0x0

StringArray (Array of Strings[0..1])

…​

0x0

└─ [0] (String)

"element1"

0x0

└─ [1] (String)

"element2"

0x0

Number (Number)

22

0x0

NumberArray (Array of Numbers[0..1])

…​

0x0

└─ [0] (Number)

1

0x0

└─ [1] (Number)

2.6

0x0

Boolean (Boolean)

False

0x0

BooleanArray (Array of Booleans[0..1])

…​

0x0

└─ [0] (Boolean)

False

0x0

└─ [1] (Boolean)

True

0x0

Object (Object Reference)

Nothing

0x0

ObjectArray (Array of Object References[0..empty])

…​

0x0

ContainerLevel1 (ContainerLevel1 (Container))

…​

0x0

└─ ContainerLevel2 (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

2

0x0

      └─ StringLevel2 (String)

"str2"

0x0

      └─ BooleanLevel2 (Boolean)

True

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

└─ NumberLevel1 (Number)

1

0x0

└─ StringLevel1 (String)

"str1"

0x0

└─ BooleanLevel1 (Boolean)

False

0x0

└─ ObjectLevel1 (Object Reference)

Nothing

0x0

ContainerLevel1Array (Array of ContainerLevel2[0..1])

…​

0x0

└─ [0] (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

1

0x0

      └─ StringLevel2 (String)

"str1"

0x0

      └─ BooleanLevel2 (Boolean)

True

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

└─ [1] (ContainerLevel2 (Container))

…​

0x0

      └─ NumberLevel2 (Number)

2

0x0

      └─ StringLevel2 (String)

"str2"

0x0

      └─ BooleanLevel2 (Boolean)

False

0x0

      └─ ObjectLevel2 (Object Reference)

Nothing

0x0

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 58. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

8. TestSequenceFile.seq

8.1. Requirements

REQ_493, REQ_448

8.2. File Properties

This sequence file is the top level file in the workspace used for unit tests. This file calls other sequence files to simulate a standard test program architecture.

Table 59. Sequence File Properties
Display Name # of Sequences Version File Format

TestSequenceFile.seq

4

1.1.0.0

Binary

8.4. File Globals

No objects of this type.

8.5. Sequences Overview

The Sequence File contains the following 4 Sequences:

Table 60. Sequences Overview
Name Type Steps Prototype

NI_UIControls\SeqCalbk.png icon for Sequence type MainSequence

Model Callback

3

MainSequence ()

NI_UIControls\SeqNorml.png icon for Sequence type Initialize Bench

Normal

4

Initialize Bench (
   SCOPE (String),
   DMM (String)
)

NI_UIControls\SeqReserved.png icon for Sequence type SequenceFilePreStep

Engine Callback

0

SequenceFilePreStep (
   Step (Container),
   Result (Container)
)

NI_UIControls\SeqCalbk.png icon for Sequence type PreUUT

Model Callback

1

PreUUT (
   ContinueTesting (Boolean),
   UUT (UUT (Container)),
   TestSocket (NI_SequentialTestSocket (Container)),
   ModelData (NI_SequentialModelData (Container)),
   ModelPluginConfiguration (NI_ModelPluginConfiguration (Container))
)

8.6. Sequence MainSequence

8.6.1. Requirements

REQ_001, REQ_002

8.6.2. Parameters

No objects of this type.

8.6.3. Steps

Table 61. Steps List
Step Description

SeqAdp Initialize Bench

Call Initialize Bench("MyScopeRef", "MyDMMRef") in <Current File>

SeqAdp Execute Chapter 1

Call MainSequence in Chapter1.seq

SeqAdp Execute Chapter 2

Call MainSequence in Chapter2.seq

8.6.4. Locals

Table 62. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 63. Flags
Flag Value Description

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

8.7. Sequence Initialize Bench

Initialize Test Bench to put every instrument in the propoer state for tests.

8.7.1. Requirements

REQ_003, REQ_004

8.7.2. Parameters

Table 64. Parameters
Name (Type) Default Value Comment Flag

SCOPE (String)

""

Resource Name of the SCOPE used for test

0x4

DMM (String)

""

Resource Name of the DMM used for test

0x4

Translation of all flags used in Parameters:

Table 65. Flags
Flag Value Description

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

8.7.3. Steps

Table 66. Steps List
Step Description

lvadapt action Init All LabVIEW

Action

StatementStep Initialize the DMM

// Initialize the DMM
Parameters.DMM

StatementStep Initialize the SCOPE

// Initialize the SCOPE
Parameters.SCOPE

SeqAdp Get Bench Status

Call Get Bench Status(Locals.BenchStatus) in Common1.seq

8.7.4. Locals

Table 67. Locals
Name (Type) Default Value Comment Flag

BenchStatus (Boolean)

False

0x0

ResultList (Array of Result[0..empty])

…​

0x400000

Translation of all flags used in Locals:

Table 68. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

8.8. Sequence SequenceFilePreStep

Executes before each steps

8.8.1. Parameters

Table 69. Parameters
Name (Type) Default Value Comment Flag

Step (Container)

…​

0x84

Result (Container)

…​

0x84

Translation of all flags used in Parameters:

Table 70. Flags
Flag Value Description

0x84

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

DontTypeCheckParameter (0x80) - Set this flag in a sequence parameter to disable type-checking for the parameter.

8.8.2. Steps

No steps in this Sequence

8.8.3. Locals

Table 71. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x0

8.9. Sequence PreUUT

Displays a dialog box in which the operator enters the UUTserial number. Override this in client file to change or replace this action.

8.9.1. Parameters

Table 72. Parameters
Name (Type) Default Value Comment Flag

ContinueTesting (Boolean)

True

0x4

UUT (UUT (Container))

…​

0x84

└─ SerialNumber (String)

""

0x0

└─ UUTLoopIndex (Number)

0

0x0

└─ CriticalFailureStack (Array of NI_CriticalFailureStackEntry[0..empty])

…​

0x0

└─ BatchSerialNumber (String)

""

0x0

└─ TestSocketIndex (Number)

-1

0x0

└─ PartNumber (String)

""

0x0

└─ AdditionalData (Container)

…​

0x200000

TestSocket (NI_SequentialTestSocket (Container))

…​

This data type exists for symmetry with the batch and parallel models. Currently it has no fields.

0x84

ModelData (NI_SequentialModelData (Container))

…​

0x84

└─ ModelType (NI_ModelType (String))

"Sequential"

Valid values for NI models are "Sequential", "Batch", or "Parallel"

0x0

└─ EntryPoint (String)

""

0x0

└─ ModelOptions (ModelOptions (Container))

…​

0x0

      └─ NumTestSockets (Number)

4

0x0

      └─ HideExecutions (Boolean)

False

0x0

      └─ TileExecutions (Boolean)

True

0x0

      └─ DefaultBatchSync (Number)

0

0x0

      └─ SequentialBatchMode (Boolean)

False

0x0

      └─ BringUUTDlgToFrontOnChange (Boolean)

True

0x0

      └─ ParallelModel_ShowUUTDlg (Boolean)

True

0x0

      └─ DiscardUnusedResults (Boolean)

False

0x0

└─ StationInfo (NI_StationInfo (Container))

…​

0x0

      └─ StationID (String)

""

0x0

      └─ LoginName (String)

""

0x0

      └─ AdditionalData (Container)

…​

0x200000

└─ StartTime (TimeDetails (Container))

…​

0x0

      └─ Text (String)

""

0x0

      └─ Hours (Number)

0

0x0

      └─ Minutes (Number)

0

0x0

      └─ Seconds (Number)

0

0x0

      └─ Milliseconds (Number)

0

0x0

└─ StartDate (DateDetails (Container))

…​

0x0

      └─ Text (String)

""

0x0

      └─ ShortText (String)

""

0x0

      └─ Year (Number)

0

0x0

      └─ Month (Number)

0

0x0

      └─ MonthDay (Number)

0

0x0

      └─ WeekDay (Number)

0

0x0

ModelPluginConfiguration (NI_ModelPluginConfiguration (Container))

…​

0x4

└─ Plugins (Array of NI_ModelPlugin[0..empty])

…​

0x0

└─ RuntimeVariables (NI_ModelPluginConfigurationRuntimeVariables (Container))

…​

0x0

      └─ RunOrders (Container)

…​

0x0

            └─ Begin (Array of Object References[0..empty])

…​

0x0

            └─ PreBatch (Array of Object References[0..empty])

…​

0x0

            └─ BatchStart (Array of Object References[0..empty])

…​

0x0

            └─ PreUUT (Array of Object References[0..empty])

…​

0x0

            └─ UUTStart (Array of Object References[0..empty])

…​

0x0

            └─ OnTheFlyStepResults (Array of Object References[0..empty])

…​

0x0

            └─ UUTDone (Array of Object References[0..empty])

…​

0x0

            └─ PostUUT (Array of Object References[0..empty])

…​

0x0

            └─ BatchDone (Array of Object References[0..empty])

…​

0x0

            └─ PostBatch (Array of Object References[0..empty])

…​

0x0

            └─ End (Array of Object References[0..empty])

…​

0x0

      └─ LastControllerUUT (Object Reference)

Nothing

0x0

      └─ ControllerAndSocketSynchronizationManager (Object Reference)

Nothing

0x0

      └─ OfflineProcessingResultLog (Object Reference)

Nothing

0x0

      └─ PluginSequenceFileCache (Object Reference)

Nothing

0x0

      └─ ModelDialogsEnabled (Container)

…​

0x0

            └─ BatchModelGetNextUUTs (Boolean)

True

0x0

            └─ BatchModelShowStatus (Boolean)

True

0x0

            └─ ParallelModelUUTInfoDialog (Boolean)

True

0x0

            └─ SequentialShowSerialNumber (Boolean)

True

0x0

            └─ SequentialShowStatus (Boolean)

True

0x0

            └─ SequentialTestUUTsTerminationOption (NI_SequentialTestUUTsTerminationOptions (Enumeration))

[Prompt] (0)

0x0

      └─ CanDiscardResults (Boolean)

False

0x0

      └─ CanDisableResults (Boolean)

False

0x0

      └─ FirstAsynchronousError (Error (Container))

…​

0x0

            └─ Code (Number)

0

0x400000

            └─ Msg (String)

""

0x400000

            └─ Occurred (Boolean)

False

0x400000

      └─ AsynchronousThreadLimit (Number)

0

0x0

      └─ PerSocket (Array of NI_ModelPluginConfigurationPerSocketRuntimeVariables[0..empty])

…​

0x0

└─ OTF (Container)

…​

0x0

      └─ PostResultsCallbackInterval (Number)

-1.5

0x0

      └─ MaximumResultsPerPostResultsCallback (Number)

500

0x0

└─ GUID (String)

""

0x0

└─ RunOrder (Number)

0

0x0

Translation of all flags used in Parameters:

Table 73. Flags
Flag Value Description

0x0

NoFlags (0x0) - No Flags

0x4

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

0x84

PassByReference (0x4) - This flag allows a sequence to control how TestStand passes each parameter to it. Set this flag to pass the parameter by reference. Remove this flag to pass a copy of the parameter.

DontTypeCheckParameter (0x80) - Set this flag in a sequence parameter to disable type-checking for the parameter.

0x200000

UnstructuredProperty (0x200000) - This flag indicates that no type restrictions exist for the property. Separate instances of the property can contain objects of different types.

0x400000

NotDeletable (0x400000) - Set this flag in any object to prevent the user from deleting the object in a sequence editor.

8.9.2. Steps

Table 74. Steps List
Step Description

SeqAdp Call DoPreUUT

// Call the current model for the default functionality. We don’t include the model specific steps in this sequence so the overridden callback works under all models after the user overrides it, copying its steps to their client file.
Call "DoPreUUT"(Parameters.ContinueTesting, Parameters.UUT, Parameters.TestSocket, Parameters.ModelData, Parameters.ModelPluginConfiguration) in Runstate.Execution.ModelSequenceFilePath

8.9.3. Locals

Table 75. Locals
Name (Type) Default Value Comment Flag

ResultList (Array of Result[0..empty])

…​

0x0

9. Traceability

9.1. Requirement Matrix

Table 76. Requirement Matrix
Requirement ID Coverage

REQ_001

TestSequenceFile.seq - MainSequence

REQ_002

TestSequenceFile.seq - MainSequence

REQ_003

TestSequenceFile.seq - Initialize Bench

REQ_004

Chapter1.seq - MainSequence; TestSequenceFile.seq - Initialize Bench

REQ_005

Chapter1.seq - MainSequence

REQ_006

Chapter1.seq - Test 1; Chapter2.seq - Test 3

REQ_007

Chapter1.seq - Test 1; Chapter2.seq - Test 3

REQ_008

Chapter1.seq - Test 2

REQ_009

Chapter1.seq - Test 2

REQ_010

Common2.seq - Get Login Status

REQ_011

Chapter2.seq - Test 4

REQ_012

Chapter2.seq - Test 5

REQ_020

Common2.seq - Get Power Status

REQ_030

Common1.seq - Get Bench Status

REQ_040

Common1.seq - Cleanup Instruments

REQ_050

Chapter2.seq - MainSequence

REQ_448

TestSequenceFile.seq

REQ_485

Chapter2.seq

REQ_493

TestSequenceFile.seq

REQ_567

Chapter1.seq

REQ_700

Test Workspace.tsw

REQ_789

Chapter2.seq

REQ_800

Test Workspace.tsw