CN201956986U - Hand-painted waveform generator - Google Patents

Hand-painted waveform generator Download PDF

Info

Publication number
CN201956986U
CN201956986U CN2011200048479U CN201120004847U CN201956986U CN 201956986 U CN201956986 U CN 201956986U CN 2011200048479 U CN2011200048479 U CN 2011200048479U CN 201120004847 U CN201120004847 U CN 201120004847U CN 201956986 U CN201956986 U CN 201956986U
Authority
CN
China
Prior art keywords
module
waveform
wave data
waveform data
freehandhand
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.)
Expired - Fee Related
Application number
CN2011200048479U
Other languages
Chinese (zh)
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.)
Guilin University of Electronic Technology
Original Assignee
Guilin University of Electronic Technology
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 Guilin University of Electronic Technology filed Critical Guilin University of Electronic Technology
Priority to CN2011200048479U priority Critical patent/CN201956986U/en
Application granted granted Critical
Publication of CN201956986U publication Critical patent/CN201956986U/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Systems (AREA)

Abstract

The utility model discloses a hand-painted waveform generator, which comprises an upper computer, a lower computer, a communication module and a D/A (digital-to-analog) converting module. The upper computer mainly comprises a hand-painted waveform module, a waveform data generating module, a waveform data storage module and a waveform data transmitting module, the hand-painted waveform module is connected onto an input end of the waveform data generating module, and an output end of the waveform data generating module is connected with a waveform data transmitting module by the aid of the waveform data storage module. The lower computer mainly comprises a waveform data receiving module and a waveform generating module, and an output end of the waveform data receiving module is connected with the waveform generating module. The communication module is connected with the waveform data transmitting module of the upper computer and the waveform data receiving module of the lower computer, and an output end of the waveform generating module is connected with the D/A converting module. The hand-painted waveform generator is capable of outputting optional hand-painted waveform with adjustable frequency, amplitude and phase without complicated key operation, and is more visual and convenient in use and flexible in configuration.

Description

