Background
The ATML standard provides an application environment framework of object-oriented design as a standard for storing and transmitting information between test systems and in the test systems, and the specific problems of triggering and synchronization are required to be further solved along with the continuous development of the ATML technology and the gradual penetration of engineering application. Triggering and synchronizing are common functions in automatic test platform engineering applications, and are used for realizing the functions of synchronizing, triggering and the like of contents such as instruments, signals, events and the like. In the automatic test process of a complex equipment system, strict time sequence requirements often exist for certain specific test requirements of a tested object, and the requirements can be described and realized based on an ATML system automatic test platform.
At present, the research and engineering implementation of triggering and synchronization technology based on an ATML system are less in China, and the description and implementation of triggering and synchronization technology based on an ATML standard in an automatic test platform used at present in China are not mature, so that the automatic test platform becomes a technical difficulty of the practical engineering of ATML. The synchronization and triggering technology of the automatic test software platform based on the ATML system needs to realize two functions: in the first aspect, the automatic test software platform needs to describe the information such as the test requirement, the test process, the hardware representation and the like which are triggered and synchronized clearly on the related ATML file; in the second aspect, the automatic test software platform can analyze and realize the clearly described requirements, and finally form test execution and test actions to complete test tasks. The platform has the two functions to realize the synchronization and triggering technology in the true sense.
The invention provides an ATML (automatic test markup language) -based signal-oriented test system and a synchronization and triggering method, and provides a description method for information such as a test requirement, a test process, hardware representation and the like of triggering and synchronization of an automatic test software platform aiming at the test requirement of synchronization and triggering on a system platform or software in an ATML-based signal-oriented test process; the automatic test software platform is provided for analyzing and realizing clear description requirements, finally forming test execution and test actions based on a synchronization and trigger scene, completing synchronization and trigger test tasks, obtaining test result files, and solving the technical problem of signal test synchronization and trigger oriented in China based on ATML standards.
Disclosure of Invention
In order to solve the problem that the existing signal-oriented general automatic test system and software are difficult to realize synchronization and triggering, one of the purposes of the invention is to provide a signal-oriented test system based on ATML standard, which comprises: the system comprises a synchronization and trigger information description component, a system integration and path searching component, a test execution and state machine component and an instrument driving synchronization trigger component, wherein the synchronization and trigger information description component provides clear description for the test requirements of synchronization and triggering; the system integration and path searching component provides test system integration connection description and an automatic searching method for triggering a synchronous path for synchronous and triggered test requirements; the test execution and state machine component completes a test execution part according to the trend of an execution logic automatic control flow specified by the synchronous and triggered test flow; the instrument driving synchronous triggering component builds signal driving to complete the instrument action of the test system, and the analysis and action conversion of the information of the synchronous and triggering description in the signal model are realized by utilizing the synchronous and triggering realization technology.
Optionally, a clear description is provided for the synchronization and triggering of test requirements, including a signal-based model, a time-based model, an event-based model, and an extension model.
Optionally, the ATML file related to the test system integrated connection description includes a test object description UUT file, a test adapter description TA file, a test workstation description TS file, and a test instrument description TI file.
One of the purposes of the present invention is also to provide a signal test synchronization and triggering method based on the ATML standard, which comprises the following steps:
step 1), aiming at a TD model and a UUT model in an ATML model, carrying out synchronization and description of trigger information;
step 2) aiming at a WL model, a TA model, a TS model and a TI model in the ATML model, providing test system integrated connection description and automatic searching of a synchronous and trigger path for synchronous and triggered test requirements;
Step 3) completing a test execution part according to the trend of an execution logic automatic control flow specified by the synchronous and trigger test flow;
and 4) constructing a signal to drive and complete the action of the test system instrument, so as to realize the synchronization and triggering operation.
Optionally, the step 3) further includes: and processing and analyzing the condition that the monitoring signals are used for all the test actions, so as to realize all the actions of the monitor signal flow in the test execution.
Optionally, the step 4) further includes: and the analysis and action conversion of the information of the synchronization and trigger description in the signal model are realized by utilizing a synchronization and trigger realization technology, and the synchronization and trigger requirements are converted into the synchronization and trigger operation of software and hardware.
The invention provides clear description of synchronization and triggering aiming at the test requirements of synchronization and triggering on a system platform or software in the signal-oriented test process based on ATML standard, comprising a signal-based model, a time-based model, an event-based model and an expansion model, provides an automatic search method of test system integrated connection description and trigger synchronization path for the test requirements of triggering and synchronization, and automatically controls the trend of the flow according to execution logic specified by the synchronous trigger test flow, and the completion test execution part processes and analyzes the condition that each test action uses the monitoring signal, realizes each action of the monitoring signal flow in test execution, constructs a signal to drive and complete the action of a test system instrument, and realizes the analysis and action conversion of the information of the synchronization and trigger description in the ATML model by utilizing the synchronization and trigger realization technology, thereby realizing the whole process of synchronization and trigger oriented signal test based on the ATML standard.
Detailed Description
The following describes the signal testing system and the synchronization and triggering method based on the ATML standard in detail. Advantages and features of the invention will become more apparent from the following description and from the claims. It should be noted that the drawings are in a very simplified form and are all to a non-precise scale, merely for convenience and clarity in aiding in the description of embodiments of the invention.
The invention provides a signal-oriented testing system based on ATML standard, which is shown in figure 1 and comprises:
1) The synchronization and trigger information description component: clear descriptions are provided for the synchronous and triggered test requirements, including signal-based models, time-based models, event-based models, and expansion models. The Monitor role is a signal role defined by the IEEE1671.1 standard and specially used for constructing synchronization or triggering, and is a carrier of basic signals and synchronization logic relations of the synchronization triggering technology. The signals are described in detail in 4 signal types based on Monitor roles: a Signal-based model (Signal-based) for monitoring a model Signal of the IEEE1641 to be referred to, describing that an event is generated when a certain attribute of the monitored Signal changes in a specified manner, and outputting the event, and generating an event every time a condition is satisfied. A Time-Based model (Time-Based) for implementing the generation and output of events when a specific Time condition is satisfied. The model comprises a period interval for generating time events, the generation times and the like, and realizes that the events with specific times are generated in a certain time period. An Event-based model (Event-based) for implementing a response based on existing Event class signals To complete more complex events, the Event-based model consisting of "From" events and "To" events together. In addition, the extended model (Other) can be used for carrying out additional extension according to the needs except the 3 established models, so that event generation based on the user-defined condition is realized. The Monitor signal can be referenced by the test actions in the present test actions, including OperationSetup (set signal), operationChange (signal modification), operationConnect (establish connection), operationEnable (enable signal), operationDisable (disable signal), operationDisconnect (disconnect), operationReset (signal reset). The synchronization element has two synchronization modes, one is "SyncTo" and one is "Gated". The select SyncTo attribute needs to point to a monitor signal indicating that the signal action is synchronized with the event generated by the monitor signal. It should be noted that the monitor signal should at least have completed the "set signal", "enable signal" operations before the test action is performed. The select Gated attribute indicates that the signal operation is controlled by the event, while the form in which the control needs to be selected is "width" or "FromTo". "With" is used and points to a monitor signal, indicating that the operation is controlled solely by this monitor signal. If "FromTo" is used, then this operation requires two signal event controls, requiring the monitor signals of "From" and "To be asserted, respectively.
2) System integration and path finding component: the method for automatically searching the integrated connection description and the triggering synchronous path of the test system is provided for the synchronous and triggered test requirements; and providing test resource and test system hardware relation description based on the ATML system, and realizing automatic allocation of the test resource. The implementation of the synchronization and triggering process needs to complete the description work of the system integration first, and the related ATML files include UUT (object description) files, TA (test adapter description) files, TS (test workstation description) files and TI (test instrument description) files. After the description is completed, the automatic searching of the synchronous and triggering resource paths is realized according to the file description. In the UUT model building process, corresponding Connector connectors and Port ports are created under an Interface element, the TA model needs to respectively create the corresponding Connector connectors and Port ports under the Interface element and respectively comprise positive and negative Pin pins, internal network connection descriptions of the two ports are created, and meanwhile, the attribute of the Connector is set to be a 'back end' to be connected with the TS model. The TS model describes internal test resources and hardware trigger and synchronous connection information of a test system through an Interface in a description test station, such as back board trigger of a PXI and VXI controller, and takes the PXI bus controller as an example, a plurality of buses on the back board are used for realizing signal transmission of trigger and the like, and in order to realize transmission of trigger signals and trigger resource path matching, an internal Connector is required to be built in TS file Interface description, and NetworkList network connection description among ports is required to be built between test resources which are required to be synchronized and triggered. A Trigger Resource (Resource) description of the TI model instrument comprises Trigger elements (Trigger) in the instrument Resource to describe the Trigger and synchronization capability of the instrument, a Trigger port (TriggerPort) is established, the port type comprises digital Trigger, analog Trigger, soft Trigger and the like, specific attributes of the Trigger are defined, the analog Trigger is taken as an example, and the Level value of a Trigger signal and the like need to be determined in the Level attribute. Finally, the automatic searching of the synchronous and triggering resource paths and the automatic allocation of the test resources are realized through the constructed file, the independent calling of an automatic matching algorithm is carried out, and the resource searching and allocating results are saved, so that the path searching and matching are completed.
3) Test execution and state machine components: and according to the trend of the execution logic automatic control flow specified by the synchronous and triggered test flow, completing the test execution part. And processing and analyzing the condition that monitoring signals are used by each test action Operation to realize each action of the Monitor signal flow in test execution. OperationSetup (set signal) actions enable instantiation signal creation of a Monitor signal model while the Monitor signal enters a usable stopped state. OperationConnect (connection establishment) acts to open the paths of the signals and the test resources, so that the link establishment of the signals and the setting of the test resources are realized, and if the trigger setting of the test instrument is performed, the test instrument obtains corresponding parameter setting information at the moment. OperationEnable (enable signal) acts to enable operation of the Monitor signal, indicating that the signal is initially enabled and capable of generating events, if the signal is controlled as a test instrument, the corresponding channel of the test instrument is enabled or begins to enter a trigger-waiting model. OperationChange (signal modification) action realizes the attribute modification operation of the Monitor signal, and after the action is executed, the modification of a certain attribute value of the signal is completed, and the signal is immediately validated. OperationDisable (disable signal) action implements the disable operation of the Monitor signal, and after execution, the signal enters a state of being out of use, and no event is generated. OperationDisconnect (disconnection) action realizes the disconnection operation of the early establishment path of the Monitor signal, and after execution, the signal loses the allocated test resources and becomes a usable stop state signal. OperationReset (signal reset) action realizes the reset operation of the Monitor signal, and the reset signal becomes a usable signal in a stop state no matter what state the signal is in currently.
4) Instrument driven synchronous trigger assembly: and constructing a signal drive to complete the action of the test system instrument, and realizing the analysis and action conversion of the information of the synchronization and trigger description in the signal model by utilizing a synchronization and trigger realization technology. For a signal static model, the signal drive realizes analysis and operation of static model description supported by the signal drive. Taking PULSED _DC_signal in a TSF SIGNAL model as an example, a time event provided by a PDC_pulse component and other BSC components are combined together to form a complete SIGNAL, a Pulse generator can support the SIGNAL model and can realize synchronous combination of a direct current SIGNAL and the time SIGNAL, information such as attribute values of each element in the PULSED _DC_signal SIGNAL model is analyzed by a SIGNAL driver developed by the Pulse generator, the information is converted into operation for instrument output, and instrument operation actions of the SIGNAL are completed after resources are successfully allocated in the execution process of a test system. For complex signal combination, analysis is carried out for a combination mode of signals, and signal driving of a combination model is developed to firstly confirm various signal combinations and synchronous triggering forms which can be supported by an instrument. After the completion of the determination, based on the driving mode of the signal combination, a signal synchronization combination matrix is established, all matrix relations with the capability of triggering the synchronization signal combination are established, after the signal combination of the test flow is transmitted to the signal driving, the instrument driving matrix capability judgment is carried out, and if the synchronization triggering capability is met, an operation path is established, and the synchronization and triggering operation path establishment process is consistent with the establishment process in the static model.
Based on the above-mentioned signal-oriented testing system based on the ATML standard, the invention also provides a signal-oriented testing synchronization and triggering method based on the ATML standard, which describes UUT model, TD model, WL model, TA model, TS model and TI model in the ATML model file, and finally obtains the execution result of synchronization and triggering, and specifically comprises:
Step 1) aiming at a TD model and a UUT model in an ATML model, carrying out description of synchronization and trigger information, and providing clear description for the trigger and synchronization test requirements, wherein the description comprises a signal-based model, a time-based model, an event-based model and an expansion model;
step 2) aiming at a WL model, a TA model, a TS model and a TI model in the ATML model, providing test system integrated connection description and automatic searching of a synchronous and trigger path for synchronous and triggered test requirements;
and 3) completing the test execution part according to the trend of the execution logic automatic control flow specified by the synchronous and trigger test flow. Processing and analyzing the condition of using the monitoring signal aiming at each test action Operation to realize each action of the Monitor signal flow in test execution;
and 4) constructing a signal drive to complete the action of the test system instrument, analyzing and converting the information of the synchronization and trigger description in the signal model by utilizing a synchronization and trigger realization technology, converting the synchronization and trigger requirement into the synchronization and trigger operation of software and hardware, and realizing the synchronization trigger operation.
The above description is only illustrative of the preferred embodiments of the present invention and is not intended to limit the scope of the present invention, and any alterations and modifications made by those skilled in the art based on the above disclosure shall fall within the scope of the appended claims.