CN113934186B - Multi-program-controlled instrument control method based on SCPI command - Google Patents

Multi-program-controlled instrument control method based on SCPI command Download PDF

Info

Publication number
CN113934186B
CN113934186B CN202111178570.6A CN202111178570A CN113934186B CN 113934186 B CN113934186 B CN 113934186B CN 202111178570 A CN202111178570 A CN 202111178570A CN 113934186 B CN113934186 B CN 113934186B
Authority
CN
China
Prior art keywords
instrument
scpi
program
networking
instruction
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
CN202111178570.6A
Other languages
Chinese (zh)
Other versions
CN113934186A (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.)
Suzhou University
Original Assignee
Suzhou University
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 Suzhou University filed Critical Suzhou University
Priority to CN202111178570.6A priority Critical patent/CN113934186B/en
Publication of CN113934186A publication Critical patent/CN113934186A/en
Application granted granted Critical
Publication of CN113934186B publication Critical patent/CN113934186B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • G05B19/4185Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM] characterised by the network communication
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B2219/00Program-control systems
    • G05B2219/30Nc systems
    • G05B2219/33Director till display
    • G05B2219/33139Design of industrial communication system with expert system
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • Selective Calling Equipment (AREA)
  • Arrangements For Transmission Of Measured Signals (AREA)

Abstract

The invention belongs to the field of instrument control, in particular to a multi-program control instrument control method based on an SCPI command, which now proposes the following scheme that the method comprises the following steps: s1: establishing an SCPI instruction integration library: establishing an SCPI instruction integrated library of product subsystem commands; s2: packaging SCPI instruction integration library: packaging the established SCPI instruction integrated library; s3: instrument networking: networking the instrument to be networked by using a Local Area Network (LAN) interface of the instrument to be networked and using a switch; s4: networking instrument identification: identifying a networking instrument through an IEEE universal instruction; s5: and (3) data acquisition: data of the networking instrument is collected. The invention unifies the interfaces of the program-controlled instruments, greatly simplifies the connection communication steps of the PC and the program-controlled instruments, ensures that a user does not need to memorize complex SCPI instructions, realizes the control and data reading of various types of instruments, can realize the synchronous data transmission of various measuring instruments, and is suitable for complex measurement conditions.

Description