The Freehandhand-drawing waveform generator
Technical field
The utility model relates to a kind of waveform generator, is specifically related to a kind of Freehandhand-drawing waveform generator.
Background technology
Existing general waveform generator is desk-top waveform generator, produces waveform signal commonly used such as sine wave, square wave, triangular pulse though relevant parameter be selected and be imported to this desk-top waveform generator can for user key-press.But still exist following deficiency: what 1, wave setting adopted is the button input mode, is difficult to obtain the effect directly perceived of What You See Is What You Get, and operation is comparatively complicated, and the user needs the long time can left-hand seat; 2, the waveform that can produce is limited, is difficult to realize the function of " what waveform what waveform of Freehandhand-drawing arbitrarily just exports "; 3,, and can realize by the key controlled of complexity if will produce self-defined arbitrarily waveform then need be provided with more button on the panel of desk-top waveform generator.
Summary of the invention
Technical problem to be solved in the utility model is existing waveform generator complicated operation, can not intuitively generates the deficiency of random waveform, a kind of Freehandhand-drawing waveform generator is provided.
For addressing the above problem, a kind of Freehandhand-drawing waveform generator that the utility model is designed comprises host computer, slave computer, communication module and D/A modular converter; Wherein host computer mainly is made of Freehandhand-drawing waveform module, Wave data generation module, Wave data memory module and Wave data sending module, the Freehandhand-drawing waveform module is connected on the input of Wave data generation module, and the output of Wave data generation module links to each other with the Wave data sending module through the Wave data memory module; Wherein slave computer then mainly is made of Wave data receiver module and waveform generation module, and the output of Wave data receiver module connects the waveform generation module; Communication module connects the Wave data sending module of host computer and the Wave data receiver module of slave computer; The output of welding wave generation module links to each other with the D/A modular converter.
The described Freehandhand-drawing waveform module of such scheme comprises the display that shows drawing waveforms and the mouse of drawing waveforms.
The described communication module of such scheme is preferably the usb communication module.
The utility model promptly can be realized Freehandhand-drawing waveform and wave recording data by the interface programming of host computer, and carries out the control and the transmission of bottom usb data; The Wave data of record is transferred to slave computer through USB and carries out the waveform generation, again by the conversion of D/A change-over circuit, finally finishes the function of waveform output.Compared with prior art, the utility model not only need not complicated button operation, operates more simple; And can output frequency, amplitude, any Freehandhand-drawing waveform that phase place is adjustable; Use more directly perceived and convenience, dispose more flexible.
Description of drawings
Fig. 1 is the theory diagram of a kind of Freehandhand-drawing waveform generator of the present invention.
Embodiment
A kind of Freehandhand-drawing waveform generator of the utility model as shown in Figure 1, it mainly is made up of host computer, slave computer, communication module and D/A modular converter.Wherein host computer mainly is made of Freehandhand-drawing waveform module, Wave data generation module, Wave data memory module and Wave data sending module, the Freehandhand-drawing waveform module is connected on the input of Wave data generation module, and the output of Wave data generation module links to each other with the Wave data sending module through the Wave data memory module.Slave computer then mainly is made of Wave data receiver module and waveform generation module, and the output of Wave data receiver module connects the waveform generation module.Communication module connects the Wave data sending module of host computer and the Wave data receiver module of slave computer; The output of welding wave generation module links to each other with the D/A modular converter.On host computer, the user draws on the interface by the Freehandhand-drawing waveform module, realizes Freehandhand-drawing random waveform curve; After Wave data generation module interval sampling curvilinear path, Wave data memory module are recorded as Wave data; Carry out the control and the transmission of usb data by the Wave data sending module of host computer bottom, realize the Wave data of record and communicating by letter of slave computer.The Wave data that the Wave data receiver module of slave computer receives and the host computer of record sends, waveform generation module are finished and are sent into the D/A circuit conversion after Wave data is handled and change, and finally finish the output of Freehandhand-drawing waveform.
Host computer of the present utility model can be realized by computer, and the man-machine interface of host computer, i.e. Freehandhand-drawing waveform module comprise the display that shows drawing waveforms and the mouse of drawing waveforms.Communication module of the present utility model is the usb communication module.Usb protocol is followed in the transmission of usb communication module, and according to usb protocol, the host computer of USB device and slave computer are after being connected, mutual between host computer and the slave computer by the USB line, after connecting according to agreement, just can proper communication, the differential signal of transmission signals.Slave computer of the present utility model then can be realized by single-chip microcomputer.In the utility model preferred embodiment, slave computer is selected the C8051F320 microcontroller for use, and it is the kernel of 51 single-chip microcomputers, and the transceiver of USB2.0 is contained in inside, carries inner crystal oscillator and pull-up resistor, in hardware designs, can simplify circuit greatly like this.
The form that the internal processes of each module of host computer adopts VB (Visual Basic) to combine with VC (Visual C++); Wherein Wave data generation module and Wave data memory module utilize VB to be convenient to the characteristics of INTERFACE DESIGN, carry out design and control to the Freehandhand-drawing waveform portion; Wave data memory module and Wave data sending module then utilize the convenience of VC in bottom-layer design, utilize it that communication module is designed and controls, and realize its function by calling the driver that single-chip microcomputer carries.
For convenience of after drawing waveforms, the record of data and preservation, the utility model is when operation, at first to design, comprise background color, coordinate the background interface of drawing waveforms, and calculate the coordinate points of the interface of drawing waveforms at whole interface, show and data record with convenient.Next be the drafting of waveform, utilize left mouse button to click on the interface, by the control of Wave data generation module internal program, the each point connection with click forms a random waveform storage in the Wave data memory module.Last input according to the user, record data, and whether decision sends data.
The Wave data sending module of host computer is at first opened the Wave data in the Wave data memory module, begins to read the data in the file, and deposit data is advanced among the defined array BUFF ().After reading of data finishes, begin to carry out the communication of USB.At first detecting USB device is whether slave computer exists, and utilizes the function s=SI_GetNumDevices (﹠amp in the dynamic link library; D), if system detects USB device, then return value d is not 0, if there is not USB device, then is 0.Utilize function s=SI_Open (0 , ﹠amp then; Hnd) open USB port, wherein parameter 0 is a device numbering, and this numbering 0 is given tacit consent to.Because during slave computer communication, need 8 bit data, receive and pass to the D/A modular converter, so host computer before sending data, earlier data to be divided into 8 one group.And in first packet, identification for convenience, first is data 0x55, second is data 0xf5, third and fourth is the number PacketCount of packet, and the 5th, six is-PacketCount, and the 7th, eight is data total bytes count.The effect of first packet is that slave computer is receiving this packet, can read out the various parameters of these data, and make judgement.Afterwards, carry out the transmission of data.Utilize function s=SI_Write (hnd, buff, 8 , ﹠amp; Req).Four parameters are followed successively by: handle, data first address, data bits.After setting, normally send.
The Wave data receiver module of slave computer is finished the reception of usb communication data, and the waveform generation module is finished data are handled.Utilize the USB storehouse, with the communications portion function class of host computer seemingly.Host computer at first will be sent out token packet and send out interruption to slave computer.Slave computer enters interrupt service routine, at first reads the interrupt register of slave computer, judges the type of USB token packet, carries out corresponding operation then.When the USB of slave computer engine when host computer is received a packet, will produce an interrupt requests, so the slave computer interruption that makes an immediate response is being received in the interrupt routine of data.By judging the bag gauge outfit, if, then from information header, extract packet number n um and the Wave data dot that counts, and continue to read num packet, if not, walk downward.Judge whether it is to start the waveform output command, if, show that Data Receiving is complete, with regard to output waveform, if not, walk downward.Judge whether it is end packet, if, just receive, wait for packet otherwise change.

