CN103685545A - LAN (Local Area Network) based distributed LAN-PXI service system - Google Patents
LAN (Local Area Network) based distributed LAN-PXI service system Download PDFInfo
- Publication number
- CN103685545A CN103685545A CN201310722681.8A CN201310722681A CN103685545A CN 103685545 A CN103685545 A CN 103685545A CN 201310722681 A CN201310722681 A CN 201310722681A CN 103685545 A CN103685545 A CN 103685545A
- Authority
- CN
- China
- Prior art keywords
- pxi
- data
- lan
- command
- visa
- 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.)
- Granted
Links
Images
Landscapes
- Small-Scale Networks (AREA)
Abstract
The invention discloses an LAN (Local Area Network) based distributed LAN-PXI service system. The LAN based distributed LAN-PXI service system comprises a computer, a PXI device and one or more switches, wherein the computer, the one or more switches and the PXI device are connected sequentially through a network cable and communicate through a VXI-11 protocol; the PXI device comprises a PXI control module and a PXI module; the working steps are that: step 1, the computer converts an input PXI VISA command to obtain a character string command which is designed by adopting an SCPI command standard; step 2, the computer sends the character string command to the PXI control module of the PXI device through each switch; step 3, the PXI control module of the PXI device resolves the character string command into a PXI-VISA command and calls a PXI VISA interface function library based on the PXI-VISA command to control the PXI module to carry out corresponding operations.
Description
Technical field
The invention belongs to field, virtual instrument technique field, relate in particular to a kind of distributed LAN-PXI service system based on LAN.
Background technology
Current PXI test macro generally consists of computer, PXI device two parts, wherein PXI device is again by PXI control module and PXI module composition, computer is connected with PXI control module by StarFabric bus, this connected mode generally only has the distance of 3-5 rice, is mainly used in centralized test.Raising along with system under test (SUT) complexity, there is distributed testing requirement in many test macros, testing requirements such as electrical network, geology, satellite naval vessel, these application all need to be tested in the even wider scope of hundreds of rice, and to test macro, integrated personnel have higher requirement.And prior art can not meet this demand.
Summary of the invention
For addressing the above problem, the present invention proposes a kind of distributed LAN-PXI service system based on LAN, this distributed LAN-PXI service system has broken through the bottleneck of existing PXI system on long distance, distributed testing, possesses the function of carrying out Long-distance Control and data communication.
Distributed LAN-PXI service system based on LAN of the present invention, this distributed LAN-PXI service system comprises: computer, PXI device, it is characterized in that, described distributed LAN-PXI service system also comprises: switch;
Described computer, switch, PXI device connect by netting twine successively, and communicate by VXI-11 agreement; Described switch is one or more; Described PXI device comprises: PXI control module and PXI module;
Its job step is:
Step 1, computer transforms the PXI VISA order of input, obtains character string command; Described character string command adopts the design of SCPI command standard;
Step 2, computer sends to described character string command by switch the PXI control module of PXI device;
Step 3, the PXI control module of PXI device resolves to PXI-VISA order by described character string command, and according to described PXI-VISA command calls PXI VISA interface, controls described PXI module and carry out corresponding operation;
Further, the analyzing step in described step 3 comprises:
Step 31 arranges a configuration file in described PXI control module, and in described configuration file, records function name and the parameter of all PXI-VISA interfaces;
Step 32, described PXI control module reads described function name, and forms the data structure of order and parameter, creates command tree;
Step 33, obtains the relevant information of order by traveling through described command tree;
In described step 3, the resource name of PXI module is named according to LAN bridge device naming method.
Further, in the job step of described distributed LAN-PXI service system:
If the PXI VISA order of input computer, with data, also needs to carry out data encoding, and coded data is sent to the PXI control module of PXI device by switch; Then described PXI control module is to the decoding data receiving; Last described PXI control module is controlled described PXI module according to the data call PXI VISA interface of PXI-VISA order and decoding and is carried out corresponding operation;
Further, in the job step of described distributed LAN-PXI service system:
If the PXI VISA order of input computer is retaking of a year or grade order, in described PXI module, carry out after corresponding operating, to the corresponding operating data encoding producing, be retaking of a year or grade data, and described retaking of a year or grade data are sent the data to computer by switch decode, for showing the operating state of PXI control module;
Above-mentioned coding rule is the data format of SCPI standard.
Further, in described step 3, according to the tree of SCPI order, adopt top-down analytic method to carry out command analysis.
Further, data encoding adopts following coded system:
The 1st byte is ' # ', represent that this communication, for data, makes a distinction with control command;
The figure place of the 2nd each data of byte representation, ' 0 ' represents 8 bit data, and ' 1 ' represents 16 bit data, and ' 2 ' represent 32 bit data, and ' 3 ' represent 64 bit data;
The length of 3rd~10 byte representation data, represents with the string as upper case of 16 systems, when not enough, mends 0;
Since the 11st byte, be data field, each data represents with the string as upper case of 16 systems, when not enough, mends 0.
Beneficial effect of the present invention is:
1. this distributed LAN-PXI service system has broken through the bottleneck of existing PXI system on long distance, distributed testing, possesses the function of carrying out Long-distance Control and data communication.
2. this distributed LAN-PXI service system can compatible existing virtual instrument framework, shields long-range PXI system module hardware characteristics, for terminal use's familiar method of operation of providing convenience, also for traditional PXI system provides new application prospect.
Accompanying drawing explanation
Fig. 1 is the distributed LAN-PXI service system schematic diagram based on LAN of the present invention;
Fig. 2 is the distributed LAN-PXI service system workflow diagram based on LAN of the present invention.
Embodiment
Fig. 1 is the distributed LAN-PXI service system schematic diagram based on LAN of the present invention.As shown in Figure 1, this distributed LAN-PXI service system comprises: computer, PXI device, it is characterized in that, and described distributed LAN-PXI service system also comprises: switch;
Described computer, switch, PXI device connect by netting twine successively, and communicate by VXI-11 agreement; Described switch is one or more; Described PXI device comprises: PXI control module and PXI module;
Its job step is:
Step 1, computer transforms the PXI VISA order of input, obtains character string command; Described character string command adopts the design of SCPI command standard;
Step 2, computer sends to described character string command by switch the PXI control module of PXI device;
Step 3, the PXI control module of PXI device resolves to PXI-VISA order by described character string command,
And according to described PXI-VISA command calls PXI VISA interface, control described PXI module and carry out corresponding operation;
Further, the analyzing step in described step 3 comprises:
Step 31 arranges a configuration file in described PXI control module, and in described configuration file, records function name and the parameter of all PXI-VISA interfaces;
Step 32, described PXI control module reads described function name, and forms the data structure of order and parameter, creates command tree;
Step 33, obtains the relevant information of order by traveling through described command tree;
In described step 3, the resource name of PXI module is named according to LAN bridge device naming method.
Further, in the job step of described distributed LAN-PXI service system:
If the PXI VISA order of input computer, with data, also needs to carry out data encoding, and coded data is sent to the PXI control module of PXI device by switch; Then described PXI control module is to the decoding data receiving; Last described PXI control module is controlled described PXI module according to the data call PXI VISA interface of PXI-VISA order and decoding and is carried out corresponding operation;
Further, in the job step of described distributed LAN-PXI service system:
If the PXI VISA order of input computer is retaking of a year or grade order, in described PXI module, carry out after corresponding operating, to the corresponding operating data encoding producing, be retaking of a year or grade data, and described retaking of a year or grade data are sent the data to computer by switch decode, for showing the operating state of PXI control module;
Above-mentioned coding rule is the data format of SCPI standard.
Further, in described step 3, according to the tree of SCPI order, adopt top-down analytic method to carry out command analysis.
(1) traditional PXI system is regarded PXI equipment the peripheral hardware of computer, and VISA storehouse is driven and controlled by PXI bus apparatus; And in the constructed device of the present invention, between two terminals that connect by netting twine (computer, PXI device), in signal transmission, be peer-to-peer, computer can not directly be accessed the PXI module resource in PXI device, needs PXI module forwards.
Fig. 2 is the distributed LAN-PXI service system workflow diagram based on LAN of the present invention.As shown in Figure 2, comprise two parts of service of moving in the service that moves on computer and PXI module.The present invention provides an interface that meets VISA standard to user in computer; When concrete VISA realizes, action name and parameter change into command messages, by LAN, are communicated by letter and are sent to PXI control module and carry out; When PXI VISA order is during with data, data are according to PXI instrument system data characteristics coding, by between network and PXI control module, communicate by letter.
PXI control module receives character string command, fill order is resolved, parse the parameters such as control command that the PXI module that will control and the PXI module that will control will carry out, address, data, simultaneously, the data that will send or receive are carried out to coding/decoding work, then control PXI module execution respective operations by calling traditional PXI VISA interface.
(2) resource name of PXI module in LAN-PXI system, considers compatibility, according to the general rule of LAN bridge device name, name, and design in the following ways, for example: " TCPIP0::169.254.22.25::pxi3,5::INSTR ", wherein,
TCPIP0 represents that PXI module adopts TCPIP mode to conduct interviews;
169.254.22.25 field is partly the IP address of PXI control module, according to actual conditions, fills in;
Pxi3,5 is the resource description of PXI module in PXI device, and wherein 3 is segment number, and 5 is groove number, according to actual conditions, fills in;
INSTR represents to meet instrument feature, and receive interruption signal is processed.
(3) method that order transforms, adopts the naming method design of SCPI, for example:
The character string command that function viOut32 (1,11,14,1) is corresponding is " VIOut321,11,14,1 ";
The character string command that function viIn32 (1,11,14, & n) is corresponding is " VIIn321,11,14 ".
(4) method of data encoding, considers the data mode of instrument communication, and the data format design with reference to SCPI standard, adopts following coded system:
The 1st byte is ' # ', represent that this communication, for data, makes a distinction with control command;
The figure place of the 2nd each data of byte representation, ' 0 ' represents 8 bit data, and ' 1 ' represents 16 bit data, and ' 2 ' represent 32 bit data, and ' 3 ' represent 64 bit data;
The length of 3rd~10 byte representation data, represents with the string as upper case of 16 systems, when not enough, mends 0, for example " 0000FFFF " represent 64K data;
Since the 11st byte, it is data field, each data represents with the string as upper case of 16 systems, when not enough, mend 0, for example the 0xF of 8 bit data is expressed as " 0F ", the 0xF of 16 bit data is expressed as " 000F ", the 0xF of 32 bit data is expressed as " 0000000F ", and the 0xF of 64 bit data is expressed as " 000000000000000F ".
(5) controlling between computer and PXI module, with reference to LXI bus protocol, use VXI-11 agreement to communicate, can be reliable and stable carry out instrument discovery, identification, control and communicate by letter.
(6), during command analysis, according to the tree of SCPI order, adopt top-down analytic method.
A configuration file is set in PXI control module, in configuration file, records all VISA built-in function titles.The command analysis moving in PXI control module forms VISA built-in function command set the data structure of order and parameter, and creates the command tree for inquiry; While resolving message, according to the order obtaining, by traversal command tree, obtain the relevant information of order.
Certainly; the present invention also can have other various embodiments; in the situation that not deviating from spirit of the present invention and essence thereof; those of ordinary skill in the art are when making according to the present invention various corresponding changes and distortion, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.
Claims (5)
1. the distributed LAN-PXI service system based on LAN, this distributed LAN-PXI service unit comprises: computer, PXI device, it is characterized in that, described distributed LAN-PXI service system also comprises: switch;
Described computer, switch, PXI device connect by netting twine successively, and communicate by VXI-11 agreement;
Described switch is one or more;
Described PXI device comprises: PXI control module and PXI module;
Its job step is:
Step 1, computer transforms the PXI VISA order of input, obtains character string command; Described character string command adopts the design of SCPI command standard;
Step 2, computer sends to described character string command by switch the PXI control module of PXI device;
Step 3, the PXI control module of PXI device resolves to PXI-VISA order by described character string command, and according to described PXI-VISA command calls PXI VISA interface, controls described PXI module and carry out corresponding operation;
Further, the analyzing step in described step 3 comprises:
Step 31 arranges a configuration file in described PXI control module, and in described configuration file, records function name and the parameter of all PXI-VISA interfaces;
Step 32, described PXI control module reads described function name, and forms the data structure of order and parameter, creates command tree;
Step 33, obtains the relevant information of order by traveling through described command tree;
In described step 3, the resource name of PXI module is named according to LAN bridge device naming method.
2. the distributed LAN-PXI service system based on LAN as claimed in claim 1, is characterized in that, in the job step of described distributed LAN-PXI service system:
If the PXI VISA order of input computer, with data, also needs to carry out data encoding, and coded data is sent to the PXI control module of PXI device by switch; Then described PXI control module is to the decoding data receiving; Last described PXI control module is controlled described PXI module according to the data call PXI VISA interface of PXI-VISA order and decoding and is carried out corresponding operation.
3. the distributed LAN-PXI service system based on LAN as claimed in claim 1, is characterized in that, in the job step of described distributed LAN-PXI service system:
If the PXI VISA order of input computer is retaking of a year or grade order, in described PXI module, carry out after corresponding operating, to the corresponding operating data encoding producing, be retaking of a year or grade data, and described retaking of a year or grade data are sent the data to computer by switch decode, for showing the operating state of PXI control module;
Above-mentioned coding rule is the data format of SCPI standard.
4. the distributed LAN-PXI service system based on LAN as claimed in claim 1, is characterized in that,
In described step 3, according to the tree of SCPI order, adopt top-down analytic method to carry out command analysis.
5. the distributed LAN-PXI service system based on LAN as claimed in claim 1, is characterized in that, data encoding adopts following coded system:
The 1st byte is ' # ', represent that this communication, for data, makes a distinction with control command;
The figure place of the 2nd each data of byte representation, ' 0 ' represents 8 bit data, and ' 1 ' represents 16 bit data, and ' 2 ' represent 32 bit data, and ' 3 ' represent 64 bit data;
The length of 3rd~10 byte representation data, represents with the string as upper case of 16 systems, when not enough, mends 0;
Since the 11st byte, be data field, each data represents with the string as upper case of 16 systems, when not enough, mends 0.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310722681.8A CN103685545B (en) | 2013-12-24 | 2013-12-24 | A kind of distributed LAN-PXI service system based on LAN |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310722681.8A CN103685545B (en) | 2013-12-24 | 2013-12-24 | A kind of distributed LAN-PXI service system based on LAN |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103685545A true CN103685545A (en) | 2014-03-26 |
CN103685545B CN103685545B (en) | 2016-08-17 |
Family
ID=50321819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310722681.8A Active CN103685545B (en) | 2013-12-24 | 2013-12-24 | A kind of distributed LAN-PXI service system based on LAN |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103685545B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107733520A (en) * | 2017-10-17 | 2018-02-23 | 北京空间技术研制试验中心 | Satellite ground S-band signal repeater |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1523326A (en) * | 2003-02-20 | 2004-08-25 | 华为技术有限公司 | An environmental stress experiment automatic test method |
CN102004952A (en) * | 2010-11-03 | 2011-04-06 | 北京普源精电科技有限公司 | Measuring resource control system and measuring resource control method |
US20120197572A1 (en) * | 2011-01-27 | 2012-08-02 | Rohde & Schwars GmbH & Co. KG | Simple generation of a remote-control sequence for measuring devices |
CN102711137A (en) * | 2012-04-24 | 2012-10-03 | 东南大学 | Method and system for testing emission parameters of wireless local area network |
CN103257910A (en) * | 2013-04-26 | 2013-08-21 | 北京航空航天大学 | LX I embedded type reconfigurable general test platform capable of being used for on-site test |
US8572589B2 (en) * | 2009-06-30 | 2013-10-29 | Agilent Technologies, Inc. | Programming language translator and enabling translation of machine-centric commands for controlling instrument |
-
2013
- 2013-12-24 CN CN201310722681.8A patent/CN103685545B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1523326A (en) * | 2003-02-20 | 2004-08-25 | 华为技术有限公司 | An environmental stress experiment automatic test method |
US8572589B2 (en) * | 2009-06-30 | 2013-10-29 | Agilent Technologies, Inc. | Programming language translator and enabling translation of machine-centric commands for controlling instrument |
CN102004952A (en) * | 2010-11-03 | 2011-04-06 | 北京普源精电科技有限公司 | Measuring resource control system and measuring resource control method |
US20120197572A1 (en) * | 2011-01-27 | 2012-08-02 | Rohde & Schwars GmbH & Co. KG | Simple generation of a remote-control sequence for measuring devices |
CN102711137A (en) * | 2012-04-24 | 2012-10-03 | 东南大学 | Method and system for testing emission parameters of wireless local area network |
CN103257910A (en) * | 2013-04-26 | 2013-08-21 | 北京航空航天大学 | LX I embedded type reconfigurable general test platform capable of being used for on-site test |
Non-Patent Citations (3)
Title |
---|
任赫然: "基于局域网的LXI综合测试***集成技术研究", 《中国优秀硕士学位论文全文数据库(电子期刊)》 * |
宜万兵: "基于LAN的多平台混合实时仿真***的设计", 《计算机测量与控制》 * |
杨柳: "LXI仪器***构建技术的研究与实现", 《中国优秀硕士学位论文全文数据库(电子期刊)》 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107733520A (en) * | 2017-10-17 | 2018-02-23 | 北京空间技术研制试验中心 | Satellite ground S-band signal repeater |
CN107733520B (en) * | 2017-10-17 | 2020-01-14 | 北京空间技术研制试验中心 | Satellite ground S wave band signal transponder |
Also Published As
Publication number | Publication date |
---|---|
CN103685545B (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104144420B (en) | A kind of radio switch-in method and relevant device, system | |
CN101888658B (en) | GPRS (General Packet Radio Service) core network simulation and test system | |
CN101227345B (en) | Automatic testing method based on application program interface | |
CN103517385B (en) | The method of attachment of the AP of Android system Wi-Fi and system | |
CN103197930A (en) | Method for generating automobile diagnostic software automatically | |
CN104243021A (en) | Electric power communication optical cable patrol inspection management system | |
CN104461897A (en) | Application program test method and device | |
CN103455413A (en) | Method, device and system for interaction scenario test data processing of communication terminals | |
CN104581044A (en) | Information pushing system and method based on building interphone | |
CN113726762A (en) | Internet of things equipment protocol analysis method based on configuration file | |
CN103095882B (en) | A kind of intelligent mobile terminal automatic field method of testing and test macro | |
JP6249229B2 (en) | COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION SYSTEM | |
CN101944768A (en) | Power equipment state monitoring method, device and system | |
CN101262371A (en) | Configuration method and device of network devices | |
CN108920377B (en) | Log playback test method, system and device and readable storage medium | |
CN110198533B (en) | Method for remotely controlling BLE Bluetooth device and BLE Bluetooth device | |
CN103685545A (en) | LAN (Local Area Network) based distributed LAN-PXI service system | |
CN103825894A (en) | Multi-screen application system based on browser B / S structure | |
CN103826195A (en) | Method and device for enabling equipment to automatically perform corresponding operation, terminal equipment and system | |
CN108235083A (en) | TV log information acquisition methods and device | |
CN105407500A (en) | Intelligent terminal, and method and device used for displaying satellite signal quality | |
CN103763153B (en) | The automatic method and system that device link information is converted to topological graph | |
CN106059635A (en) | Bluetooth setting method and device for electronic equipment and Bluetooth connection method | |
CN103118012A (en) | General instrument VXI-11 protocol adaptation system and general instrument and adaptation control method | |
CN102938581B (en) | Communication service method and system for on-line monitoring of transformer substation |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |