Method, device and processor for synchronous and same-frequency flashing of indicators in DCS

By setting the flicker frequency and calculating the relevant time interval in the DCS control system, synchronous flickering of the indicator is realized, solving the problem of inconsistent flickering of the indicator and improving the operator's observation efficiency and work efficiency.

CN116321632BActive Publication Date: 2025-06-27BEIJING GUODIAN ZHISHEN CONTROL TONGDY
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211517431.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-29
Publication Date
2025-06-27
Estimated Expiration
2042-11-29

AI Technical Summary

Technical Problem

In the DCS control system, there is no interaction between the indicators, which causes the flicker to appear out of synchronization even if the flicker frequency is consistent, due to the inconsistent start time of each indicator, which seriously affects the operator's observation.

Method used

By setting the flashing frequency of the indicator, calculating the flashing interval and sleeping time, predicting the display status of the reference indicator, and making the target indicator consistent with the display status of the reference indicator after the sleep time, thereby achieving synchronous synchronous flashing of the indicator.

Benefits of technology

The flash synchronization between each indicator is realized, which is easy for operator observation, improves the operator's work efficiency, and supports synchronization across upper computers, providing flexibility and scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116321632B_ABST
    Figure CN116321632B_ABST
Patent Text Reader

Abstract

This application relates to the field of indicator display control, and particularly to a method, device and processor for synchronous and same-frequency flashing of indicators in a DCS. The method includes: setting the flashing frequency of the indicator; determining the flashing interval for the indicator to modify its state based on the flashing frequency; calculating the sleep time of the target indicator that joins the flashing at the current moment in combination with the flashing interval; predicting the display state of the reference indicator after the sleep time; and making the target indicator keep the same display state as the reference indicator after the sleep time. By using the method provided in this application, the indicators that have no interaction with each other can be made to maintain the consistency of flashing, which is beneficial for the operator to observe.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of indicator display control, and specifically relates to a method for synchronous and same-frequency flashing of indicators in a DCS, a device for synchronous and same-frequency flashing of indicators in a DCS, and a processor. Background Art

[0002] On the header APPBAR of the DCS control system, multiple indicators are supported for configuration. Each indicator is an independent program and there is no interaction during operation. Please refer to Figure 1 , the figure includes three upper computers A, B, and C. Among the above indicators, there are: between different indicators of the same upper computer (such as indicator 1.1, indicator 2.1, indicator 3.1); between indicators at the same position of different upper computers (such as indicator 1.1, indicator 1.2, indicator 1.3); between different indicators of different upper computers (such as indicator 1.1, indicator 2.2, indicator 3.3).

[0003] In the traditional DCS control system, each indicator modifies the display state of the indicator according to the running state of its own program, and can be displayed in flat light, highlighted, fast flashing, or slow flashing. Since there is no interaction between the indicators, even if the flashing frequencies are the same, due to the inconsistent start times between the indicators, the flashing of each indicator does not look synchronized. Each indicator has an independent flashing cycle, which seriously affects the operator's observation. Summary of the Invention

[0004] The purpose of the embodiments of this application is to provide a method, device, and processor for synchronous and same-frequency flashing of indicators in a DCS, so as to keep the consistency of flashing between indicators that have no interaction with each other, which is beneficial for the operator to observe.

[0005] To achieve the above purpose, in the first aspect of this application, a method for synchronous and same-frequency flashing of indicators in a DCS is provided. The method includes: setting the flashing frequency of the indicator; determining the flashing interval for the indicator to modify the state based on the flashing frequency; calculating the sleep time of the target indicator that joins the flashing at the current moment in combination with the flashing interval; predicting the display state of the reference indicator after the sleep time; and making the display state of the target indicator consistent with that of the reference indicator after the sleep time.

[0006] Based on the first aspect, in some embodiments of the present invention, the flashing frequency is Freq; the calculation formula for the flashing interval is as follows:

[0007] time_align = 1000 / (2 * Freq); (1)

[0008] In formula (1), time_align represents the flashing interval, and 1000 is the unit time of 1000 milliseconds.

