CN110781103B - PXI bus switch module control system and method - Google Patents

PXI bus switch module control system and method Download PDF

Info

Publication number
CN110781103B
CN110781103B CN201911071526.8A CN201911071526A CN110781103B CN 110781103 B CN110781103 B CN 110781103B CN 201911071526 A CN201911071526 A CN 201911071526A CN 110781103 B CN110781103 B CN 110781103B
Authority
CN
China
Prior art keywords
switch
control
module
switch module
pxi bus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911071526.8A
Other languages
Chinese (zh)
Other versions
CN110781103A (en
Inventor
曹光磊
李龙
曹宁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
CLP Kesiyi Technology Co Ltd
Original Assignee
CLP Kesiyi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by CLP Kesiyi Technology Co Ltd filed Critical CLP Kesiyi Technology Co Ltd
Priority to CN201911071526.8A priority Critical patent/CN110781103B/en
Publication of CN110781103A publication Critical patent/CN110781103A/en
Application granted granted Critical
Publication of CN110781103B publication Critical patent/CN110781103B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Abstract

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.

Description

PXI bus switch module control system and method
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.
Example one
In one or more embodiments, a PXI bus switch module control system is disclosed, as shown in fig. 2, that includes a unified virtual instrument user interface and virtual instrument driver, with multiple PXI bus switch modules sharing one virtual instrument user interface and virtual instrument driver. The virtual instrument drive is used for realizing on-off control of the switch module; the virtual instrument user interface is used for realizing interface design of the switch module.
The switch information array defines one or more switch module information, namely software of one or more switch modules can be generated, so that the time for developing various types of switch module software is greatly saved, and repeated development is avoided.
The PXI bus switch module is divided into three types, and software program development is respectively carried out, wherein the three types are respectively as follows: 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.
The three types of switch modules respectively adopt three different virtual instrument driving control modes, and the same type of virtual instrument driving control mode is the same. The three types of switch modules adopt three different interface forms, and the same type of switch modules adopt the same type of interfaces.
Example two
In one or more 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 interface form.
Referring to fig. 3, the virtual instrument driving control method of the PXI bus switch module control system specifically includes the following steps:
(1) and storing the information of all the switch modules, including channel information, switch addresses, switch types, switch equipment IDs, equipment serial numbers, switch group numbers and the like, into a switch driving information array.
(2) The main program of the instrument searches all switch modules in the equipment and initializes the modules.
(3) The interface user and the integrated user transmit the control data to the drive switch control function, and the drive switch control function sets data to the switch address to control the on-off of the switch.
In this embodiment, the input parameters for driving the switch control function include: handle and switch channel name of switch module; the control method comprises the following steps that a handle of a switch module can be used for acquiring which switch module is controlled; which switches are controlled can be known by the switch channel name.
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.
The function of the driving switch control function is to control the on/off of the corresponding switch according to the input parameter information, and the specific implementation manner of the function can be realized by those skilled in the art according to the prior art.
Referring to fig. 4, the PXI bus switch module control system user interface design specifically includes the following steps:
(1) and storing the information of all the switch modules, including the switch types, the switch equipment IDs, the equipment serial numbers, the switch group numbers and the like, into a switch interface information array.
(2) The main program of the instrument obtains switch interface array information, each switch module transmits the module information to a control generating function, and a corresponding module interface is automatically generated.
And the control generates a function, generates controls such as a switch button, a switch name and a switch connecting line, and sets the contents such as the size of the switch button, the color of the connecting line, the position of the switch, the interval of the switch and the like.
(3) And generating switch interfaces with corresponding number according to the number of the switch modules, increasing or decreasing the number of the switch modules, and correspondingly increasing or decreasing the number of the switch interfaces.
(4) The user selects different switch modules, the interface is switched to the corresponding module interface, and the interfaces of the modules are independent and do not influence each other.
(5) Through the switch control on the operation interface, each switch module transmits the module information to the switch control function, and the switch control function transmits the switch control command to the bottom module to control the on-off of each switch, and meanwhile, the states of the switch, the switch connecting line and the like on the interface are correspondingly changed.
In this embodiment, the input parameters of the control generating function include: 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.
The control generation function is used for generating a corresponding display interface according to the input parameters, and the specific implementation manner of the function can be realized by those skilled in the art according to the prior art.
Although the embodiments of the present invention have been described with reference to the accompanying drawings, it is not intended to limit the scope of the present invention, and it should be understood by those skilled in the art that various modifications and variations can be made without inventive efforts by those skilled in the art based on the technical solution of the present invention.

Claims (8)

1. 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; the PXI bus switch modules share one virtual instrument driver and a user interface;
the virtual instrument drive control mode specifically includes:
acquiring information of all switch modules and storing the information into a switch driving information array;
the handle of the switch module and the name of the switch channel are transmitted to a drive switch control function through a user interface layer of the virtual instrument, and the on-off of a corresponding switch is controlled according to received data;
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;
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;
the number of the switch modules is increased or decreased, and the number of the switch interfaces is correspondingly increased or decreased;
the user selects different switch modules, the interface is switched to the corresponding module interface, and the interfaces of the modules are independent;
and through the switch control on the operation interface, each switch module transmits the module information to the switch control function, and the switch control function transmits the switch control command to the bottom layer module to control the on-off of each switch.
2. The PXI bus switch module control method of claim 1, wherein said driving the switch control function with input parameters comprises: 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.
3. The PXI bus switch module control method of claim 1, wherein said switch module information includes at least: switch channel information, switch addresses, switch categories, switchgear IDs, equipment serial numbers, switch numbers, and switch block numbers.
4. The PXI bus switch module control method of claim 1, wherein said input to said 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.
5. The PXI bus switch module control method of claim 1, wherein a switch control command is triggered through a switch interface, and the switch control command is transmitted to a 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.
6. The PXI bus switch module control method of claim 1, wherein said switch module information includes at least: switch category, switchgear ID, equipment string number, number of switches, and switch group number information.
7. The control system of the PXI bus switch module control method according to claim 1, wherein the control system includes a unified user interface and a virtual instrument driver, and a plurality of PXI bus switch modules share a virtual instrument driver and a 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.
8. The control system as recited in claim 7, 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.
CN201911071526.8A 2019-11-05 2019-11-05 PXI bus switch module control system and method Active CN110781103B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911071526.8A CN110781103B (en) 2019-11-05 2019-11-05 PXI bus switch module control system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911071526.8A CN110781103B (en) 2019-11-05 2019-11-05 PXI bus switch module control system and method

Publications (2)

Publication Number Publication Date
CN110781103A CN110781103A (en) 2020-02-11
CN110781103B true CN110781103B (en) 2022-02-15

Family

ID=69389185

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911071526.8A Active CN110781103B (en) 2019-11-05 2019-11-05 PXI bus switch module control system and method

Country Status (1)

Country Link
CN (1) CN110781103B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112061045A (en) * 2020-08-27 2020-12-11 浙江联控技术有限公司 Switch control device and method and automobile

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555008A (en) * 2003-12-29 2004-12-15 秦树人 Method for producing intelligent virtual display
CN1555007A (en) * 2003-12-29 2004-12-15 秦树人 Method for intelligent control of virtual instrument
US7210087B2 (en) * 2004-05-22 2007-04-24 Advantest America R&D Center, Inc. Method and system for simulating a modular test system
CN1959632A (en) * 2006-10-11 2007-05-09 秦树人 Large-scale virtual base for test instruments, and forming method
JP2008077415A (en) * 2006-09-21 2008-04-03 Toshiba Information Systems (Japan) Corp Model base development assisting block, simulation system and automatic code generation method
CN101944026A (en) * 2010-09-21 2011-01-12 中国人民解放军63961部队 Implementation method of universal virtual instrument interface
CN101944062A (en) * 2010-09-21 2011-01-12 中国人民解放军63961部队 Method for configuring universal virtual instrument interface
CN102662112A (en) * 2012-01-11 2012-09-12 北京航空航天大学 Aircraft avionics ground test system based on PXI bus and Lab Windows Cvi
CN203149382U (en) * 2013-03-29 2013-08-21 成都飞机设计研究所 Virtual apparatus bus product calibration platform
CN103294532A (en) * 2012-08-27 2013-09-11 中国电子科技集团公司第四十一研究所 Method for rapid implementation of matrix switch graphical control system
CN108170615A (en) * 2017-12-14 2018-06-15 北京航天测控技术有限公司 A kind of driving framework of the virtual instrument of signal-oriented

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100375031C (en) * 2003-06-11 2008-03-12 深圳市德普施科技有限公司 Restructurable virtual device for software bus and chip structure
US20080147371A1 (en) * 2006-12-13 2008-06-19 Gupton Kyle P User Defined Virtual Instruments in a Simulation Environment
RU2476925C1 (en) * 2011-12-23 2013-02-27 Открытое акционерное общество Всероссийский научно-исследовательский институт "Эталон" (ОАО "ВНИИ "Эталон") Multichannel parameter measuring device of electric signals with virtual instruments
CN106445640B (en) * 2016-10-20 2019-06-18 南京南瑞继保电气有限公司 A kind of embedded type virtual device operation method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1555008A (en) * 2003-12-29 2004-12-15 秦树人 Method for producing intelligent virtual display
CN1555007A (en) * 2003-12-29 2004-12-15 秦树人 Method for intelligent control of virtual instrument
US7210087B2 (en) * 2004-05-22 2007-04-24 Advantest America R&D Center, Inc. Method and system for simulating a modular test system
JP2008077415A (en) * 2006-09-21 2008-04-03 Toshiba Information Systems (Japan) Corp Model base development assisting block, simulation system and automatic code generation method
CN1959632A (en) * 2006-10-11 2007-05-09 秦树人 Large-scale virtual base for test instruments, and forming method
CN101944026A (en) * 2010-09-21 2011-01-12 中国人民解放军63961部队 Implementation method of universal virtual instrument interface
CN101944062A (en) * 2010-09-21 2011-01-12 中国人民解放军63961部队 Method for configuring universal virtual instrument interface
CN102662112A (en) * 2012-01-11 2012-09-12 北京航空航天大学 Aircraft avionics ground test system based on PXI bus and Lab Windows Cvi
CN103294532A (en) * 2012-08-27 2013-09-11 中国电子科技集团公司第四十一研究所 Method for rapid implementation of matrix switch graphical control system
CN203149382U (en) * 2013-03-29 2013-08-21 成都飞机设计研究所 Virtual apparatus bus product calibration platform
CN108170615A (en) * 2017-12-14 2018-06-15 北京航天测控技术有限公司 A kind of driving framework of the virtual instrument of signal-oriented

Also Published As

Publication number Publication date
CN110781103A (en) 2020-02-11

Similar Documents

Publication Publication Date Title
CN112988495A (en) Multifunctional test method, device and system for SOC chip multiplex pin
CN105471590A (en) Automatic power budget management for power-over-ethernet apparatus
CN110781103B (en) PXI bus switch module control system and method
TW201325086A (en) Switch multiplexer devices with embedded digital sequencers
CN106878630A (en) Vision signal changing method, control device and video signal transmission system
US11754695B2 (en) Ultrasound imaging device
CN104464617B (en) Parallel display system and display devices thereof
CN106991001A (en) Radionavigation recognizes simulation system
CN108508812A (en) A kind of AGV controllers I/O port multiplexing configuration system and method
CN109683593B (en) Method and equipment for testing basic functions of pulse type servo driver
CN109683470A (en) A kind of software and hardware self-adaptive matching method, device and driving device
CN112382224B (en) Aging test method and system for module
US11003173B2 (en) Identifier (ID) based communication system
CN105676109A (en) Main board testing method and device
CN101996584B (en) Method and structure for setting multi-core chip address and display system for application
CN214729788U (en) Large and medium-sized fixed wing unmanned aerial vehicle ground simulation fault injection equipment
CN214480671U (en) One-to-many communication circuit based on SPI communication
CN103376369B (en) The method of testing of communication load and device
CN111147046A (en) Relay array control device and method
JPH01135150A (en) Node address setting system for network
CN107153376A (en) A kind of electronic controller
CN211293745U (en) Driver controller system
CN113794958B (en) Intelligent networking control method based on multiple areas
JPH0635513A (en) Transmitter between man-machine interface device and programmable controller
CN114285913B (en) Cross-operating system data transmission method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 266555 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province

Applicant after: CLP kesiyi Technology Co.,Ltd.

Address before: 266555 No. 98 Xiangjiang Road, Huangdao District, Qingdao City, Shandong Province

Applicant before: CHINA ELECTRONICS TECHNOLOGY INSTRUMENTS Co.,Ltd.

GR01 Patent grant
GR01 Patent grant