expression and transmission of parameters in experimental instruments

Source: Internet
Author: User

expression and transmission of parameters in experimental instruments

Original reason Description:

In the different experimental instruments, the realization of signal transmission, in fact, can be converted to signal parameters of transmission. Therefore, the synchronization and refresh of each experimental parameter is the key to express the logic relationship of the instrument. The parameters that the instrument needs to pass can be string, double, list, bitmap, custom classes, and so on. In these relationships, in addition to custom classes, enumerations such as information belonging to the instrument's own special type (defined in the Instrument class library, rather than the public library), the other parameters have a common data type, and the special type can also be described by the public type parameters, common data types can be passed through the C # Generic and reflection complete interface docking.

Because of the conservation of energy, any signal in the experiment will not be produced or disappeared in a vacuum, then all signals will have origin and termination position. And we have to study the signal is the direction of transmission, simulation is the change of an instrument state caused by other instrument state changes in the process of computer display. This logical relationship can be mathematically corresponding to the "directed graph", the quotation marks indicate that there is a difference, because the mathematical study of the directed graph is to map the path, weight, topological relations, the meaning of the directed expression of the graph can be physically corresponding to the direction of the signal transmission, we put the mathematical study of the directed graph algorithm as a skeleton, Physical signal transmission as flesh and blood, each node in the diagram as an input and output.

Signal transmission

, such a relationship is similar to the neural network structure, but the neural network is trained to get the parameter relationship, and our node is directly in the physical model to get the parameter relationship. Each node is an input and output model, corresponding to the actual experimental instrument, the black line represents the parameter transfer relationship between the instrument, the arrow indicates the direction of transmission. Signal transmission can be unidirectional, bidirectional, annular loop, the experiment will also have a plurality of signal sources, the instrument composition of the diagram, can be together with the diagram, can also be disconnected. In order to improve the efficiency of parameter refresh, we do not need to establish a complete set of all parameters of the experiment, so that each instrument can get its own complete parameter set, that is, the irrelevant parameters are not acquired.

Algorithm design ideas:

If a parameter of the instrument is obtained by another instrument, the instrument must be defined inside this instrument when it is used, and the internal definition of this parameter is equivalent to the proxy parameter, which is the actual operation of the parameter. The parameter interface defined between the instrument and the scene is to obtain data from the source instrument to update the agent parameter values of the target instrument, while the source instrument needs to disclose its own influence parameters to other instruments. We can imagine that between two nodes, their connection edge is equivalent to open a data channel, the source instrument to add parameters to the channel, the target instrument from the channel to obtain parameters and processing into new parameters, and the results of processing as required to continue to pass.

In the algorithm design, first identify all the source instrument, and then loop the source instrument of the target Instrument list, and the source instrument to open the list of parameters to the target instrument. Note that the target Instrument list of the source instrument is a dynamic list, such as the flow direction of the current in the circuit can be regarded as a directional signal, then the source and target depends on the circuit connection of the instrument, the light transmission is also a directional signal, the source and the target depends on the light path placement; Heat transmission in thermodynamics is also a directional signal, The source and target depend on the temperature. In addition, such as a thermometer, can only be used as a target instrument to measure temperature, to determine the measurement is the temperature of which instrument. According to these physical laws, we can basically determine the direction of the parameter transmission between the instruments.

Of course, in order to make the model more general, we can abstract the source instrument and the target instrument into trigger and trigger object, and the parameters must meet certain trigger conditions, and only meet the trigger conditions, the instrument parameters can be transferred from the source to the target instrument. In the simulation experiment, this kind of trigger condition is usually the coordinate position relation, connection relation and timer setting of the instrument. In order to simplify the algorithm, we only consider the coordinate position relation and the connection relation two kinds of situations: first, coordinate position relations, two instruments satisfies the specific position coordinates, triggers the refresh condition. For example, the item is placed on the stage, the thermometer is placed in the liquid to be measured, the optics are placed in the light path, and so on. These include: including relations, side-by-side relations, concatenation relations, and the connection relationship, two instruments are connected in a certain way, indicating that the two instruments have a specific connection relationship. This connection can be either a connection made by a user with a mouse interaction, or a connection established through a configuration file setting. Connection relationship is the most applied circuit wire, in addition, there are some instruments that are not equivalent to the circuit, but also need to be connected to determine the state of the instrument, such as the heat-sensitive experiment in the furnace, a line directly transmits the signal of the oscilloscope and so on.

expression and transmission of parameters in experimental instruments

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.