PXI bus switch module control system and method

文档序号:1520723 发布日期:2020-02-11 浏览:14次 中文

阅读说明:本技术 一种pxi总线开关模块控制系统及方法 (PXI bus switch module control system and method ) 是由 曹光磊 李龙 曹宁 于 2019-11-05 设计创作,主要内容包括:本发明公开了一种PXI总线开关模块控制系统及方法,该控制系统包括统一的用户界面和虚拟仪器驱动,多个PXI总线开关模块共用一个虚拟仪器驱动和用户界面。虚拟仪器用户界面层与虚拟仪器驱动层进行数据传输,虚拟仪器驱动层分别与多个PXI总线开关模块进行通信;将PXI总线开关模块分成多种不同的类型,相同类型的PXI总线开关模块采用相同的虚拟仪器驱动控制方式和用户界面设计形式。本发明拓展性好,增加新的开关模块,只需要在开关信息数组中增加该开关模块相关信息,即可生成配套的开关控制软件。该控制系统通用性好,开关信息数组定义一种或多种开关模块信息,即可生成一种或多种开关模块的软件。(The invention discloses a PXI bus switch module control system and a method, wherein the control system comprises a unified user interface and a virtual instrument driver, and a plurality of PXI bus switch modules share one virtual instrument driver and one user interface. The virtual instrument user interface layer is in data transmission with a virtual instrument driving layer, and the virtual instrument driving layer is respectively communicated with the PXI bus switch modules; the PXI bus switch modules are divided into a plurality of different types, and the PXI bus switch modules of the same type adopt the same virtual instrument drive control mode and user interface design form. The invention has good expansibility, and can generate matched switch control software only by adding the related information of the switch module in the switch information array by adding a new switch module. The control system has good universality, and the switch information array defines one or more switch module information, namely software of one or more switch modules can be generated.)

1. A PXI bus switch module control system is characterized by comprising a unified user interface and a virtual instrument driver, wherein a plurality of PXI bus switch modules share one virtual instrument driver and one user interface. The virtual instrument user interface layer is in data transmission with a virtual instrument driving layer, and the virtual instrument driving layer is respectively communicated with the PXI bus switch modules;

the PXI bus switch modules are divided into a plurality of different types, and the PXI bus switch modules of the same type adopt the same virtual instrument drive control mode and user interface design form.

2. The PXI bus switch module control system of claim 1, wherein the PXI bus switch module is divided into: the device comprises a matrix switch module, a one-to-many switch module and an independent channel switch module.

3. A PXI bus switch module control method is characterized by comprising the following steps: the PXI bus switch modules are divided into a plurality of different types, and the PXI bus switch modules of the same type adopt the same virtual instrument drive control mode and user interface design form.

4. The method for controlling the PXI bus switch module according to claim 3, wherein the virtual instrument driver control mode specifically includes:

acquiring information of all switch modules and storing the information into a switch driving information array;

and transmitting the handle of the switch module and the name of the switch channel to a drive switch control function through a user interface layer of the virtual instrument, and controlling the on-off of the corresponding switch according to the received data.

5. The PXI bus switch module control method of claim 4, wherein said driving switch control function has input parameters comprising: handle and switch channel name of switch module; if the output return value of the drive switch control function is 0, the function is successfully executed; if the return value is less than 0, it indicates that the function input parameter is incorrect.

6. The PXI bus switch module control method according to claim 4, wherein said switch module information at least includes: switch channel information, switch addresses, switch categories, switchgear IDs, equipment serial numbers, switch numbers, and switch block numbers.

7. The method for controlling the PXI bus switch module according to claim 3, wherein the method for designing the user interface is specifically as follows:

storing the information of all switch modules into a switch interface information array;

and acquiring switch interface array information, transmitting the information of each switch module to a control generating function, and automatically generating switch interfaces with the same number as the switch modules, wherein each switch module corresponds to an independent switch interface.

8. The PXI bus switch module control method of claim 7, wherein said input to said control generation function includes: switch module type, switch equipment ID, equipment serial number, switch number and switch group number information parameters; if the output return value of the control generation function is 0, the function is successfully executed; if the return value is less than 0, it indicates that the function input parameter is incorrect.

9. The PXI bus switch module control method according to claim 7, wherein a switch control command is triggered through a switch interface, and the switch control command is transferred to the corresponding switch module through a switch control function to realize on-off control of the switch module; and simultaneously updating the state of the switch module on the switch interface.

10. The PXI bus switch module control method of claim 7, wherein said switch module information includes at least: switch category, switchgear ID, equipment string number, number of switches, and switch group number information.

Technical Field

The invention relates to the technical field of automatic testing, in particular to a PXI bus switch module control system and method.

Background

The statements in this section merely provide background information related to the present disclosure and may not necessarily constitute prior art.

The PXI bus switch module is a central hub for information exchange between the PXI bus automatic test system and the to-be-tested piece. Through various switch modules, the system can inject various control signals or excitation signals into any input port of the tested object, and can automatically switch the information of the output port of the tested object to corresponding test equipment, so that the automatic test operation of the PXI bus test system is realized, the test time is shortened, and meanwhile, artificial errors in the test process are reduced. The PXI bus switch module has the characteristics of flexible topological structure, high integration level, good environmental adaptability, multiplexing, strong expansibility and the like, and can better meet the requirement of signal switching. The PXI bus matrix switch module plays an important role in an automatic test system, and is widely applied to a weapon equipment test system.