Multi-program-controlled instrument control method based on SCPI command
Technical Field
The invention relates to the technical field of instrument control, in particular to a multi-program control instrument control method based on an SCPI command.
Background
Under the hot tide of intelligent factories and industrial Internet of things, a technology for remotely detecting and controlling a production environment by using a program control instrument is increasingly paid attention to. Along with the improvement of the complexity of production and research and development environments, the requirements of people on the speed and accuracy of data exchange between a program control instrument and a host machine and the cooperative control of multiple instruments are also higher and higher.
The SCPI instruction is a set of standard syntax and commands based on IEEE488.2 for controlling programmable measuring instruments. The method adopts a set of command sets with tree-like layered structure, and proposes a universal instrument model with universality. Wherein the commands are divided into two kinds, one is an IEEE general command such as: * CLS (clear), -IDN (query), -RCL (reset), one control command specific to a subsystem command, i.e., a different type of instrument.
The current PC and program control instrument interaction system, such as NI MAX, can realize the control and data reading of the PC end to the program control instrument by sending an SCPI instruction, but the existing technology for remotely detecting and controlling the production environment by using the program control instrument has the following problems:
1. the existing interaction system of the PC and the program controlled instrument has no uniform interface, and a user is often required to additionally install a driver of a GPIB or RS2332 interface, so that inconvenience is brought to use;
2. at present, control and data reading of a program-controlled instrument by a PC are mainly realized by inputting a single SCPI instruction by a user, real automatic measurement and data acquisition are difficult to realize, and because of different subsystem commands of instruments of different types, the universality of instrument control programs is poor, and the user needs to memorize a large number of complex SCPI instructions;
3. the current PC and program-controlled instrument interaction system cannot realize data visualization and cooperative control and data reading among instruments of different types under the condition of no need of secondary development, and has large data processing difficulty and difficulty in meeting complex measurement requirements.
Disclosure of Invention
The invention aims to solve the defects that in the prior art, a PC and a program control instrument interaction system do not have a uniform interface, a user needs to memorize a large number of complex SCPI instructions, the data processing difficulty is high, and the complex measurement requirement is difficult to meet.
In order to achieve the above purpose, the present invention adopts the following technical scheme:
the control method of the multi-program controlled instrument based on the SCPI command comprises the following steps:
s1: establishing an SCPI instruction inheritance library: establishing an SCPI instruction inheritance library of the product subsystem command;
s2: packaging SCPI instruction inheritance library: encapsulating the established SCPI instruction inheritance library;
s3: instrument networking: networking the instrument to be networked by using a Local Area Network (LAN) interface of the instrument to be networked and using a switch;
s4: networking instrument identification: identifying a networking instrument through an IEEE universal instruction;
s5: and (3) data acquisition: collecting data of a networking instrument;
s6: UI interface control: after the identification is finished, the user can complete the control of the multi-program-controlled instrument and the complex measurement task through the UI interface.
Preferably, in S2, the SCPI instruction inheritance library is encapsulated according to a corresponding instrument operation mode and a data reading mode.
Preferably, in S2, the SCPI instruction inheritance library is packaged into a corresponding function.
Preferably, in the step S3, no additional driver is required to be installed, and only a network cable or a wireless router is required to be connected to achieve communication with the instrument.
Preferably, in the step S4, the model of the networking instrument is queried through the IEEE general command, and the corresponding process is started after the returned instrument model data is obtained.
Preferably, in S5, the collected data is stored in a specified folder in a format of tdms file.
Preferably, in the step S6, the UI interface controls and reads data of a plurality of measuring instruments with different models.
The invention has the beneficial effects that:
(1) According to the multi-program-controlled instrument control method based on the SCPI command, disclosed by the invention, the interface of the program-controlled instrument is unified through the technology of automatically identifying the instrument in the local area network by traversing the address and the IEEE universal instruction, and the connection communication step of the PC and the program-controlled instrument is greatly simplified;
(2) The SCPI command-based multi-program-controlled instrument control method integrates an IEEE general command, an SCPI command library of main flow measuring instrument subsystem commands and a function formed by combining and packaging the commands in the library according to different instrument functions, so that a user can realize control and data reading of various types of instruments by calling the function through a UI interface without memorizing complex SCPI commands;
(3) The multi-program-controlled instrument control method based on the SCPI command, which is provided by the invention, has the advantages that the technology of the multi-program-controlled instrument can realize synchronous data transmission of various measuring instruments, and is suitable for complex measuring conditions.
Drawings
FIG. 1 is a schematic diagram of a program controlled instrument networking connection in a SCPI command-based multi-program controlled instrument control method according to the present invention;
FIG. 2 is a flow chart of a method for controlling a multi-program controlled instrument based on an SCPI command according to the present invention;
FIG. 3 is a schematic diagram of a SCPI command inheritance library section in the SCPI command-based multi-program-controlled instrument control method of the present invention;
FIG. 4 is a schematic diagram of an oscilloscope control effect;
FIG. 5 is a schematic diagram of the control effect of a digital multimeter;
fig. 6 is a schematic diagram of the control effect of the signal generator.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments.
Referring to fig. 1-6, a multi-program controlled instrument control method based on SCPI commands, comprising the steps of:
s1: establishing an SCPI instruction inheritance library: establishing an SCPI instruction inheritance library of the product subsystem command;
s2: packaging SCPI instruction inheritance library: encapsulating the established SCPI instruction inheritance library;
s3: instrument networking: networking the instrument to be networked by using a Local Area Network (LAN) interface of the instrument to be networked and using a switch;
s4: networking instrument identification: identifying a networking instrument through an IEEE universal instruction;
s5: and (3) data acquisition: collecting data of a networking instrument;
s6: UI interface control: after the identification is finished, the user can complete the control of the multi-program-controlled instrument and the complex measurement task through the UI interface.
In the invention, in the step S2, the SCPI instruction inheritance library is packaged according to the corresponding instrument operation mode and the data reading mode.
In the invention, in the step S2, the SCPI instruction inheritance library is packaged into a corresponding function.
In the invention, in the step S3, the communication with the instrument can be realized only by connecting a network cable or a wireless router without installing an additional driver.
In the invention, in the step S4, the model of the networking instrument is queried through the IEEE universal instruction, and the corresponding process is started after the returned instrument model data is obtained.
In the invention, in the step S5, the collected data is stored in the designated folder in the format of the tdms file, the mode of one process of an instrument is adopted to communicate with the program-controlled instrument, and the collected data is stored in the designated folder in the format of the tdms file, so that synchronous control and data reading of instruments of different types can be directly realized, the steps of data processing are greatly simplified, and the more complex measurement requirements can be met.
In the invention, in the step S6, the UI interface performs control and data reading on a plurality of measuring instruments with different models.
As shown in fig. 1, the instruments are networked by using the LAN interface of the instruments, and the PC can realize communication with the instruments by connecting a network cable or a wireless router without installing an additional drive.
As shown in fig. 2, after the PC is connected to the network, the IP address of the connected instrument is found by traversal, and by IEEE general instruction "? The method comprises the steps of inquiring the model of the instrument, creating corresponding categories and starting corresponding processes after the returned instrument model data are obtained, and enabling a user to manage and control the processes through a UI interface so as to realize control and data reading of a plurality of measuring instruments with different models.
As shown in fig. 3, the SCPI instruction library integrated with the IEEE universal command and the subsystem command of the main flow measuring instrument combines and encapsulates the SCPI instructions into corresponding functions according to the specific functions of the instrument, and the user can call the functions to realize the control of the multi-program controlled instrument by operating the UI interface without memorizing the SCPI instructions.
Taking an oscilloscope MSO3032, a digital multimeter DM34450A and a signal generator DG4062 as an example, the control effect through the UI interface is shown in FIG. 4, FIG. 5 and FIG. 6, and according to the control effect, it can be clearly known that:
1. the LAN port and the exchanger of the instrument are utilized to network the instrument, the instrument is automatically identified in a traversing address and IEEE general instruction mode, and the connection of a plurality of program-controlled instruments and a PC can be realized without additional driving programs and setting, so that the communication steps of the program-controlled instruments and the PC are simplified;
2. an SCPI instruction library integrating the IEEE general instruction and the subsystem instruction of the main flow measuring instrument is designed, the instructions are combined and packaged according to the functions of different instruments, a user does not need to memorize specific SCPI instructions, and the control and data reading of measuring instruments of different types can be realized by using a UI interface;
3. the instrument is controlled in a one-process mode by adopting one instrument, and the read data is stored in a tdms format, so that synchronous data acquisition of various measuring instruments with different types is realized, and the data processing steps are simplified.
While the fundamental and principal features of the invention and advantages of the invention have been shown and described, it will be apparent to those skilled in the art that the invention is not limited to the details of the foregoing exemplary embodiments, but may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned.
Furthermore, it should be understood that although the present disclosure describes embodiments, not every embodiment is provided with a separate embodiment, and that this description is provided for clarity only, and that the disclosure is not limited to the embodiments described in detail below, and that the embodiments described in the examples may be combined as appropriate to form other embodiments that will be apparent to those skilled in the art.