[0009] Based on the first aspect, in some embodiments of the present invention, the calculation formula for the sleep time is as follows:

[0010] sleep_period = next_time - current_time; (2)

[0011] In formula (2), sleep_period represents the sleep time, next_time represents the next flashing moment, and current_time represents the current moment; among them, the calculation formula for the next flashing moment next_time is as follows:

[0012] next_time = current_time - (current_time % time_align) + time_align; (3)

[0013] In formula (3), time_align represents the flashing interval, and % represents the modulo operation.

[0014] Based on the first aspect, in some embodiments of the present invention, when the current moment is the flashing moment of the reference indicator, the following numerical relationship exists between the sleep time sleep_period and the flashing interval time_align:

[0015] sleep_period = time_align.

[0016] Based on the first aspect, in some embodiments of the present invention, the display state includes a first display state and a second display state; predicting the display state of the reference indicator after the sleep time includes:

[0017] Let A = (next_time / time_align) % 2; (4)

[0018] When A = 0, the display state of the reference indicator after the sleep time is the first display state; when A = 1, the display state of the reference indicator after the sleep time is the second display state;

[0019] In formula (4), next_time represents the next flashing moment, time_align represents the time interval, and %2 represents taking the remainder of 2.

[0020] Second aspect, the present application provides a device for synchronous and same-frequency flashing of indicators in a DCS. The device includes: a setting module for setting the flashing frequency of the indicators; an acquisition module for determining the flashing interval for modifying the state of the indicators based on the flashing frequency; a calculation module for calculating the sleep time of the target indicator that joins the flashing at the current moment in combination with the flashing interval; a prediction module for predicting the display state of the reference indicator after the sleep time; and an execution module for making the target indicator be consistent with the display state of the reference indicator after the sleep time.

[0021] Based on the second aspect, in some embodiments of the present invention, the acquisition module calculates the flashing interval through the following formula:

[0022] time_align = 1000 / (2 * Freq); (1)

[0023] In formula (1), time_align represents the flashing interval, Freq represents the flashing frequency, and 1000 is 1000 milliseconds in the unit time.

[0024] Based on the first aspect, in some embodiments of the present invention, the calculation module calculates the sleep time through the following formula:

[0025] sleep_period = next_time - current_time; (2)

[0026] In formula (2), sleep_period represents the sleep time, next_time represents the next flashing moment, and current_time represents the current moment; wherein, the calculation formula for the next flashing moment next_time is as follows:

[0027] next_time = current_time - (current_time % time_align) + time_align; (3)

[0028] In formula (3), time_align represents the flashing interval, and % represents the remainder operation.

[0029] Based on the first aspect, in some embodiments of the present invention, the display state includes a first display state and a second display state; the prediction module predicts the display state of the reference indicator after the sleep time through the following method, including:

[0030] Let A = (next_time / time_align) % 2; (4)

[0031] When A = 0, the display state of the reference indicator is the first display state after the sleep time; when A = 1, the display state of the reference indicator is the second display state after the sleep time;

[0032] In formula (4), next_time represents the next flashing moment, time_align represents the time interval, and %2 represents taking the remainder of 2.

[0033] In a third aspect, an embodiment of the present application provides a processor configured to perform the method for synchronous and same-frequency flashing of indicators in the above-mentioned DCS.

[0034] The technical solutions provided by the present application at least have the following beneficial effects:

[0035] 1) Facilitate the operator's observation: Ensure the flashing synchronization between different indicators of the same host computer, which is convenient for the operator to discover alarms and faults, and greatly improves the operator's work efficiency.

[0036] 2) Support cross-host computer synchronization: Ensure the flashing synchronization between the same indicators of different host computers and the flashing synchronization between different indicators of different host computers, which is convenient for the collaborative work of multiple operators.

[0037] 3) High flexibility: The flashing frequency can be configured through a configuration file; if it is necessary to modify the flashing frequency, only the corresponding configuration file needs to be modified.

[0038] 4) Strong scalability: Each indicator is still an independent program, and the flashing start time and flashing frequency are processed inside the program. When adding or deleting some indicators, it will not affect the work of the remaining indicators.

