CN105162882A - Method and device for transmitting data among controls - Google Patents
Method and device for transmitting data among controls Download PDFInfo
- Publication number
- CN105162882A CN105162882A CN201510622181.6A CN201510622181A CN105162882A CN 105162882 A CN105162882 A CN 105162882A CN 201510622181 A CN201510622181 A CN 201510622181A CN 105162882 A CN105162882 A CN 105162882A
- Authority
- CN
- China
- Prior art keywords
- control
- character string
- variable
- multiple variable
- numerical value
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/14—Session management
- H04L67/141—Setup of application sessions
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a method and a device for transmitting data among controls, belonging to the field of communication. The method comprises the steps of establishing a data connection between a first control and a second control in a Ventuz system; the first control assigning for a plurality of variables and combining the values of the plurality of variables into a character string; the first control sending the character string to the second control by use of the data connection; and the second control receiving the character string and splitting the character string to obtain the values of the plurality of variables. The device comprises a connection module, a combination module, a transmission module and a processing module. Through adoption of the method and device, a plurality of variables can be transmitted once in the Ventus system, and when a plurality of values need to be transmitted, the variables do not need to be transmitted one by one, so that the efficiency of data transmission among controls is greatly improved.
Description
Technical field
The present invention relates to the communications field, particularly between a kind of control, transmit the method and apparatus of data.
Background technology
Ventuz (Wei Tusi) is real-time picture material creation, an editor and broadcasts control software design.It is absorbed in the making of high-end audio-visual content, comprises professional displaying, video wall is installed, live scene shows and interaction, multiple point touching application and the field such as studio and broadcast.Ventuz design is strong, easy to use, can be applicable to video wall, projection mapping, radio and television at wire wrapping, and can realize interactivity with nearly all interactive device and use.
In Ventuz system, when transmitting numerical value between control, being all set up single data bus connection between two controls usually, and only can transmitting single variable or event.When needs transmit multiple numerical value, need variable variable to transmit one by one, the method efficiency of this single argument transmission numerical value is very low.
Summary of the invention
In view of this, the invention provides the method and apparatus transmitting data between a kind of control, to improve the efficiency of transfer of data between control.Described technical scheme is as follows:
On the one hand, the invention provides a kind of method transmitting data between control, described method comprises:
In Ventuz system, the first control and the second control set up data cube computation;
Described first control is multiple variable assignments, and the combinations of values of described multiple variable is become character string;
Described first control uses described data cube computation that described character string is sent to described second control;
Described second control receives described character string, splits the numerical value that described character string obtains described multiple variable.
Wherein, the combinations of values of described multiple variable is become character string, comprising:
The numerical value of described multiple variable is connected into character string by the described first control separator pre-set.
Wherein, split the numerical value that described character string obtains described multiple variable, comprising:
The described second control separator removed in described character string obtains the numerical value of described multiple variable.
Wherein, the combinations of values of described multiple variable is become character string, comprising:
Put in order according to preassigned variable and the combinations of values of described multiple variable become character string.
Wherein, split the numerical value that described character string obtains described multiple variable, comprising:
Put in order according to described variable of specifying and split the numerical value that described character string obtains described multiple variable.
On the other hand, the invention provides the device transmitting data between a kind of control, described device comprises:
Link block, sets up data cube computation for the first control in Ventuz system and the second control;
Composite module is multiple variable assignments for described first control, and the combinations of values of described multiple variable is become character string;
Transport module, uses described data cube computation that described character string is sent to described second control for described first control;
Processing module, receives described character string for described second control, splits the numerical value that described character string obtains described multiple variable.
Wherein, described composite module is used for:
The numerical value of described multiple variable is connected into character string by the described first control separator pre-set.
Wherein, described processing module is used for:
The described second control separator removed in described character string obtains the numerical value of described multiple variable.
Wherein, described composite module is used for:
Put in order according to preassigned variable and the combinations of values of described multiple variable become character string.
Wherein, described processing module is used for:
Put in order according to described variable of specifying and split the numerical value that described character string obtains described multiple variable.
The beneficial effect that technical scheme provided by the invention is brought is: in Ventuz system, the first control and the second control set up data cube computation; Described first control is multiple variable assignments, and the combinations of values of described multiple variable is become character string; Described first control uses described data cube computation that described character string is sent to described second control; Described second control receives described character string, split the numerical value that described character string obtains described multiple variable, achieve the disposable transmission of multiple variable in Ventuz system, when transmitting multiple numerical value, transmit one by one without the need to variable variable, drastically increase the efficiency of transfer of data between control.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram transmitting data between a kind of control of providing of one embodiment of the invention;
Fig. 2 is the method flow diagram transmitting data between a kind of control of providing of another embodiment of the present invention;
Fig. 3 is the structure drawing of device transmitting data between a kind of control of providing of another embodiment of the present invention.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
See Fig. 1, one embodiment of the invention provides a kind of method transmitting data between control, comprising:
101: in Ventuz system, the first control and the second control set up data cube computation;
In Ventuz system, usually have multiple control, the first control related in the present embodiment and the second control are any two controls, specifically do not limit.The data cube computation set up between control in the present embodiment is still single data bus connection, thus can realize the numerical value by the multiple variable of the disposable transmission of single data bus connection.
102: this first control is multiple variable assignments, and the combinations of values of the plurality of variable is become character string;
In the present embodiment, the number of described multiple variable can be arranged as required, and as 3,5 or 10 etc., the present embodiment is not specifically limited this.
103: this first control uses this data cube computation that this character string is sent to this second control;
104: this second control receives this character string, split the numerical value that this character string obtains the plurality of variable.
In the present embodiment, alternatively, the combinations of values of the plurality of variable is become character string, comprising:
The numerical value of the plurality of variable is connected into character string by this first control separator pre-set.
In the present embodiment, alternatively, split the numerical value that this character string obtains the plurality of variable, comprising:
This second control separator removed in this character string obtains the numerical value of the plurality of variable.
In the present embodiment, alternatively, the combinations of values of the plurality of variable is become character string, comprising:
Put in order according to preassigned variable and the combinations of values of the plurality of variable become character string.
In the present embodiment, alternatively, split the numerical value that this character string obtains the plurality of variable, comprising:
The variable of specifying according to this puts in order and splits the numerical value that this character string obtains the plurality of variable.
The said method that the present embodiment provides, in Ventuz system, the first control and the second control set up data cube computation; Described first control is multiple variable assignments, and the combinations of values of described multiple variable is become character string; Described first control uses described data cube computation that described character string is sent to described second control; Described second control receives described character string, split the numerical value that described character string obtains described multiple variable, achieve the disposable transmission of multiple variable in Ventuz system, when transmitting multiple numerical value, transmit one by one without the need to variable variable, drastically increase the efficiency of transfer of data between control.
See Fig. 2, another embodiment of the present invention provides a kind of method transmitting data between control, comprising:
201: in Ventuz system, the first control and the second control set up data cube computation;
202: this first control is multiple variable assignments, and the numerical value of the plurality of variable is connected into character string by this first control separator pre-set;
Wherein, described separator can be arranged as required, and the present embodiment does not specifically limit, as can be+,-, *, #,! Or? etc..
In addition, further, can also put in order according to preassigned variable, with the separator pre-set, the combinations of values of the plurality of variable is become character string.
Such as, have three variables A, B, C, the appointment order of connection is A, B, C or is A, C, B or C, B, A etc., and the present embodiment is not specifically limited this.
203: this first control uses this data cube computation that this character string is sent to this second control;
204: this second control receives this character string, this second control separator removed in this character string obtains the numerical value of the plurality of variable.
In addition, further, the second control can also obtain the numerical value of the plurality of variable according to the preassigned variable separator put in order in this character string of removal.
Such as, there are three variables A=1, B=15, C=23, preassignedly put in order as A, B, C, then the first control uses after separator+combination and obtains character string " 1+15+23 ", the put in order removal separator of the second control still according to A, B, C after receiving this character string+after, obtain variables A, the numerical value of B, C is respectively 1,15,23.
In the present embodiment, alternatively, function can also be set and obtain character string to the numerical value realizing union variable.Such as:
Three variablees are had to be respectively:
A=”hello,word”
B=”200”
C=”true”
Arranging function is:
SendMsg()
{
D=A+ separator+B+ separator+C
}
First control obtains character string D after using the numerical value of this combination of function three variablees and sends to the second control, and the second control receives rear removal separator and disassembles the value obtaining variables A, B, C " hello, word ", " 200 " and " true ".
The said method that the present embodiment provides, in Ventuz system, the first control and the second control set up data cube computation; Described first control is multiple variable assignments, and the combinations of values of described multiple variable is become character string; Described first control uses described data cube computation that described character string is sent to described second control; Described second control receives described character string, split the numerical value that described character string obtains described multiple variable, achieve the disposable transmission of multiple variable in Ventuz system, when transmitting multiple numerical value, transmit one by one without the need to variable variable, drastically increase the efficiency of transfer of data between control.
See Fig. 3, another embodiment of the present invention provides the device transmitting data between a kind of control, comprising:
Link block 301, sets up data cube computation for the first control in Ventuz system and the second control;
Composite module 302, is multiple variable assignments for this first control, and the combinations of values of the plurality of variable is become character string;
Transport module 303, uses this data cube computation that this character string is sent to this second control for this first control;
Processing module 304, receives this character string for this second control, splits the numerical value that this character string obtains the plurality of variable.
In the present embodiment, alternatively, this composite module is used for:
The numerical value of the plurality of variable is connected into character string by this first control separator pre-set.
In the present embodiment, alternatively, this processing module is used for:
This second control separator removed in this character string obtains the numerical value of the plurality of variable.
In the present embodiment, alternatively, this composite module is used for:
Put in order according to preassigned variable and the combinations of values of the plurality of variable become character string.
In the present embodiment, alternatively, this processing module is used for:
The variable of specifying according to this puts in order and splits the numerical value that this character string obtains the plurality of variable.
The said apparatus that the present embodiment provides can perform the method provided in above-mentioned either method embodiment, and detailed process is shown in the description in embodiment of the method, does not repeat herein.
The said apparatus that the present embodiment provides, in Ventuz system, the first control and the second control set up data cube computation; Described first control is multiple variable assignments, and the combinations of values of described multiple variable is become character string; Described first control uses described data cube computation that described character string is sent to described second control; Described second control receives described character string, split the numerical value that described character string obtains described multiple variable, achieve the disposable transmission of multiple variable in Ventuz system, when transmitting multiple numerical value, transmit one by one without the need to variable variable, drastically increase the efficiency of transfer of data between control.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium mentioned can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.
Claims (10)
1. transmit a method for data between control, it is characterized in that, described method comprises:
In Ventuz system, the first control and the second control set up data cube computation;
Described first control is multiple variable assignments, and the combinations of values of described multiple variable is become character string;
Described first control uses described data cube computation that described character string is sent to described second control;
Described second control receives described character string, splits the numerical value that described character string obtains described multiple variable.
2. method according to claim 1, is characterized in that, the combinations of values of described multiple variable is become character string, comprising:
The numerical value of described multiple variable is connected into character string by the described first control separator pre-set.
3. method according to claim 2, is characterized in that, splits the numerical value that described character string obtains described multiple variable, comprising:
The described second control separator removed in described character string obtains the numerical value of described multiple variable.
4. method according to claim 1, is characterized in that, the combinations of values of described multiple variable is become character string, comprising:
Put in order according to preassigned variable and the combinations of values of described multiple variable become character string.
5. method according to claim 4, is characterized in that, splits the numerical value that described character string obtains described multiple variable, comprising:
Put in order according to described variable of specifying and split the numerical value that described character string obtains described multiple variable.
6. transmit a device for data between control, it is characterized in that, described device comprises:
Link block, sets up data cube computation for the first control in Ventuz system and the second control;
Composite module is multiple variable assignments for described first control, and the combinations of values of described multiple variable is become character string;
Transport module, uses described data cube computation that described character string is sent to described second control for described first control;
Processing module, receives described character string for described second control, splits the numerical value that described character string obtains described multiple variable.
7. device according to claim 6, is characterized in that, described composite module is used for:
The numerical value of described multiple variable is connected into character string by the described first control separator pre-set.
8. device according to claim 7, is characterized in that, described processing module is used for:
The described second control separator removed in described character string obtains the numerical value of described multiple variable.
9. device according to claim 6, is characterized in that, described composite module is used for:
Put in order according to preassigned variable and the combinations of values of described multiple variable become character string.
10. device according to claim 9, is characterized in that, described processing module is used for:
Put in order according to described variable of specifying and split the numerical value that described character string obtains described multiple variable.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510622181.6A CN105162882A (en) | 2015-09-25 | 2015-09-25 | Method and device for transmitting data among controls |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510622181.6A CN105162882A (en) | 2015-09-25 | 2015-09-25 | Method and device for transmitting data among controls |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105162882A true CN105162882A (en) | 2015-12-16 |
Family
ID=54803634
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510622181.6A Pending CN105162882A (en) | 2015-09-25 | 2015-09-25 | Method and device for transmitting data among controls |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105162882A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227711A (en) * | 2016-07-26 | 2016-12-14 | 无锡天脉聚源传媒科技有限公司 | A kind of method and device processing custom parameter |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118492A (en) * | 2007-09-24 | 2008-02-06 | 北大方正集团有限公司 | Creation method of editing controls component capable of setting multiple range interval |
CN101635711A (en) * | 2009-08-14 | 2010-01-27 | 广东省环境监测中心 | Programmable character communication method |
-
2015
- 2015-09-25 CN CN201510622181.6A patent/CN105162882A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101118492A (en) * | 2007-09-24 | 2008-02-06 | 北大方正集团有限公司 | Creation method of editing controls component capable of setting multiple range interval |
CN101635711A (en) * | 2009-08-14 | 2010-01-27 | 广东省环境监测中心 | Programmable character communication method |
Non-Patent Citations (2)
Title |
---|
CHENWINENN: "VBA在窗体间传递参数的几种常用办法", 《百度文库 HTTPS://WENKU.BAIDU.COM/VIEW/9A50380CED630B1C59EEB5D9.HTML》 * |
张葆三: "控件间的数据传递", 《西昌师范高等专科学校学报》 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106227711A (en) * | 2016-07-26 | 2016-12-14 | 无锡天脉聚源传媒科技有限公司 | A kind of method and device processing custom parameter |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102098443B (en) | Camera, communication system and corresponding image processing method | |
CN102291399B (en) | Streaming media switching platform | |
CN104363509B (en) | A kind of video conversion method, device, play system and terminal | |
CN205356609U (en) | STB device of integrated audio amplifier | |
CN108777812A (en) | A kind of record screen live broadcasting method, device, electronic equipment and storage medium | |
CN108924577B (en) | Program production and broadcasting system and method based on live broadcast | |
CN112511783A (en) | Mixed display method and device of audio and video stream, server and storage medium | |
CN113132194A (en) | Information transfer method, device, equipment, server and storage medium | |
CN104954150A (en) | Multi-screen interaction method and device | |
CN103618915A (en) | Multi-screen interaction method and device | |
KR20110062508A (en) | A method for sharing channel map of digital broadcast systems in a home network and a system thereof | |
CN105611408A (en) | Set top box number writing method, set top box and set top box number writing server | |
CN102938839A (en) | Monitoring front-end equipment and encoding server | |
CN105162882A (en) | Method and device for transmitting data among controls | |
CN205105345U (en) | Audio frequency and video playback devices | |
TWI477121B (en) | Multistage module expansion system and multistage module communication method | |
CN104902192A (en) | Transmission method and equipment for multipath signals | |
CN111083546B (en) | Audio and video transmission control method, system and server | |
US11082471B2 (en) | Method and apparatus for bonding communication technologies | |
CN115567494A (en) | Cloud video interaction system, method and device | |
CN110636033A (en) | Multicast data transmission method, system, multicast tunnel terminal and storage medium | |
CN104702973A (en) | Android system based real-time video playing method and system | |
CN113342306B (en) | 2-path audio mixing method and processing terminal | |
CN211296861U (en) | Set-top box accessed to multiple types of networks | |
CN104661049A (en) | Transmission method and transmission system for transport stream, streaming media server and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20151216 |