CN105487862B - Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card - Google Patents

Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card Download PDF

Info

Publication number
CN105487862B
CN105487862B CN201510836286.1A CN201510836286A CN105487862B CN 105487862 B CN105487862 B CN 105487862B CN 201510836286 A CN201510836286 A CN 201510836286A CN 105487862 B CN105487862 B CN 105487862B
Authority
CN
China
Prior art keywords
output
channel
function
waveform
data acquisition
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
CN201510836286.1A
Other languages
Chinese (zh)
Other versions
CN105487862A (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.)
705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp
Original Assignee
705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp
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 705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp filed Critical 705TH RESEARCH INSTITUTE OF CHINA SHIPBUILDING INDUSTRY Corp
Priority to CN201510836286.1A priority Critical patent/CN105487862B/en
Publication of CN105487862A publication Critical patent/CN105487862A/en
Application granted granted Critical
Publication of CN105487862B publication Critical patent/CN105487862B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44557Code layout in executable memory
    • G06F9/44563Sharing

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Debugging And Monitoring (AREA)
  • Radio Relay Systems (AREA)

Abstract

The invention discloses a kind of multi-channel waveform synchronism output methods based on PXI bus multi-function data acquisition card, for solving the technical problem of existing multi-channel waveform synchronism output method synchronism output performance difference.Technical solution is using modularization, Hierarchical Design thinking, utilize the serviced component of COM technology building layering, the application layer of software, operation layer, service layer are individually encapsulated, respectively in the application layer of inspection software, operation layer and service layer building difference component, corresponding power function is encapsulated in assembly, so during the test multi-functional acquisition module simulation output different wave signal when, need to only modify the setup parameter of corresponding assembly waveform output function;When exporting direct current signal, only the frequency parameter of corresponding assembly waveform output function need to be set as 0, it solves the technical problem that multi-function data acquisition card multi-analog output channel is unable to synchronism output different type waveform signal, improves multichannel different type waveform signal synchronism output performance.