[0039] 5) Fault controllability: When some indicators restart due to some other reasons, or after the host computer restarts, they can still be consistent with the flashing frequencies and flashing start times of other host computers, meeting the requirements of synchronous and same-frequency flashing.

[0040] Other features and advantages of the embodiments of the present application will be described in detail in the subsequent specific implementation section. Description of the Drawings

[0041] The drawings are used to provide a further understanding of the embodiments of the present application, and constitute a part of the specification. Together with the following specific implementation, they are used to explain the embodiments of the present application, but do not constitute a limitation to the embodiments of the present application. In the drawings:

[0042] Figure 1 Schematically shows the relationship diagram between each indicator in the prior art;

[0043] Figure 2Schematically shows a schematic diagram of the application environment of the method for synchronous and same-frequency flashing of indicators in the DCS according to an embodiment of the present application;

[0044] Figure 3 Schematically shows a schematic flowchart of the method for synchronous and same-frequency flashing of indicators in the DCS according to an embodiment of the present application;

[0045] Figure 4 Schematically shows the first timing diagram of the display state diagram of the indicator according to an embodiment of the present application;

[0046] Figure 5 Schematically shows the second timing diagram of the display state diagram of the indicator according to an embodiment of the present application;

[0047] Figure 6 Schematically shows the first moment diagram of the target indicator joining the flashing according to an embodiment of the present application;

[0048] Figure 7 Schematically shows the second moment diagram of the target indicator joining the flashing according to an embodiment of the present application;

[0049] Figure 8 Schematically shows a structural block diagram of the device for synchronous and same-frequency flashing of indicators in the DCS according to an embodiment of the present application;

[0050] Figure 9 Schematically shows the internal structure diagram of a computer device according to an embodiment of the present application.

[0051] Description of reference numerals

[0052] 1 - Setting module; 2 - Obtaining module; 3 - Calculation module; 4 - Estimation module; 5 - Execution module. Detailed implementation manners

[0053] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the specific implementation manners described herein are only for explaining and interpreting the embodiments of the present application, and are not used to limit the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

[0054] It should be noted that if there are directional indications (such as up, down, left, right, front, back, etc.) involved in the embodiments of the present application, the directional indications are only used to explain the relative positional relationship and movement conditions between components in a specific posture (as shown in the drawings). If the specific posture changes, the directional indications will also change accordingly.

[0055] In addition, if the descriptions such as "first" and "second" are involved in the embodiments of the present application, the descriptions of "first", "second", etc. are only for descriptive purposes and should not be construed as indicating or implying their relative importance or implicitly indicating the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one such feature. In addition, the technical solutions between various embodiments may be combined with each other, but it must be based on the fact that those of ordinary skill in the art can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the protection scope required by the present application.

[0056] Embodiment 1

[0057] The method for synchronously and equally flashing indicators in the DCS provided by the present application can be applied to an application environment as Figure 2 shown. Among them, the terminal 102 communicates with the server 104 through the network. Among them, the terminal 102 can be, but is not limited to, various personal computers, laptop computers, smart phones, tablet computers, and portable wearable devices, and the server 104 can be implemented by an independent server or a server cluster composed of multiple servers.

[0058] Figure 3 Schematically shows a flowchart of the method for synchronously and equally flashing indicators in the DCS according to an embodiment of the present application. As Figure 3 shown, in this embodiment, a method for synchronously and equally flashing indicators in the DCS is provided, including the following steps:

[0059] S1. Set the flashing frequency of the indicator;

[0060] For example, the time frequency Freq of the indicator flashing can be customized through a configuration file: the frequency of fast flashing is Freq = 2, that is, the highlight and flat light are each twice within 1 s (as Figure 4 shown); the frequency of slow flashing is Freq = 0.5, that is, the highlight and flat light are each once within 2 s (as Figure 5 shown).

[0061] S2. Determine the flashing interval for the indicator to modify the state based on the flashing frequency (as Figure 4 shown, the time points marked by circles in the figure indicate the flashing moments, and the time interval between two adjacent flashing moments is the flashing interval defined in the present application);