Claims (3)

1. the Freehandhand-drawing waveform generator is characterized in that: comprise host computer, slave computer, communication module and D/A modular converter; Wherein host computer mainly is made of Freehandhand-drawing waveform module, Wave data generation module, Wave data memory module and Wave data sending module, the Freehandhand-drawing waveform module is connected on the input of Wave data generation module, and the output of Wave data generation module links to each other with the Wave data sending module through the Wave data memory module; Wherein slave computer then mainly is made of Wave data receiver module and waveform generation module, and the output of Wave data receiver module connects the waveform generation module; Communication module connects the Wave data sending module of host computer and the Wave data receiver module of slave computer; The output of welding wave generation module links to each other with the D/A modular converter.
2. Freehandhand-drawing waveform generator according to claim 1 is characterized in that: described Freehandhand-drawing waveform module comprises the display that shows drawing waveforms and the mouse of drawing waveforms.
3. Freehandhand-drawing waveform generator according to claim 1 is characterized in that: described communication module is the usb communication module.
CN2011200048479U 2011-01-07 2011-01-07 Hand-painted waveform generator Expired - Fee Related CN201956986U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011200048479U CN201956986U (en) 2011-01-07 2011-01-07 Hand-painted waveform generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011200048479U CN201956986U (en) 2011-01-07 2011-01-07 Hand-painted waveform generator

Publications (1)

Publication Number Publication Date
CN201956986U true CN201956986U (en) 2011-08-31

Family

ID=44501087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011200048479U Expired - Fee Related CN201956986U (en) 2011-01-07 2011-01-07 Hand-painted waveform generator

Country Status (1)

Country Link
CN (1) CN201956986U (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363006A (en) * 2014-11-24 2015-02-18 兰州大学 Random waveform generation system supporting multiple waveform input modes
CN106444962A (en) * 2016-11-30 2017-02-22 桂林电子科技大学 Drawing random waveform signal generator
CN106771452A (en) * 2016-11-15 2017-05-31 中国电子科技集团公司第四十研究所 A kind of waveform drawing and acquisition method based on MFC class libraries and screen resolution

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104363006A (en) * 2014-11-24 2015-02-18 兰州大学 Random waveform generation system supporting multiple waveform input modes
CN106771452A (en) * 2016-11-15 2017-05-31 中国电子科技集团公司第四十研究所 A kind of waveform drawing and acquisition method based on MFC class libraries and screen resolution
CN106444962A (en) * 2016-11-30 2017-02-22 桂林电子科技大学 Drawing random waveform signal generator

Similar Documents

Publication Publication Date Title
CN100373780C (en) Data transfer control device and electronic instrument
CN100363913C (en) Data transfer control device and electronic instrument
CN106226573B (en) A kind of digital signal processing method for digital fluorescence oscilloscope
CN201956986U (en) Hand-painted waveform generator
CN102023956A (en) Serial peripheral slave device interface structure in integrated circuit chip and data reading and writing method
CN102073032A (en) Modular generation method for multi-waveform radar signal
CN106788566B (en) Transceiver with continuously variable chip rate based on Ethernet physical layer and transmission method
CN101839969A (en) Satellite communication 1553B ground detection system and detection method thereof
CN108111382A (en) Communicator and its communication means based on I3C buses
CN102223452B (en) The TTY method of testing of mobile terminal and system
CN102567272B (en) Method for improving working frequency of SPI (Serial Peripheral Interface) circuit
CN202533933U (en) I2C interface configuration circuit of programmable logic gate array and programmable logic gate array
CN202038816U (en) Instrument based on ARM CORTEX-M3 chip
US20050097403A1 (en) USB interface and testing method thereof
CN103592549A (en) Intelligent power system fault recorder
CN201387607Y (en) Infrared controller of user-defined function control computer
CN102123068B (en) Multi-bus communication system of cross modulation instrument
Soni et al. Exploring the serial capabilities for 16x2 lcd interface
CN101778038B (en) Gigabit Ethernet-based high-speed data transmission system of embedded equipment
CN206461608U (en) Transceiver based on ethernet physical layer chip rate continuous variable
CN209608667U (en) Safety device at distribution network terminal
CN201237769Y (en) Multifunctional computer wireless remote controller
CN103679101B (en) Handset audio reader device and system
CN110083567A (en) A kind of chip architecture
CN110244601A (en) A kind of data collection station system based on Internet of Things

Legal Events

Date Code Title Description
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20110831

Termination date: 20120107