Description

Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card
Technical field
The present invention relates to a kind of multi-channel waveform synchronism output methods, in particular to a kind of to be adopted based on the total line multi-function of PXI The multi-channel waveform synchronism output method of truck.
Background technique
The multi-function data acquisition card of PXI bus is due to itself acquisition of integrated simulation amount, analog output, number I/O and multichannel The multiple functions such as Timer/Counter are widely used in automatic test field, can meet commonly used demand, however, due to this Kind multi-function data acquisition card main signals such as its clock signal, trigger signal and onboard Buffer management signal in design are multiplexings Dependent relationship, multi-analog output channel can only the same type of waveform signal of synchronism output, be unable to synchronism output Different types of waveform signal is unable to satisfy the different types of waveform signal application of synchronism output on one piece of multi-function data acquisition card Demand.Using multi-function data acquisition card when needing to export direct current signal, first carry out direct current creation mission function carry out task creation, The operations such as output area setting, then execute DC waveform output function, carry out the behaviour such as output channel number, the setting of channel amplitude Make, finally execute direct current and end task function, carries out task stopping, the operation such as task is removed;When needing to export AC signal, First stop aforementioned DC waveform signal output, then executes exchange creation mission function and carry out exchange task creation, output area The operation such as setting, then AC wave shape output function is executed, the operations such as output channel number, channel amplitude, channel frequence setting are carried out, It finally executes and exchanges the function that ends task, carry out the operations such as task stopping, task removing.For this purpose, needing to export different type Waveform signal application in, usually using muti-piece multi-function data acquisition card, wherein each piece of multi-function data acquisition card only exports a type The waveform signal of type in this way, use process is inconvenient, while increasing use cost.
And during certain type product testing, need synchronism output AC signal and direct current signal two types to simulate letter Number, and although the multi-function data acquisition card in the detection device that the product uses at present has 4 road analog output functions and (differentiates Rate: 16bit, turnover rate: 1.25MSa/s, output area: ± 10V), but 4 road analog outputs of same multi-function data acquisition card Channel must export same type analog signals simultaneously, that is, be all direct current signal or be all AC signal, and cannot be defeated simultaneously Different types of analog signals out are unable to satisfy corresponding detection demand, to constrain the function and performance to the type product Detection.
Therefore, the spy of direct current signal and AC signal cannot be exported simultaneously for multi-function data acquisition card analog output channel Point, urgent need construct a kind of multichannel different type waveform signal synchronism output method based on PXI bus multi-function data acquisition card, no It can only realize detection and the Performance Evaluation to the type product, while it is same to meet one piece of multi-function data acquisition card in Auto-Test System The application demand of step output different type waveform signal.
Summary of the invention
In order to overcome the shortcomings of that existing multi-channel waveform synchronism output method synchronism output performance is poor.The present invention provides one kind Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card.This method is thought using modularization, Hierarchical Design The application layer of software, operation layer, service layer are individually encapsulated, exist respectively using the serviced component of COM technology building layering by road Application layer, operation layer and the service layer building difference component of inspection software, encapsulate corresponding power function in assembly, exist in this way In test process when multi-functional acquisition module simulation output different wave signal, corresponding assembly waveform output function need to be only modified Setup parameter;When exporting direct current signal, the frequency parameter of corresponding assembly waveform output function need to be only set as to 0, solution Multi-function data acquisition card multi-analog output channel of having determined is unable to the technical problem of synchronism output different type waveform signal, extension The function of multi-function data acquisition card, improves multichannel different type waveform signal synchronism output performance.
The technical solution adopted by the present invention to solve the technical problems is: a kind of based on PXI bus multi-function data acquisition card Multi-channel waveform synchronism output method, its main feature is that the following steps are included:
Step 1: in the driving function dynamic link library of service layer building creation mission function, waveform output function and End task three functions of function, is integrally packed into dynamic link library and calls for operation layer and application layer.It is wherein defeated in waveform Four one-dimension array variables of building, respectively channel number, channel amplitude, channel frequence and output data in function out, channel number, Channel amplitude and channel frequence are formal parameter, and array length 4, output data variable array length is every channel output data Points and the product of port number go out each channel different wave logarithmic output signal value using special interpolation algorithm interpolation calculation, and by its It is written in the onboard Buffer of multi-function data acquisition card;
Step 2: calling the creation mission function in dynamic link library API in application layer, realize to multi-function data acquisition card The operation such as initialization;Then waveform output function is called, different channels and each channel amplitude and frequency parameter is set as needed, It is transmitted by function call and parameter, it is defeated according to the channel of setting, amplitude, Frequency Synchronization by triggering under system clock effect Data in onboard Buffer out, that realizes multichannel different type waveform signal synchronizes continuous output;
Step 3: calling the function that ends task in dynamic link library API in application layer, stop different channels as requested The output of waveform signal discharges resource.
The beneficial effects of the present invention are: this method uses modularization, Hierarchical Design thinking, the building point of COM technology is utilized The serviced component of layer, the application layer of software, operation layer, service layer is individually encapsulated, respectively in the application layer of inspection software, business Layer and service layer building difference component, encapsulate corresponding power function, so multi-functional acquisition during the test in assembly When module simulation exports different wave signal, the setup parameter of corresponding assembly waveform output function need to be only modified;Output is straight When flowing signal, only the frequency parameter of corresponding assembly waveform output function need to be set as 0, solve multi-function data acquisition card multichannel Analog output channel is unable to the technical problem of synchronism output different type waveform signal, extends the function of multi-function data acquisition card Can, improve multichannel different type waveform signal synchronism output performance.
It elaborates with reference to the accompanying drawings and detailed description to the present invention.
Detailed description of the invention
Fig. 1 is service layer's Dynamic Link Library Function figure of the method for the present invention building.
Fig. 2 is to carry out multi-function data acquisition card multi-channel waveform with service layer's Dynamic Link Library Function using the method for the present invention The inspection software flow chart of synchronism output.
Specific embodiment
Referring to Fig.1-2.The present invention is based on the multi-channel waveform synchronism output methods of PXI bus multi-function data acquisition card specifically to walk It is rapid as follows:
1, software architecture designs.
It is wanted for the versatility target of realization Auto-Test System and modularization, stratification, the compatibility of inspection software Ask, for the programming quantity of software is reduced to minimum, using COM technology building layering serviced component, can by the application layer of software, Operation layer, service layer are individually encapsulated, are adequately isolated, while convenient, flexible assembling and calling again.For this purpose, respectively in inspection software Application layer, operation layer and service layer encapsulate corresponding power function in assembly, were testing in this way using different components are constructed When using multi-function data acquisition card simulation output different wave signal in journey, the setting of corresponding assembly waveform output function need to be only modified Parameter;When exporting direct current signal, the frequency parameter that need to only modify corresponding assembly waveform output function is set as 0.
2, service layer's driving function Design of DLL.
Building creates mission function, waveform output function, ends task in the driving function dynamic link library of service layer Three functions of function are integrally packed into dynamic link library and call for operation layer and application layer.Specific step is as follows:
1. building creation mission function MWA_Init () carries out the creation of task handle, output area is set, output gain is set It is fixed, the operation such as way of output setting;
2. constructing waveform output function MWA_Output (), output channel number, channel amplitude, channel frequence setting etc. are carried out Operation constructs four one-dimension array variables, and respectively (channel number leads to for channel number, channel amplitude, channel frequence and output data Road amplitude, channel frequence are formal parameter, and array length 4, output data variable array length is every channel output data point Several products with port number), go out each channel different wave logarithmic output signal value using special interpolation algorithm interpolation calculation, first by it It is written in the onboard Buffer of multi-function data acquisition card, then realizes that multi-channel synchronous is defeated by triggering under the action of system clock Different types of waveform signal out;
The function MWA_Stop () 3. building ends task carries out the operations such as task stopping, task removing, removes waveform output Aray variable in function, free system resources.
3, application layer software designs.
The creation mission function in driving function dynamic link library is called in application layer, is realized to the first of multi-function data acquisition card The operation such as beginningization;Then waveform output function is called, different channels are set as needed and each channel amplitude, frequency parameter are (real Border parameter), it is transmitted by function call and parameter, by triggering according to the channel of setting, amplitude, frequency under system clock effect Data in the onboard Buffer of rate synchronism output, that realizes multichannel different type waveform signal synchronizes continuous output;Finally, adjusting With the function that ends task, stop the output of different channel waveform signals as requested, discharges resource.