[0062] Specifically, obtain the flashing interval time_align according to the flashing frequency, that is, the time interval for the indicator to modify the state within 1 second, and the unit of time_align is milliseconds:

[0063] time_align = 1000 / (2 * Freq); (1)

[0064] Among them, 1000 represents 1000 milliseconds, that is, 1 second; because in one flash frequency, the indicator state needs to be modified twice. That is, at the start of the flash, the indicator is modified to the highlighted state, and when the flash resumes, the indicator is modified to the flat light state. Therefore, the number of times the indicator state needs to be modified is the flash frequency * 2.

[0065] Therefore, the flash interval = the highlighted time = the flat light time.

[0066] S3. Combine the flash interval to calculate the sleep time of the target indicator that joins the flash at the current moment;

[0067] Specifically, the sleep time sleep_period is the time interval between the start time of the next flash cycle and the current time, that is:

[0068] sleep_period = next_time - current_time; (2)

[0069] next_time represents the next flash moment, and current_time is the current moment obtained through the interface provided by the DCS control system. The time synchronization program of the DCS control system ensures the stability of the clock in the system and high-precision clock synchronization. Each indicator obtains the time through the interface provided by the DCS control system, so that the time inside the program of each indicator always remains consistent.

[0070] Among them, the next flash moment next_time is the previous flash moment plus the flash interval, and the previous flash moment is the current time minus the time interval between the previous flash moment and the current time, that is:

[0071] next_time = current_time - (current_time % time_align) + time_align; (3)

[0072] In formula (3), time_align represents the flash interval, and % represents the modulo operation.

[0073] Furthermore, there are two cases for the current time point current_time (the time when the target indicator joins the flash):

[0074] 1) The target indicator joins the flash at the flash moment of the reference indicator (as Figure 6 shown);

[0075] At this time, current_time % time_align = 0, that is, next_time = current_time + time_align. At this time, the sleep time is equal to the blinking time interval, that is, sleep_period = time_align, which means that the sleep time to be slept is the entire blinking time interval. During the entire blinking time interval, the status of the target indicator remains unchanged. After the sleep time, that is, at the next blinking moment, the target indicator changes its blinking status with the reference indicator and blinks synchronously (changing from high-brightness display to flat-light display, or from flat-light display to high-brightness display).

[0076] 2) The target indicator starts blinking at a non-blinking moment of the reference indicator (as Figure 7 shown);

[0077] At this time, the blinking time interval is greater than or equal to the sleep time, that is, time_align >= sleep_period, which means that the sleep time to be slept is sleep_period = next_time - current_time. In order to maintain blinking synchronization between different indicators of this host computer, between the same indicator of different host computers, and between different indicators of different host computers, the current moment will not immediately display in high brightness, but will blink together with other indicators at the next blinking moment.

[0078] S4. Predict the display status of the reference indicator after the sleep time;

[0079] Specifically, the display status of the indicator includes two types: the first display status (high brightness) and the second display status (flat light). By dividing the next blinking moment by the blinking time interval, the number of blinking phases experienced by the current indicator is obtained. Taking the remainder of the number of blinking phases of the indicator by 2, the blinking status of the target indicator after the sleep time is obtained. Let: A = (next_time / time_align) % 2; (4)

[0080] In formula (4), next_time represents the next blinking moment, time_align represents the time interval, and % 2 represents taking the remainder by 2.

[0081] If A = 0, it means that the display status of the reference indicator after the sleep time is the first display status;

[0082] If A = 1, it means that the display status of the reference indicator after the sleep time is the second display status.

[0083] S5. Make the display status of the target indicator consistent with that of the reference indicator after the sleep time.

[0084] Embodiment 2

[0085] In this embodiment, as Figure 8 shown, a device for synchronous and same-frequency flashing of indicators in a DCS is provided, including: a setting module 1 for setting the flashing frequency of the indicators; an acquisition module 2 for determining the flashing interval for modifying the status of the indicators based on the flashing frequency; a calculation module 3 for calculating the sleep time of the target indicator that joins the flashing at the current moment in combination with the flashing interval; a prediction module 4 for predicting the display status of the reference indicator after the sleep time; and an execution module 5 for making the target indicator be consistent with the display status of the reference indicator after the sleep time.