Claims (7)

1. The multi-program-controlled instrument control method based on the SCPI command is characterized by comprising the following steps of:
s1: establishing an SCPI instruction integration library: establishing an SCPI instruction integrated library of product subsystem commands;
s2: packaging SCPI instruction integration library: packaging the established SCPI instruction integrated library;
s3: instrument networking: networking the instrument to be networked by using a Local Area Network (LAN) interface of the instrument to be networked and using a switch;
s4: networking instrument identification: identifying a networking instrument through an IEEE universal instruction;
s5: and (3) data acquisition: collecting data of a networking instrument;
s6: UI interface control: after the identification is finished, the user can complete the control of the multi-program-controlled instrument and the complex measurement task through the UI interface.
2. The SCPI command-based multi-program-controlled instrument control method according to claim 1, wherein in S2, the SCPI command integrated library is packaged according to a corresponding instrument operation mode and a data reading mode.
3. The SCPI command-based multi-program-controlled instrument control method according to claim 1, wherein in S2, the SCPI instruction integrated library is packaged into a corresponding function.
4. The SCPI command-based multi-program-controlled instrument control method according to claim 1, wherein in S3, the communication with the instrument can be achieved only by connecting a network cable or a wireless router without installing an additional driver.
5. The SCPI command-based multi-program-controlled instrument control method according to claim 1, wherein in S4, the model of the networked instrument is queried by the IEEE general command, and the corresponding process is started after the returned instrument model data is obtained.
6. The SCPI command-based multi-program-controlled instrument control method according to claim 1, wherein in S5, the acquired data is stored in a designated folder in a format of tdms file.
7. The SCPI command-based multi-program-controlled instrument control method according to claim 1, wherein in S6, the UI interface controls and reads data of a plurality of measuring instruments of different models.
CN202111178570.6A 2021-10-10 2021-10-10 Multi-program-controlled instrument control method based on SCPI command Active CN113934186B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111178570.6A CN113934186B (en) 2021-10-10 2021-10-10 Multi-program-controlled instrument control method based on SCPI command

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111178570.6A CN113934186B (en) 2021-10-10 2021-10-10 Multi-program-controlled instrument control method based on SCPI command

Publications (2)