Claims (1)

1. a kind of multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card, it is characterised in that including following Step:
Step 1: building creation mission function, waveform output function and end in the driving function dynamic link library of service layer Three functions of mission function are integrally packed into dynamic link library and call for operation layer and application layer;Wherein letter is exported in waveform Four one-dimension array variables, respectively channel number, channel amplitude, channel frequence and output data, channel number, channel are constructed in number Amplitude and channel frequence are formal parameter, and array length 4, output data variable array length is every channel output data points With the product of port number, go out each channel different wave logarithmic output signal value using special interpolation algorithm interpolation calculation, and is written into In the onboard Buffer of multi-function data acquisition card;
Step 2: calling the creation mission function in dynamic link library API in application layer, realize to the initial of multi-function data acquisition card Change operation;Then waveform output function is called, different channels and each channel amplitude and frequency parameter is set as needed, passes through letter Number is called to be transmitted with parameter, onboard according to the channel of setting, amplitude, Frequency Synchronization output by triggering under system clock effect Data in Buffer, that realizes multichannel different type waveform signal synchronizes continuous output;
Step 3: calling the function that ends task in dynamic link library API in application layer, stop different channel waveforms as requested The output of signal discharges resource.
CN201510836286.1A 2015-11-26 2015-11-26 Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card Active CN105487862B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510836286.1A CN105487862B (en) 2015-11-26 2015-11-26 Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510836286.1A CN105487862B (en) 2015-11-26 2015-11-26 Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card