[0086] Further, the acquisition module 1 calculates the flashing interval through the following formula:

[0087] time_align = 1000 / (2 * Freq); (1)

[0088] In formula (1), time_align represents the flashing interval, Freq represents the flashing frequency, and 1000 is 1000 milliseconds of the unit time.

[0089] Further, the calculation module 3 calculates the sleep time through the following formula:

[0090] sleep_period = next_time - current_time; (2)

[0091] In formula (2), sleep_period represents the sleep time, next_time represents the next flashing moment, and current_time represents the current moment; among them, the calculation formula for the next flashing moment next_time is as follows:

[0092] next_time = current_time - (current_time % time_align) + time_align; (3)

[0093] In formula (3), time_align represents the flashing interval, and % represents the modulo operation.

[0094] Further, the display status includes a first display status and a second display status; the prediction module 4 predicts the display status of the reference indicator after the sleep time through the following method, including:

[0095] Let A = (next_time / time_align) % 2; (4)

[0096] When A = 0, the display state of the reference indicator after the sleep time is the first display state; when A = 1, the display state of the reference indicator after the sleep time is the second display state; in formula (4), next_time represents the next flashing moment, time_align represents the time interval, and %2 represents the remainder when divided by 2.

[0097] The device for synchronously and homogeneously flashing indicators in the DCS includes a processor and a memory. The above-mentioned setting module 1, acquisition module 2, calculation module 3, prediction module 4, etc. are all stored in the memory as program units, and the corresponding functions are implemented by the processor executing the above program modules stored in the memory.

[0098] The processor contains a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and the method for synchronously and homogeneously flashing indicators in the DCS is realized by adjusting the kernel parameters.

[0099] The memory may include non-permanent memory in a computer-readable medium, forms such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.

[0100] The embodiment of the present application provides a storage medium, on which a program is stored, and when the program is executed by a processor, the method for synchronously and homogeneously flashing indicators in the above-mentioned DCS is realized.

[0101] In one embodiment, a computer device is provided. The computer device can be a server, and its internal structure diagram can be as Figure 9 shown. The computer device includes a processor A01, a network interface A02, a memory (not shown in the figure), and a database (not shown in the figure) connected through a system bus. Among them, the processor A01 of the computer device is used to provide computing and control capabilities. The memory of the computer device includes an internal memory A03 and a non-volatile storage medium A04. The non-volatile storage medium A04 stores an operating system B01, a computer program B02, and a database (not shown in the figure). The internal memory A03 provides an environment for the operation of the operating system B01 and the computer program B02 in the non-volatile storage medium A04. The database of the computer device is used to store data for synchronously and homogeneously flashing indicators in the DCS. The network interface A02 of the computer device is used to communicate with an external terminal through a network connection. When the computer program B02 is executed by the processor A01, a method for synchronously and homogeneously flashing indicators in a DCS is realized.

[0102] Those skilled in the art can understand, Figure 9The structure shown is only a block diagram of some of the structures related to the solution of this application, and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component arrangement.

[0103] Those skilled in the art should understand that the embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Moreover, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] This application is described with reference to the flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the embodiments of this application. It should be understood that each flow and / or block in the flowchart and / or block diagram, and the combination of flows and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing devices generate means for implementing the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0105] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to work in a specific manner, such that the instructions stored in the computer-readable memory generate a manufactured article including instruction means, and the instruction means implement the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0106] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable device provide steps for implementing the specified functions in Figure 1 one flow or multiple flows and / or blocks Figure 1 one block or multiple blocks.

[0107] In a typical configuration, a computing device includes one or more processors (CPUs), an input / output interface, a network interface, and memory.

[0108] The memory may include non-permanent memory in the form of computer-readable media, random access memory (RAM) and / or non-volatile memory such as read-only memory (ROM) or flash RAM. The memory is an example of computer-readable media.

[0109] Computer-readable media includes permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. The information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tapes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include transitory computer-readable media such as modulated data signals and carrier waves.