Publication Number Publication Date
CN113934186A CN113934186A (en) 2022-01-14
CN113934186B true CN113934186B (en) 2023-08-11

Family

ID=79278022

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111178570.6A Active CN113934186B (en) 2021-10-10 2021-10-10 Multi-program-controlled instrument control method based on SCPI command

Country Status (1)

Country Link
CN (1) CN113934186B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022290A (en) * 2015-05-19 2015-11-04 重庆大学 Method for implementing multi-type oscilloscope centralized control system based on middleware
CN107517246A (en) * 2017-08-04 2017-12-26 天津理工大学 Large-scale scientific research apparatus based on Internet of Things shares and on-line intelligence test system
CN108259549A (en) * 2017-05-18 2018-07-06 西安邮电大学 A kind of implementation method of Networked Instrument instrument front-end proxy agent
CN109582287A (en) * 2018-11-26 2019-04-05 中国人民解放军战略支援部队航天工程大学 A kind of generalization carrier rocket test architecture design
CN109814530A (en) * 2019-01-28 2019-05-28 中国空间技术研究院 A kind of satellite power supply controller performance Auto-Test System
CN111782509A (en) * 2020-06-15 2020-10-16 西北工业大学 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8843841B2 (en) * 2009-04-30 2014-09-23 Agilent Technologies, Inc. System and method for interactive instrument operation and automation

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105022290A (en) * 2015-05-19 2015-11-04 重庆大学 Method for implementing multi-type oscilloscope centralized control system based on middleware
CN108259549A (en) * 2017-05-18 2018-07-06 西安邮电大学 A kind of implementation method of Networked Instrument instrument front-end proxy agent
CN107517246A (en) * 2017-08-04 2017-12-26 天津理工大学 Large-scale scientific research apparatus based on Internet of Things shares and on-line intelligence test system
CN109582287A (en) * 2018-11-26 2019-04-05 中国人民解放军战略支援部队航天工程大学 A kind of generalization carrier rocket test architecture design
CN109814530A (en) * 2019-01-28 2019-05-28 中国空间技术研究院 A kind of satellite power supply controller performance Auto-Test System
CN111782509A (en) * 2020-06-15 2020-10-16 西北工业大学 Space flight automatic test method based on virtual instrument pseudo-instruction mechanism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于嵌入式系统的智能调测平台设计;崔海涛等;自动化与仪器仪表(第10期);137-140 *

Also Published As

Publication number Publication date
CN113934186A (en) 2022-01-14

Similar Documents

Publication Publication Date Title
US9864346B2 (en) Method for connecting a substation automation device according to IEC61850 to any industry automation field bus
CN108414849A (en) Intelligent substation automatization test system and method
CN109257208A (en) A kind of information integrated system and method based on OPC UA
CN106534187A (en) Unified management method and system for multi-type wireless data transmission terminal
CN113612654B (en) Vehicle-mounted gateway function test method based on database
CN113028603B (en) Equipment monitoring system applied to central air-conditioning system
CN104092630A (en) Configuration file for automatic operation of switchboards and operation method thereof
CN108521412A (en) Data collector, data collecting system and collecting method
CN105955202B (en) The network-based economical embedded five-axle numerical control system of one kind and its control method
CN113934186B (en) Multi-program-controlled instrument control method based on SCPI command
CN106291329B (en) A kind of test macro with the automatic detection distant function of distribution terminal three
CN208459843U (en) The batching data processing unit and monitoring system of manufactruing equipment of automobile
CN106149246B (en) Cheese dehydrator control system and its implementation
CN2916718Y (en) Field-bus distributed control system for chemical fiber spinning and drying
CN115683158A (en) Configurable general test platform for inertial products
JP2021514171A (en) Devices, systems and methods for controlling electrical loads
CN110524155A (en) A kind of remote real-time monitoring system for welding robot system
CN114726916A (en) Data transmission management system and method based on edge Internet of things agent
CN202748161U (en) Environmental factor acquisition system and measuring apparatus for production process of semiconductor integrated circuit
CN101290710A (en) User programmable universal question-answer type communication interface method
CN219918970U (en) Modular combined type internet of things terminal
CN115473919B (en) Sensing data access method, system, device, storage medium and equipment for power transmission and transformation Internet of things
Li et al. Design and Implementation of HMI Components Based on OpenSCADA
Yu et al. Research and Application of Plug-and-play Technology for the Online Testing of Distribution Automation
CN112104496B (en) Universal substation IED self-discovery and self-configuration method and device based on UPnP

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
GR01 Patent grant
GR01 Patent grant