Publications (2)

Publication Number Publication Date
CN105487862A CN105487862A (en) 2016-04-13
CN105487862B true CN105487862B (en) 2019-02-01

Family

ID=55674862

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510836286.1A Active CN105487862B (en) 2015-11-26 2015-11-26 Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card

Country Status (1)

Country Link
CN (1) CN105487862B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306146B (en) * 2020-10-30 2023-07-21 山东浪潮科学研究院有限公司 Device and method for synchronizing output waveforms of AWG board cards in multi-PXIE chassis
CN114968871B (en) * 2022-05-06 2023-03-10 松山湖材料实验室 Signal synchronous acquisition method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1509001A (en) * 2002-12-16 2004-06-30 �й����ӿƼ����Ź�˾����ʮ�о��� Multi channel digital signal generator
US7062423B1 (en) * 2001-08-22 2006-06-13 Marvell International Ltd. Method and apparatus for testing a system on a chip (SOC) integrated circuit comprising a hard disk controller and read channel
CN1831541A (en) * 2006-04-14 2006-09-13 北京航空航天大学 Multichannel synchronous sinusoidal signal generator

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7062423B1 (en) * 2001-08-22 2006-06-13 Marvell International Ltd. Method and apparatus for testing a system on a chip (SOC) integrated circuit comprising a hard disk controller and read channel
CN1509001A (en) * 2002-12-16 2004-06-30 �й����ӿƼ����Ź�˾����ʮ�о��� Multi channel digital signal generator
CN1831541A (en) * 2006-04-14 2006-09-13 北京航空航天大学 Multichannel synchronous sinusoidal signal generator

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"利用NI-DAQ使PXI6713实现正弦波和方波的输出";李毓辉 等;《仪表技术》;20041020(第5期);第17-18+51页
"基于USB总线的虚拟数字存储示波器的设计与实现";叶秀羲 等;《移动电源与车辆》;20090920(第03期);第32-36页

Also Published As

Publication number Publication date
CN105487862A (en) 2016-04-13

Similar Documents

Publication Publication Date Title
EP3504644A1 (en) Universal verification methodology (uvm) register abstraction layer (ral) painter
CN105487862B (en) Multi-channel waveform synchronism output method based on PXI bus multi-function data acquisition card
CN105357070A (en) FPGA-based ARINC818 bus analysis and test apparatus
CN104268078A (en) Automatic chip validation method based on parameterized IP test case set
CN104794258A (en) Automobile hardware-in-loop simulation system
CN103984240A (en) Distributed real-time simulation method based on reflective memory network
CN202275399U (en) Debugging verification system for embedded software
CN202204892U (en) Rudder system dynamic test device
CN103605606A (en) Embedded software test case batch execution method capable of being automatically convertible
CN109308068B (en) Carrier rocket equivalent device system
CN103530166B (en) Verification platform and verification method for multi-channel chip based on virtual RAM
CN105954557B (en) A kind of oscillograph and method improving waveform capture rate
CN102799510A (en) PLC simulator based on reconfigurable components
CN104749515A (en) Low power scan testing method and device based on sequential equal segmentation
CN103746873A (en) System and method for testing communication module
CN104809892A (en) Single intersection traffic signal fuzzy controller
CN105445581A (en) Fault detection system based on Modelica model and method
CN104536433A (en) Motor train unit end signal test method
CN103995797A (en) Method for communication between FFT coprocessor and main processor
CN102854875B (en) Automobile air conditioner controller testing method and system
CN106547264B (en) A kind of detection method and system of controller input and output
CN204808037U (en) Ecu test system
CN104143017A (en) FPGA (field programmable gate array)-based UKF (unscented Kalman filter) algorithm and filtering on brain dynamics model by FPGA-based UKF algorithm
CN204649953U (en) A kind of automated calibration system of signal generator
CN106178960B (en) A kind of preparation method can control hollow-fibre membrane film wire spacing

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant