CN106874083A - A kind of data actuation man-machine interface method for scheduling task - Google Patents
A kind of data actuation man-machine interface method for scheduling task Download PDFInfo
- Publication number
- CN106874083A CN106874083A CN201710000680.0A CN201710000680A CN106874083A CN 106874083 A CN106874083 A CN 106874083A CN 201710000680 A CN201710000680 A CN 201710000680A CN 106874083 A CN106874083 A CN 106874083A
- Authority
- CN
- China
- Prior art keywords
- task
- data
- thread
- storage
- thread task
- 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
- 238000000034 method Methods 0.000 title claims abstract description 59
- 238000005070 sampling Methods 0.000 claims abstract description 25
- 230000008859 change Effects 0.000 claims abstract description 24
- 230000008569 process Effects 0.000 claims abstract description 23
- 241000208340 Araliaceae Species 0.000 claims abstract description 20
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 claims abstract description 20
- 235000003140 Panax quinquefolius Nutrition 0.000 claims abstract description 20
- 235000008434 ginseng Nutrition 0.000 claims abstract description 20
- 230000004044 response Effects 0.000 claims abstract description 7
- 230000007246 mechanism Effects 0.000 claims description 39
- 238000001914 filtration Methods 0.000 claims description 23
- 238000013500 data storage Methods 0.000 claims description 22
- 230000003068 static effect Effects 0.000 claims description 19
- 238000013507 mapping Methods 0.000 claims description 18
- 230000006870 function Effects 0.000 claims description 17
- 108010076504 Protein Sorting Signals Proteins 0.000 claims description 12
- 239000011159 matrix material Substances 0.000 claims description 9
- 230000005855 radiation Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 claims description 8
- 238000002156 mixing Methods 0.000 claims description 8
- 238000006243 chemical reaction Methods 0.000 claims description 7
- 238000011017 operating method Methods 0.000 claims description 7
- 230000006641 stabilisation Effects 0.000 claims description 6
- 238000011105 stabilization Methods 0.000 claims description 6
- 238000004891 communication Methods 0.000 claims description 4
- 238000000205 computational method Methods 0.000 claims description 3
- 230000007717 exclusion Effects 0.000 claims description 3
- 238000000605 extraction Methods 0.000 claims description 3
- 239000000203 mixture Substances 0.000 claims description 3
- 230000000284 resting effect Effects 0.000 claims description 3
- 230000001052 transient effect Effects 0.000 claims description 3
- 238000012549 training Methods 0.000 claims 1
- 230000009466 transformation Effects 0.000 claims 1
- 238000012545 processing Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000001133 acceleration Effects 0.000 description 4
- 230000011664 signaling Effects 0.000 description 3
- 238000003306 harvesting Methods 0.000 description 2
- 238000012544 monitoring process Methods 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000010835 comparative analysis Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 230000004907 flux Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000007704 transition Effects 0.000 description 1
- 230000002618 waking effect Effects 0.000 description 1
- XLYOFNOQVPJJNP-UHFFFAOYSA-N water Substances O XLYOFNOQVPJJNP-UHFFFAOYSA-N 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/48—Program initiating; Program switching, e.g. by interrupt
- G06F9/4806—Task transfer initiation or dispatching
- G06F9/4843—Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
- G06F9/4881—Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
A kind of data actuation man-machine interface method for scheduling task, using concurrently can preemptive type thread scheduling method, flow is as follows:1. system starts, and data actuation process produces main thread, obtains data actuation real time data mirror image, waits user task request;2. response user task request, parameter initialization operation is tentatively set to sampling number, sample frequency, sampling channel, spatial cache, current time, target designation parameter;Data actuation thread task includes quiet ginseng thread task, domain thread task, frequency domain threads task, post figure line journey task, switch thread task and storage thread task in main thread;3. the number for obtaining user's request adopts thread task and has limit priority, and in system front stage operation, other tasks are in backstage parallel running;4. according to the change of user's request, each thread task priority realizes rotation, switches foreground session.The big data quantity concurrent tasks processing requirement effectively adapted to required by multichannel, parallel data actuation of the invention.
Description
Technical field
The present invention relates to man-machine interface and man-machine efficacy field, appoint more particularly, to towards a kind of data actuation man-machine interface
Business dispatching method.
Background technology
Data acquisition (Data acquisition, DAQ), is to be widely used in machinery, information, electronics, electric, calculating
The acquisition target pair of the engineering fields such as machine, building, Aero-Space, chemical industry, communications and transportation, ship naval vessels, agricultural, biology, medical science
As the necessary means of (equipment, system, component, part) state.DAQ typically utilize sensor or instrumentation, by contact or
Non-contacting mode, gathers the physical signalling of destination object.The output of physical signalling typically exists in electrical signal form, is put
Greatly, after the treatment such as filtering, it is delivered to computer system and is analyzed.
Flexible, User Defined is realized based on the measurement software and hardware product of computer or other dedicated testing platforms
Measuring system be referred to as data collecting system, abbreviation data actuation.Data actuation by the physical signalling of target device such as temperature,
Water level, wind speed, pressure, speed, electric current, voltage, flux, flow velocity etc., are converted to electric signal, typically based on voltage signal.Institute
The electric signal for obtaining is different according to its measuring principle, can be analog quantity, or digital quantity.The core missions of data actuation
It is directed to destination object to be sampled, i.e., same point Data duplication is gathered every certain hour (claiming the sampling period);The number of collection
According to that can be instantaneous centrifugal pump, a characteristic value in certain time be may also be;The numerical value number that one sample sequence is included
Referred to as sampling number.When target device is due to special technical requirement or special operation condition, cause its target physical signal cannot be straight
Obtain, at this moment can carry out target physical amount conversion by measuring other related physical quantities, realize target physical amount without biography
Sensed quantity.
With continuing to develop for computer technology, information technology and sensor technology, with multi pass acquisition, parallel processing energy
The data actuation of power turns into the main flow of data actuation, and technical requirements are improved constantly.The real-time data acquisition of multichannel, treatment with
Display is the prerequisite function of modern industry monitoring technology, and require can to realize between each function interface simultaneously without when
Between the switching that is interrupted, and the comparative analysis of history playback and real time data and big number can be realized according to the specific requirement of user
The operation such as storage according to amount.Multichannel, parallel data actuation are general to be occurred with special embedded computer system, with it is independent,
Operational capability and the stronger embedded central processing unit of transaction capabilities, and need the more perfect man-machine interface of function to carry out work(
Can manipulation and acquisition tasks switching at runtime.
For above-mentioned technical requirements, traditional man-machine interface and its dispatching method is difficult to adapt to multichannel, parallel data actuation
Required big data quantity concurrent tasks processing requirement, therefore, research and develop a kind of data actuation man-machine interface method for scheduling task non-
Often it is necessary.
The content of the invention
In order to being difficult to of overcoming existing data actuation man-machine interface task scheduling to exist adapts to multichannel, parallel data actuation
The deficiency of required big data quantity concurrent tasks processing requirement, the present invention provides a kind of effectively adaptation multichannel and line number is adopted and is
The data actuation man-machine interface method for scheduling task of the required big data quantity concurrent tasks processing requirement of system.
The technical solution adopted for the present invention to solve the technical problems is:
A kind of data actuation man-machine interface method for scheduling task, using concurrently can preemptive type thread scheduling method, realize to 6
The scheduling of individual data actuation thread task, handling process is as follows:
1. system starts, and main thread is produced by data actuation process, obtains data actuation real time data mirror image, waits user
Task requests;
2. the request of response user task, carries out parameter initialization operation, then derives from 6 data actuation thread tasks;Institute
The parameter initialization operation stated is to sampling number, sample frequency, sampling channel, spatial cache, current time, target designation ginseng
Number is tentatively set;Described data actuation thread task includes quiet ginseng thread task, domain thread task, frequency in main thread
Domain thread task, post figure line journey task, switch thread task and storage thread task;
3. the number for obtaining user's request adopts thread task and has limit priority, and in system front stage operation, other tasks exist
Backstage parallel running;
4. according to the change of user's request, each thread task priority realizes rotation, switches foreground session.
Further, described quiet ginseng thread task, receives number and adopts main thread real time data, carries out static parameter calculating, creates
Task session window is built, static parameter change curve is then drawn in session window by message map mechanism;
Described real time data is classified as batch data, continuous data and switch data, described batch according to its data volume
Amount data include audio, video, vibration and radiation, and the continuous data includes pressure, flow, temperature, electric current, voltage and work(
Rate, the switch data includes Boolean data;
Described static parameter calculate be by batch data and continuous data in units of sampling number, be divided into equivalent number
According to sequence, static statistics parameter extraction then is carried out to data sequence;Described static statistics parameter mainly comprising serial variance,
Sequence root mean square, the sequence degree of bias, sequence kurtosis and extrema in a sequence.
Described message map mechanism is the real-time session changing method towards data actuation man-machine interface, using signal-
Groove maps channel one by one, it is to avoid the complicated function pointer that mapping call back function is produced, and realizes transparent logical between user oriented object
Letter.
Quiet ginseng thread task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the quiet ginseng that current sessions window is described are started on backstage
Data are stored in system database.
The ordinate of described static parameter change curve is statistical parameter dimensionless amplitude, and abscissa is observing time
Section;The computational methods of described observing time section are:T=BN/f, wherein B are buffer size, and unit Byte, N are sampling
Points, f is sample frequency, unit Hz.
Further, described domain thread task, receives the batch data that number adopts main thread offer, carries out digital filtering
Treatment, creates task session window, and time domain data change curve is then drawn in session window by message map mechanism.Institute
The digital filtering process step stated is:
1) by batch data in units of sampling number, it is divided into equal amount of data sequence;
2) regard audio, video data as stabilization signal sequence, carry out median filter process, eliminate shake data element;
3) regard vibration, radiation as non-steady signal sequence, carry out anti-mixing and finite impulse response filtering, eliminate impact letter
Number composition.
Described message map mechanism is identical with the mapping mechanism in quiet ginseng thread task, and other thread tasks also apply this
Mechanism;The ordinate of described time domain data change curve is time domain data physics amplitude (speed, acceleration, data throughput),
Abscissa is numbered for sampling number ordered series of numbers.
Domain thread task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the time domain that current sessions window is described are started on backstage
Data are stored in system database.
Further, described frequency domain threads task, receives the batch data that number adopts main thread offer, carries out digital filter
Ripple, discrete Fourier transform treatment, create task session window, then draw frequency in session window by message map mechanism
Numeric field data change curve;Described discrete Fourier transform process step is:
Batch data in units of sampling number, is divided into equal amount of data sequence by Step1, carries out digital filtering treatment;
Step2 regards audio after filtering, video data as stabilization signal sequence, carries out at Fast Fourier Transform (FFT)
Reason, obtains signal frequency domain distribution;
Step3 regards vibration after filtering, radiation as non-steady signal sequence, carries out Short Time Fourier Transform treatment, obtains
To intrinsic mode function, the transient change component in signal is obtained.
The ordinate of described frequency domain data change curve is frequency domain data physics amplitude (speed, acceleration), abscissa
It is frequency domain points ordered series of numbers numbering, quantity is 1/2nd of sample frequency.
Frequency domain threads task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the frequency domain that current sessions window is described are started on backstage
Data are stored in system database.
Described post figure line journey task, receives the continuous data that number adopts main thread offer, carries out median filter process, creates
Task session window, then draws continuous data block diagram by message map mechanism in session window.
The ordinate of described continuous data block diagram be continuous data physics amplitude (Pascal, l/h, degree Celsius,
Ampere, Ford, watt), abscissa is classified for continuous data, i.e. pressure, flow, temperature, electric current, voltage, power.
Post figure line journey task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the post figure that current sessions window is described are started on backstage
Data are stored in system database.
Described switch thread task, receives the switch data that number adopts main thread offer, directly creates task session window,
Then switch data distribution map is drawn in session window by message map mechanism;Switch thread task process object is boolean
Data, data volume is smaller, with storage thread task onrelevant.
Described switch data distribution map shows switch data state in matrix bulletin board form to user;Described matrix
Bulletin board is that the switch data of different physical locations is carried out into Unified number, and the form of two-dimensional matrix describes switch data.
Further, realize that the internal state of thread task is changed and different threads task by mixing thread operating method
Operation switching;Described mixing thread operating method controls the internal conversion of thread task by semaphore, by famous pipe
The operation switching of different threads task is realized in road, and process step is as follows:
The first step, thread task be chosen, wake up after, load semaphore, into init state, make its each member variable
Assignment simultaneously opens up associated internal memory space;
Second step, after the completion of initialization, if without the request of other thread tasks carryings, thread task enters ready state;If
There are other thread tasks carryings to ask, current thread task enters blocked state, switch to the process task for obtaining request;It is described
Thread tasks carrying request transmitted by famous pipeline, it is ensured that the mutual exclusion of each thread task run and security;
3rd step, after thread task enters ready state, waits tasks carrying semaphore;If obtaining tasks carrying signal
Amount, then obtain the functions such as required data, completion treatment, drawing from main thread, after the completion of task, returns original state;If not
To tasks carrying semaphore, then into thread resting state, original place waits;
4th step, if the association related to storage thread task of current thread task, can connect in thread task processes
Harvesting storage line journey task signal, storage thread task is started on backstage, completes data storage;If user sends data storage renewal
Request, then can block currently stored thread task, re-start data storage.
Beneficial effects of the present invention are mainly manifested in:
1) using concurrently can preemptive type thread scheduling method, realize to 6 scheduling of data actuation thread task, be capable of achieving
Number adopts tasks in parallel, sweetly disposition;
2) channel is mapped using signal- slot one by one, it is to avoid the complicated function pointer that mapping call back function is produced, is capable of achieving face
To user object between transparent communication, improve parallel task treatment effeciency;
3) realize that the internal state of thread task changes the operation with different threads task by mixing thread operating method
Switching, realizes the parallel safety operation control of different threads task.
Brief description of the drawings
Fig. 1 is thread task scheduling flow chart;
Fig. 2 is domain thread task state transition schematic diagram.
Specific embodiment
The invention will be further described below in conjunction with the accompanying drawings.
Referring to Figures 1 and 2, a kind of data actuation man-machine interface method for scheduling task, using concurrently can preemptive type thread adjust
Degree method, realizes to 6 scheduling of data actuation thread task.
The present invention provide it is concurrent can preemptive type thread scheduling method, 32 parallel tasks can be at most supported, such as the institute of accompanying drawing 1
Show, its handling process is as follows:
1. system starts, and main thread is produced by data actuation process, obtains data actuation real time data mirror image, waits user
Task requests;
2. the request of response user task, carries out parameter initialization operation, then derives from 6 data actuation thread tasks;Institute
The parameter initialization operation stated is to sampling number, sample frequency, sampling channel, spatial cache, current time, target designation etc.
Parameter is tentatively set;Described data actuation thread task main thread include quiet ginseng thread task, domain thread task,
Frequency domain threads task, post figure line journey task, switch thread task and storage thread task.
3. the number for obtaining user's request adopts thread task and has limit priority, and in system front stage operation, other tasks exist
Backstage parallel running;
4. according to the change of user's request, each thread task priority realizes rotation, switches foreground session.
For 6 data actuation thread tasks involved in the present invention, its instantiation content can with operation process
It is described as follows:
(1) quiet ginseng thread task
Quiet ginseng thread task involved in the present invention, receives number and adopts main thread real time data, carries out static parameter calculating, creates
Task session window is built, static parameter change curve is then drawn in session window by message map mechanism.
Real time data involved in the present invention according to its data volume can be classified as batch data (audio, video, vibration,
Radiation), continuous data (pressure, flow, temperature, electric current, voltage, power) and switch data (Boolean data).
It is with sampling number by batch data and continuous data that the involved static parameter of quiet ginseng thread task treatment is calculated
It is unit, is divided into equal amount of data sequence, static statistics parameter extraction then is carried out to data sequence;Described static statistics ginseng
Number mainly includes serial variance, sequence root mean square, the sequence degree of bias, sequence kurtosis and extrema in a sequence.
Message map mechanism is the real-time session changing method towards data actuation man-machine interface, using signal- slot one by one
Mapping channel, it is to avoid the complicated function pointer that mapping call back function is produced, is capable of achieving transparent communication between user oriented object.Profit
This mechanism is used, waking up corresponding drawing according to user's selection carries out the tasks such as real-time monitoring and data storage, it is necessary to switch
When terminate the thread, reselect wake-up other tasks, this makes message transmission route more apparent, can obtain higher parallel
Task treatment effeciency.
Quiet ginseng thread task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, starts storage thread task on backstage, as shown in Figure 1, and by current sessions window
The quiet parameter evidence described is stored in system database.
Used as the core missions of quiet ginseng thread task, the ordinate of static parameter change curve is statistical parameter dimensionless width
Value, abscissa is observing time section;The computational methods of described observing time section are:T=BN/f, wherein B are that buffering area is big
Small (Byte), N is sampling number, and f is sample frequency (Hz).
(2) domain thread task
Domain thread task involved in the present invention receives the batch data that number adopts main thread offer, carries out at digital filtering
Reason, creates task session window, and time domain data change curve is then drawn in session window by message map mechanism.It is described
Digital filtering process step be:
1. by batch data in units of sampling number, it is divided into equal amount of data sequence;
2. regard audio, video data as stabilization signal sequence, carry out median filter process, eliminate shake data element;
3. regard vibration, radiation as non-steady signal sequence, carry out anti-mixing and finite impulse response filtering, eliminate impact letter
Number composition.
Message map mechanism during aforesaid operations is identical with the mapping mechanism in quiet ginseng thread task, and other threads are appointed
This mechanism is also applied in business;The ordinate of described time domain data change curve be time domain data physics amplitude (speed, acceleration,
Data throughput), abscissa is numbered for sampling number ordered series of numbers.
Domain thread task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the time domain that current sessions window is described are started on backstage
Data are stored in system database.
(3) frequency domain threads task
Frequency domain threads task involved in the present invention receives the batch data that number adopts main thread offer, carry out digital filtering,
Discrete Fourier transform is processed, and creates task session window, and frequency domain is then drawn in session window by message map mechanism
Data variation curve.Described discrete Fourier transform process step is:
1. by batch data in units of sampling number, equal amount of data sequence is divided into, carries out digital filtering treatment;
2. regard audio after filtering, video data as stabilization signal sequence, carry out Fast Fourier Transform (FFT) treatment, obtain
Obtain signal frequency domain distribution;
3. regard vibration after filtering, radiation as non-steady signal sequence, carry out Short Time Fourier Transform treatment, obtain this
Mode function is levied, the transient change component in signal is obtained.
The ordinate of frequency domain data change curve is frequency domain data physics amplitude (speed, acceleration), and abscissa is frequency domain
Points ordered series of numbers numbering, quantity is 1/2nd of sample frequency.
Frequency domain threads task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the frequency domain that current sessions window is described are started on backstage
Data are stored in system database.
(4) post figure line journey task
Post figure line journey task involved in the present invention receives the continuous data that number adopts main thread offer, carries out at medium filtering
Reason, creates task session window, and continuous data block diagram is then drawn in session window by message map mechanism.
The ordinate of continuous data block diagram be continuous data physics amplitude (Pascal, l/h, degree Celsius, ampere,
Ford, watt), abscissa is classified for continuous data, i.e. pressure, flow, temperature, electric current, voltage, power.
Post figure line journey task is associated with storage thread task, after user proposes online data storage request, by message
Mapping mechanism wakes up storage thread task, and storage thread task, and the post figure that current sessions window is described are started on backstage
Data are stored in system database.
(5) thread task is switched
Switch thread task involved in the present invention receives the switch data that number adopts main thread offer, directly creates task meeting
Words window, then draws switch data distribution map by message map mechanism in session window;The task treatment of switch thread is right
As being Boolean data, data volume is smaller, with storage thread task onrelevant.
Switch data distribution map shows switch data state in matrix bulletin board form to user;Described matrix bulletin board
It is that the switch data of different physical locations is carried out into Unified number, and the form of two-dimensional matrix describes switch data.
A kind of data actuation man-machine interface method for scheduling task provided by the present invention, by mixing thread operating method reality
The internal state conversion of existing thread task switches with the operation of different threads task.
Mixing thread operating method involved by such scheme controls the internal conversion of thread task by semaphore, passes through
Famous pipeline realizes the operation switching of different threads task.Because the operation of single thread task and state conversion process are basic
Identical, the present invention carries out related content description with domain thread task (see Fig. 2), and specific process step is as follows:
1. domain thread task be chosen, wake up after, load semaphore, into init state, make its each member variable
Assignment simultaneously opens up associated internal memory space.
2. after the completion of domain thread task initialization, if without the request of other thread tasks carryings, domain thread task enters
Ready state;If there is other thread tasks carryings to ask, such as user needs to check frequency domain or static parameter data, domain thread
Task enters blocked state, switches to the process task for obtaining request, i.e. frequency domain or quiet ginseng task;Described thread tasks carrying
Request is transmitted by famous pipeline, it is ensured that the mutual exclusion of each thread task run and security.
3. after domain thread task enters ready state, tasks carrying semaphore is waited;If obtaining tasks carrying semaphore,
Required data then are obtained from main thread, the functions such as filtering process, time domain drawing are completed, after the completion of task, original state is return;If
Tasks carrying semaphore is not obtained, then into domain thread task resting state, original place waits.
4. because the association related to storage thread task of domain thread task, can connect in domain thread task processes
Harvesting storage line journey task signal, storage thread task is started on backstage, completes data storage;If user sends data storage renewal
Request, then can block currently stored thread task, re-start data storage.
Finally, in addition it is also necessary to it is noted that listed above is only a specific embodiment of the invention.Obviously, the present invention
Above example is not limited to, there can also be many deformations.One of ordinary skill in the art can be straight from present disclosure
The all deformations derived or associate are connect, protection scope of the present invention is considered as.
Claims (7)
1. a kind of data actuation man-machine interface method for scheduling task, it is characterised in that:Using concurrently can preemptive type thread scheduling side
Method, realizes to 6 scheduling of data actuation thread task;It is described it is concurrent can preemptive type thread scheduling method handling process such as
Under:
1. system starts, and main thread is produced by data actuation process, obtains data actuation real time data mirror image, waits user task
Request;
2. the request of response user task, carries out parameter initialization operation, then derives from 6 data actuation thread tasks;Described
Parameter initialization operation is that sampling number, sample frequency, sampling channel, spatial cache, current time, target designation parameter are entered
Row is preliminary to be set;Described data actuation thread task includes quiet ginseng thread task, domain thread task, frequency domain line in main thread
Journey task, post figure line journey task, switch thread task and storage thread task;
3. the number for obtaining user's request adopts thread task and has limit priority, and in system front stage operation, other tasks are on backstage
Parallel running;
4. according to the change of user's request, each thread task priority realizes rotation, switches foreground session.
2. a kind of data actuation man-machine interface method for scheduling task as claimed in claim 1, it is characterised in that:Described quiet ginseng
Thread task, receives number and adopts main thread real time data, carries out static parameter calculating, task session window is created, then by disappearing
Breath mapping mechanism draws static parameter change curve in session window;
Described real time data is classified as batch data, continuous data and switch data, the lot number according to its data volume
According to including audio, video, vibration and radiation, the continuous data includes pressure, flow, temperature, electric current, voltage and power, institute
Stating switch data includes Boolean data;
Described static parameter calculate be by batch data and continuous data in units of sampling number, be divided into equal amount of data sequence
Row, then carry out static statistics parameter extraction to data sequence;Described static statistics parameter mainly includes serial variance, sequence
Root mean square, the sequence degree of bias, sequence kurtosis and extrema in a sequence;
Described message map mechanism is the real-time session changing method towards data actuation man-machine interface, using signal- slot one
One mapping channel, it is to avoid the complicated function pointer that mapping call back function is produced, realizes transparent communication between user oriented object;
Quiet ginseng thread task is associated with storage thread task, after user proposes online data storage request, is mapped by message
Mechanism wakes up storage thread task, and storage thread task, and the quiet parameter evidence that current sessions window is described are started on backstage
It is stored in system database;
The ordinate of described static parameter change curve is statistical parameter dimensionless amplitude, and abscissa is observing time section;Institute
State observing time section computational methods be:T=BN/f, wherein B are buffer size, and unit Byte, N are sampling number, f
It is sample frequency, unit Hz.
3. a kind of data actuation man-machine interface method for scheduling task as claimed in claim 1 or 2, it is characterised in that:Described
Domain thread task, receives the batch data that number adopts main thread offer, carries out digital filtering treatment, creates task session window,
Then time domain data change curve is drawn in session window by message map mechanism;Described digital filtering process step
For:
1) by batch data in units of sampling number, it is divided into equal amount of data sequence;
2) regard audio, video data as stabilization signal sequence, carry out median filter process, eliminate shake data element;
3) will vibration, radiation regard non-steady signal sequence as, carry out it is anti-mixing with finite impulse response filtering, eliminate impact signal into
Point;
Described message map mechanism is identical with the mapping mechanism in quiet ginseng thread task, and other thread tasks also apply this machine
System;The ordinate of described time domain data change curve is time domain data physics amplitude, and abscissa is numbered for sampling number ordered series of numbers;
Domain thread task is associated with storage thread task, after user proposes online data storage request, is mapped by message
Mechanism wakes up storage thread task, and storage thread task, and the time domain data that current sessions window is described are started on backstage
It is stored in system database.
4. a kind of data actuation man-machine interface method for scheduling task as claimed in claim 1 or 2, it is characterised in that:Described
Frequency domain threads task, receives the batch data that number adopts main thread offer, carries out digital filtering, discrete Fourier transform treatment, wound
Task session window is built, frequency domain data change curve is then drawn in session window by message map mechanism;It is described from
Dissipating Fourier transformation process step is:
Batch data in units of sampling number, is divided into equal amount of data sequence by Step1, carries out digital filtering treatment;
Step2 regards audio after filtering, video data as stabilization signal sequence, carries out Fast Fourier Transform (FFT) treatment, obtains
Obtain signal frequency domain distribution;
Step3 regards vibration after filtering, radiation as non-steady signal sequence, carries out Short Time Fourier Transform treatment, obtains this
Mode function is levied, the transient change component in signal is obtained;
The ordinate of described frequency domain data change curve is frequency domain data physics amplitude, and abscissa is that frequency domain points ordered series of numbers is compiled
Number, quantity is 1/2nd of sample frequency;
Frequency domain threads task is associated with storage thread task, after user proposes online data storage request, is mapped by message
Mechanism wakes up storage thread task, and storage thread task, and the frequency domain data that current sessions window is described are started on backstage
It is stored in system database.
5. a kind of data actuation man-machine interface method for scheduling task as claimed in claim 1 or 2, it is characterised in that:Described
Post figure line journey task, receives the continuous data that number adopts main thread offer, carries out median filter process, creates task session window,
Then continuous data block diagram is drawn in session window by message map mechanism;
The ordinate of described continuous data block diagram be continuous data physics amplitude, i.e. Pascal, l/h, degree Celsius, peace
Training, Ford, watt, abscissa are classified for continuous data, i.e. pressure, flow, temperature, electric current, voltage, power;
Post figure line journey task is associated with storage thread task, after user proposes online data storage request, is mapped by message
Mechanism wakes up storage thread task, and storage thread task, and the post diagram data that current sessions window is described are started on backstage
It is stored in system database.
6. a kind of data actuation man-machine interface method for scheduling task as claimed in claim 1 or 2, it is characterised in that:Described
Switch thread task, receives the switch data that number adopts main thread offer, directly creates task session window, is then reflected by message
Penetrate mechanism and switch data distribution map is drawn in session window;Switch thread task process object is Boolean data, data volume compared with
It is small, with storage thread task onrelevant;
Described switch data distribution map shows switch data state in matrix bulletin board form to user;Described matrix bulletin
Plate is that the switch data of different physical locations is carried out into Unified number, and the form of two-dimensional matrix describes switch data.
7. a kind of data actuation man-machine interface method for scheduling task as claimed in claim 1 or 2, it is characterised in that:By mixed
Zygonema journey operating method realizes that the internal state conversion of thread task and the operation of different threads task switch;Described blend
Journey operating method controls the internal conversion of thread task by semaphore, and the operation of different threads task is realized by famous pipeline
Switching, process step is as follows:
The first step, thread task be chosen, wake up after, load semaphore, into init state, make its each member variable assignment
And open up associated internal memory space;
Second step, after the completion of initialization, if without the request of other thread tasks carryings, thread task enters ready state;If there is it
Its thread tasks carrying is asked, and current thread task enters blocked state, switches to the process task for obtaining request;Described line
The request of journey tasks carrying is transmitted by famous pipeline, it is ensured that the mutual exclusion of each thread task run and security;
3rd step, after thread task enters ready state, waits tasks carrying semaphore;If obtaining tasks carrying semaphore,
The functions such as required data, completion treatment, drawing are obtained from main thread, after the completion of task, original state is return;If not obtaining task
Semaphore is performed, then into thread resting state, original place waits;
4th step, if the association related to storage thread task of current thread task, can receive in thread task processes and deposit
Storage line journey task signal, storage thread task is started on backstage, completes data storage;If user sends data storage, and renewal please
Ask, then can block currently stored thread task, re-start data storage.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710000680.0A CN106874083B (en) | 2017-01-03 | 2017-01-03 | A kind of data actuation man-machine interface method for scheduling task |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710000680.0A CN106874083B (en) | 2017-01-03 | 2017-01-03 | A kind of data actuation man-machine interface method for scheduling task |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106874083A true CN106874083A (en) | 2017-06-20 |
CN106874083B CN106874083B (en) | 2019-06-28 |
Family
ID=59165547
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710000680.0A Expired - Fee Related CN106874083B (en) | 2017-01-03 | 2017-01-03 | A kind of data actuation man-machine interface method for scheduling task |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106874083B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108377480A (en) * | 2018-01-30 | 2018-08-07 | 浙江大学 | Emergent Internet of Things communication means based on unmanned plane |
CN109815087A (en) * | 2019-01-07 | 2019-05-28 | 平安科技(深圳)有限公司 | Task treatment progress monitoring method, device, computer equipment and storage medium |
CN110019253A (en) * | 2019-04-18 | 2019-07-16 | 北京邮电大学 | A kind of distributed diagram data sequential sampling method and device |
WO2021102912A1 (en) * | 2019-11-29 | 2021-06-03 | 深圳市汇顶科技股份有限公司 | Biometric data sampling method and sampling management apparatus therefor |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004665A (en) * | 2010-11-09 | 2011-04-06 | 北京神州泰岳软件股份有限公司 | Task concurrent processing method in workflow system |
CN102262564A (en) * | 2011-08-16 | 2011-11-30 | 天津市天祥世联网络科技有限公司 | Thread pool structure of video monitoring platform system and realizing method |
CN104580396A (en) * | 2014-12-19 | 2015-04-29 | 华为技术有限公司 | Task scheduling method, node and system |
CN105260180A (en) * | 2015-09-25 | 2016-01-20 | 南昌理工学院 | Xscale architecture practical training based embedded operating system |
CN105302638A (en) * | 2015-11-04 | 2016-02-03 | 国家计算机网络与信息安全管理中心 | MPP (Massively Parallel Processing) cluster task scheduling method based on system load |
CN105468450A (en) * | 2015-12-29 | 2016-04-06 | 华为技术有限公司 | Task scheduling method and system |
-
2017
- 2017-01-03 CN CN201710000680.0A patent/CN106874083B/en not_active Expired - Fee Related
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102004665A (en) * | 2010-11-09 | 2011-04-06 | 北京神州泰岳软件股份有限公司 | Task concurrent processing method in workflow system |
CN102262564A (en) * | 2011-08-16 | 2011-11-30 | 天津市天祥世联网络科技有限公司 | Thread pool structure of video monitoring platform system and realizing method |
CN104580396A (en) * | 2014-12-19 | 2015-04-29 | 华为技术有限公司 | Task scheduling method, node and system |
CN105260180A (en) * | 2015-09-25 | 2016-01-20 | 南昌理工学院 | Xscale architecture practical training based embedded operating system |
CN105302638A (en) * | 2015-11-04 | 2016-02-03 | 国家计算机网络与信息安全管理中心 | MPP (Massively Parallel Processing) cluster task scheduling method based on system load |
CN105468450A (en) * | 2015-12-29 | 2016-04-06 | 华为技术有限公司 | Task scheduling method and system |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108377480A (en) * | 2018-01-30 | 2018-08-07 | 浙江大学 | Emergent Internet of Things communication means based on unmanned plane |
CN109815087A (en) * | 2019-01-07 | 2019-05-28 | 平安科技(深圳)有限公司 | Task treatment progress monitoring method, device, computer equipment and storage medium |
CN109815087B (en) * | 2019-01-07 | 2022-05-20 | 平安科技(深圳)有限公司 | Task processing process monitoring method and device, computer equipment and storage medium |
CN110019253A (en) * | 2019-04-18 | 2019-07-16 | 北京邮电大学 | A kind of distributed diagram data sequential sampling method and device |
WO2021102912A1 (en) * | 2019-11-29 | 2021-06-03 | 深圳市汇顶科技股份有限公司 | Biometric data sampling method and sampling management apparatus therefor |
Also Published As
Publication number | Publication date |
---|---|
CN106874083B (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106874083A (en) | A kind of data actuation man-machine interface method for scheduling task | |
CN111738446B (en) | Scheduling method, device, equipment and medium of deep learning reasoning engine | |
CN103458052B (en) | Resource scheduling method and device based on IaaS cloud platform | |
CN107908690A (en) | A kind of data processing method based on big data OA operation analysis | |
CN106354616B (en) | Monitor the method, apparatus and high performance computing system of application execution performance | |
CN108335075A (en) | A kind of processing system and method for Logistics Oriented big data | |
CN106685990A (en) | Safety detecting method and safety detecting device based on industrial Internet operation system | |
CN106844483A (en) | A kind of daily record data method for stream processing | |
CN105162628A (en) | System and method for rapidly determining network reasonable warning threshold | |
CN107426273A (en) | Distributed traffic integrating cloud service system | |
CN112148779A (en) | Method, device and storage medium for determining service index | |
WO2016204876A1 (en) | Virtual machine management method and apparatus including idling and scheduling of virtual processors | |
CN110619006A (en) | Statistical data management method, device, platform and storage medium based on Internet of things | |
CN113627268A (en) | Model training method, and method and device for detecting fault of speed reducer for mine hoist | |
CN116260738B (en) | Equipment monitoring method and related equipment | |
CN107122285A (en) | A kind of multithread process control Dynamic Announce and intelligence change System and method for | |
CN109829004A (en) | Data processing method, device, equipment and storage medium based on unmanned vehicle | |
CN107045315A (en) | A kind of Monitoring and Control System for Hydropower Station and method | |
CN107147542A (en) | A kind of information generating method and device | |
JPH03145894A (en) | Trend display system | |
CN106227601A (en) | Method and apparatus for the resource distribution of virtual platform | |
CN111401796A (en) | Method and device for establishing equipment energy efficiency model | |
WO2020221656A1 (en) | Method, apparatus and system for acquiring digitized data of factory | |
CN103267023B (en) | Vacuum molecule method for controlling pump based on text language and device | |
CN103279076B (en) | Based on power control method and the device of text language |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190628 |
|
CF01 | Termination of patent right due to non-payment of annual fee |