[0110] It should also be noted that the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "comprising one..." does not exclude the presence of additional identical elements in the process, method, article or device comprising the element.

[0111] The above are only embodiments of the present application and are not used to limit the present application. For those skilled in the art, various changes and modifications can be made to the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the scope of the claims of the present application.

Claims

1. A method for synchronous and same-frequency flashing of indicators in a DCS, characterized in that, The method includes: Setting the blinking frequency of the indicator; Determining the blinking interval for the indicator to modify its state based on the blinking frequency; Combining the blinking interval to calculate the sleep time of the target indicator that starts blinking at the current moment. The calculation formula for the sleep time is as follows: sleep_period = next_time - current_time; (2) In formula (2), sleep_period represents the sleep time, next_time represents the next blinking moment, and current_time represents the current moment; Among them, the calculation formula for the next blinking moment next_time is as follows: next_time = current_time - (current_time % time_align) + time_align; (3) In formula (3), time_align represents the blinking interval, and % represents the modulo operation; Predicting the display state of the reference indicator after the sleep time. The display state includes a first display state and a second display state; predicting the display state of the reference indicator after the sleep time includes: Let A = (next_time / time_align) % 2; (4) When A = 0, the display state of the reference indicator after the sleep time is the first display state; when A = 1, the display state of the reference indicator after the sleep time is the second display state; In formula (4), next_time represents the next blinking moment, time_align represents the time interval, and %2 represents taking the remainder with respect to 2; Making the display state of the target indicator after the sleep time consistent with that of the reference indicator.

2. The method for synchronous and same-frequency flashing of indicators in the DCS according to claim 1, wherein, The blinking frequency is Freq; The calculation formula for the blinking interval is as follows: time_align = 1000 / (2 * Freq); (1) In formula (1), time_align represents the blinking interval, and 1000 is the unit time of 1000 milliseconds.

3. The method for synchronous and same-frequency flashing of indicators in the DCS according to claim 1, characterized in that, When the current moment is the blinking moment of the reference indicator, the following numerical relationship exists between the sleep time sleep_period and the blinking interval time_align: sleep_period = time_align.

4. A device for synchronous and same-frequency flashing of indicators in a DCS, characterized in that, The device includes: A setting module for setting the blinking frequency of the indicator; An acquisition module for determining the blinking interval for the indicator to modify its state based on the blinking frequency; A calculation module for combining the blinking interval to calculate the sleep time of the target indicator that starts blinking at the current moment. The calculation module calculates the sleep time through the following formula: sleep_period = next_time - current_time; (2) In formula (2), sleep_period represents the sleep time, next_time represents the next blinking moment, and current_time represents the current moment; Among them, the calculation formula for the next blinking moment next_time is as follows: next_time = current_time - (current_time % time_align) + time_align; (3) In Equation (3), time_align represents the blinking interval, and % represents the modulo operation; A prediction module, configured to predict the display state of a reference indicator after a sleep time, where the display state includes a first display state and a second display state; the prediction module predicts the display state of the reference indicator after the sleep time in the following manner, including: Let A = (next_time / time_align) % 2; (4) When A = 0, the display state of the reference indicator after the sleep time is the first display state; when A = 1, the display state of the reference indicator after the sleep time is the second display state; In Equation (4), next_time represents the next blinking moment, time_align represents the time interval, and %2 represents taking the remainder with respect to 2; An execution module, configured to make the target indicator be consistent with the display state of the reference indicator after the sleep time.

5. The device for synchronously and homodynously flashing indicators in a DCS according to claim 4, characterized in that, The obtaining module calculates the blinking interval through the following formula: time_align = 1000 / (2 * Freq); (1) In Equation (1), time_align represents the blinking interval, Freq represents the blinking frequency, and 1000 is 1000 milliseconds in the unit time.

6. A processor, characterized in that, Configured to execute the method for synchronous and same-frequency blinking of indicators in the DCS according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Synchronous flash device for marker lamp

    JP1999011378A

  • Flicker detecting method and flicker detecting apparatus

    US20040165084A1