Software design based on various switch modules is also crucial. Due to the difference of the switch types, the switch numbers and the realized functions of the switch modules, different switch modules need to develop different switch software for control. Product developers need to spend a great deal of time on development, and maintenance of products is easy to make mistakes, so that the development efficiency of software and the code quality are generally low.

The specific design style of the conventional switch module software is shown in fig. 1, and each switch module needs to develop independent switch module software, including an independent user interface and a virtual instrument driver. Due to the fact that program developers have different design ideas, switch module software interfaces of the same type are complex and various and different, and the user experience effect is poor. Multiple switch modules need multiple sets of different switch software, new switch modules are added, corresponding switch software needs to be re-developed, and the development process is complex.

In summary, the conventional PXI bus switch module software design method has the following disadvantages:

1) the expansibility is poor, a new switch module is added, corresponding switch software needs to be re-developed, and the development process is complicated.

2) The universality is poor, each switch module corresponds to respective switch software, multiple switch modules need multiple sets of different switch software, and the software development mode has a large amount of repeated development.

3) The switch modules of the same type have complicated software interfaces and poor user experience effect.

Disclosure of Invention

In order to solve the above problems, the present invention provides a PXI bus switch module control system and method, where the control system includes a unified user interface and a virtual instrument driver, and multiple PXI bus switch modules share one virtual instrument driver and one user interface. The control system has good expansibility, and when a new switch module is added, matched switch control can be generated only by adding relevant information of the switch module in a switch information array. The control system has good universality, and the switch information array defines one or more switch module information, namely software of one or more switch modules can be generated.

In some embodiments, the following technical scheme is adopted:

a PXI bus switch module control system, comprising: a virtual instrument user interface layer and a virtual instrument driver layer; the virtual instrument user interface layer is in data transmission with a virtual instrument driving layer, and the virtual instrument driving layer is respectively communicated with the PXI bus switch modules;

the PXI bus switch modules are divided into a plurality of different types, and the PXI bus switch modules of the same type adopt the same virtual instrument drive control mode and user interface design form.

Further, the PXI bus switch module is divided into: the device comprises a matrix switch module, a one-to-many switch module and an independent channel switch module. The matrix-like switch module includes: 4X32 switch matrix modules, 6X8 switch matrix modules, etc.; a select multi-class switch module comprising: a 1-to-12 switch module, a 1-to-4 switch module, and the like; independent channel class switch module: including 25-channel single pole single throw switch modules, 80 independent single wire switch modules, etc.

In other embodiments, a PXI bus switch module control method is disclosed, comprising: the PXI bus switch modules are divided into a plurality of different types, and the PXI bus switch modules of the same type adopt the same virtual instrument drive control mode and user interface design form.

Further, the virtual instrument drive control method specifically includes:

acquiring information of all switch modules and storing the information into a switch driving information array;

and transmitting the handle of the switch module and the name of the switch channel to a drive switch control function through a user interface layer of the virtual instrument, and controlling the on-off of the corresponding switch according to the received data.

Further, the input parameters of the driving switch control function include: handle and switch channel name of switch module; if the output return value of the drive switch control function is 0, the function is successfully executed; if the return value is less than 0, it indicates that the function input parameter is incorrect.

Further, the information of the switch module at least comprises: switch channel information, switch addresses, switch categories, switchgear IDs, equipment serial numbers, switch numbers, and switch block numbers.

Further, the method for designing the user interface specifically comprises the following steps:

storing the information of all switch modules into a switch interface information array;

and acquiring switch interface array information, transmitting the information of each switch module to a control generating function, and automatically generating switch interfaces with the same number as the switch modules, wherein each switch module corresponds to an independent switch interface.

Further, the input of the control generation function comprises: switch module type, switch equipment ID, equipment serial number, switch number and switch group number information parameters; if the output return value of the control generation function is 0, the function is successfully executed; if the return value is less than 0, it indicates that the function input parameter is incorrect.

Further, a switch control instruction is triggered through a switch interface and is transmitted to a corresponding switch module through a switch control function, so that on-off control of the switch module is realized; and simultaneously updating the state of the switch module on the switch interface.

Further, the information of the switch module at least comprises: switch category, switchgear ID, equipment string number, number of switches, and switch group number information.

Compared with the prior art, the invention has the beneficial effects that:

1) the expansibility is good, a new switch module is added, and matched switch control software can be generated only by adding the relevant information of the switch module in a switch information array;

2) the universality is good, the switch information array defines one or more switch module information, and control software of one or more switch modules can be generated;

3) the switch modules of the same type adopt a unified software interface, so that the operation of a user is convenient, and the integration of an automatic test system is facilitated.

Drawings

FIG. 1 is a software design schematic of a prior art switch module;

FIG. 2 is a schematic diagram of a PXI bus switch module control system according to an embodiment of the present invention;

FIG. 3 is a flowchart illustrating a driving control method of a virtual device according to an embodiment of the present invention;

FIG. 4 is a flowchart of a user interface design method according to an embodiment of the present invention.

Detailed Description

It should be noted that the following detailed description is exemplary and is intended to provide further explanation of the disclosure. Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments according to the present application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, and it should be understood that when the terms "comprises" and/or "comprising" are used in this specification, they specify the presence of stated features, steps, operations, devices, components, and/or combinations thereof, unless the context clearly indicates otherwise.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种数据处理系统、方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!