CN114625109A - Test apparatus, test method, and storage medium - Google Patents

Test apparatus, test method, and storage medium Download PDF

Info

Publication number
CN114625109A
CN114625109A CN202210279494.6A CN202210279494A CN114625109A CN 114625109 A CN114625109 A CN 114625109A CN 202210279494 A CN202210279494 A CN 202210279494A CN 114625109 A CN114625109 A CN 114625109A
Authority
CN
China
Prior art keywords
test
testing
module
light source
machine vision
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
Application number
CN202210279494.6A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Lyric Robot Automation Co Ltd
Original Assignee
Guangdong Lyric Robot Automation Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Lyric Robot Automation Co Ltd filed Critical Guangdong Lyric Robot Automation Co Ltd
Priority to CN202210279494.6A priority Critical patent/CN114625109A/en
Publication of CN114625109A publication Critical patent/CN114625109A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0218Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterised by the fault detection method dealing with either existing or incipient faults
    • G05B23/0221Preprocessing measurements, e.g. data collection rate adjustment; Standardization of measurements; Time series or signal analysis, e.g. frequency analysis or wavelets; Trustworthiness of measurements; Indexes therefor; Measurements using easily measured parameters to estimate parameters difficult to measure; Virtual sensor creation; De-noising; Sensor fusion; Unconventional preprocessing inherently present in specific fault detection methods like PCA-based methods

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The application provides a testing device, a testing method and a storage medium, and relates to the technical field of circuit testing. The test device comprises: the device comprises a main control module, a test module and a judgment module; the judging module is used for judging the type of the machine vision light source controller; the testing module is integrated with a plurality of testing units, and the testing units are used for sequentially testing the machine vision light source controller according to testing items corresponding to the testing units to obtain testing data and sending the testing data to the main control module; the testing module is also used for matching different testing units for different types of machine vision light source controllers; the main control module is used for judging whether other test items are carried out or not based on the test data when receiving the test data, and outputting a test result representing that the machine vision light source controller passes the test when all the test items pass. The testing device provided by the application can improve the testing efficiency and the testing reliability of the machine vision light source controller.

Description

Test apparatus, test method, and storage medium
Technical Field
The present disclosure relates to the field of circuit testing technologies, and in particular, to a testing apparatus, a testing method, and a storage medium.
Background
At present, in the process of producing a machine vision light source controller in the industry, a plurality of professional test instruments such as an oscilloscope, a signal generating source, an electronic load and the like are required to be used for performance test. And the test contents of different visual light source controllers are not completely the same. The testing process of the visual light source controller is complicated, the requirement on the skills of testers is high, and missing testing or wrong testing is easily caused, so that the testing efficiency and the testing reliability cannot be ensured.
Disclosure of Invention
An object of the embodiments of the present application is to provide a testing apparatus, a testing method, and a storage medium, so as to solve the problems of testing efficiency and testing reliability of a machine vision light source controller.
Mainly comprises the following aspects:
in a first aspect, the present application provides a testing apparatus for testing a machine vision light source controller, the apparatus comprising: the device comprises a main control module, a test module and a judgment module;
the main control module is respectively connected with the test module and the judgment module;
the judging module is used for judging the type of the machine vision light source controller, wherein the type of the machine vision light source controller comprises: a machine vision digital light source controller and a machine vision analog light source controller;
the testing module is integrated with a plurality of testing units, and the testing units are used for sequentially testing the machine vision light source controller according to testing items corresponding to the testing units to obtain testing data and sending the testing data to the main control module;
the testing module is also used for matching different testing units for different types of machine vision light source controllers; and
and the main control module is used for judging whether other test items are performed or not based on the test data when receiving one piece of test data so as to output a test result representing that the machine vision light source controller passes the test when all the test items pass.
In the testing device provided by the embodiment of the application, a plurality of testing units are integrated in the testing module, and the plurality of testing units sequentially test the machine vision light source controller according to the testing items and judge the testing result through the main control module. The judging module judges the type of the machine vision light source controller, and the testing module is used for matching different testing units for different types of machine vision light source controllers. And when all the test items pass, outputting a test result representing that the test passes. The testing device provided by the embodiment of the application can automatically judge the testing result, reduces the skill requirement on testing personnel, simplifies the whole testing process and improves the testing efficiency and the testing reliability.
In some optional implementation manners, the device further includes a production test character generation module, a production test character comparison module, and a production test character deletion module;
the production test character generation module is used for generating production test characters when all test items of the machine vision digital light source controller pass;
the production test character comparison module is used for comparing the information of the test characters generated by the production test character generation module and outputting a comparison result;
and the production test character deleting module is used for deleting the production test character generated by the production test character generating module when the comparison result is wrong.
In the implementation mode, when all the test items of the machine vision digital light source controller pass, the production test character generation module generates production test characters, the production test character comparison module determines the correctness of the production test characters, and the production test character deletion module deletes wrong production test characters. Therefore, the tested machine vision digital light source controller can be traced, and the testing efficiency and the testing reliability are improved.
In some optional implementations, the apparatus further includes a production test character determination module;
the production test character judgment module is used for judging whether a production test character exists in a test unit of the machine vision digital light source controller in the test process;
the production test character deleting module is also used for deleting the production test characters when the production test character judging module judges that the production test characters exist and the machine vision digital light source controller fails in testing.
In the implementation mode, whether wrong production test characters exist or not can be judged through the generation test character judging module, the wrong production test characters can be deleted through the production test character deleting module, the tested machine vision digital light source controller can be traced, and the testing efficiency and the testing reliability are improved.
In some optional implementations, the apparatus further comprises: a feedback module;
the feedback module is connected with the main control module;
the feedback module is used for acquiring the working state of the machine vision light source controller before the testing module tests the machine vision light source controller and feeding the working state back to the main control module, so that the testing device can only test when the machine vision light source controller works normally.
In the implementation mode, the feedback module feeds back the acquired working state of the visual light source controller to the main control module, so that the testing device is ensured to test only when the machine visual light source controller works normally, and the testing accuracy can be improved.
In some alternative implementations, the apparatus further includes a first tape carrier module and a second tape carrier module;
the first on-load module is used for simulating a rated power load of the machine vision light source controller;
the second loading module is used for simulating a preset power load of the machine vision light source controller.
In the implementation mode, the first load module simulates a rated power load and the second load module simulates a preset power load, so that the test requirements of different test items can be met.
In some optional implementation manners, when receiving each piece of test data, the main control module determines whether the test item passes through based on the test data; if not, the test is ended and error information is output.
In the implementation mode, when one test item fails, the test is ended, and error reporting information is output, so that a tester can adjust the machine vision light source controller, and the test efficiency and the test reliability are improved.
In some optional implementations, the plurality of test units includes: the device comprises a communication test unit, a performance test unit and a hardware test unit;
the communication test unit comprises an external trigger test subunit, a serial port data receiving and transmitting test subunit and a network port data receiving and transmitting test subunit;
the performance test unit comprises an efficiency test subunit, a ripple test subunit, an over-power test subunit and a short circuit test subunit; and
the hardware testing unit comprises a key testing subunit, a fan rotating speed testing subunit, a nixie tube testing subunit and a working mode switching subunit.
In the implementation mode, the communication test unit, the performance test unit and the hardware test unit are integrated in the test module, and the test units are also integrated with a plurality of test subunits, so that the test comprehensiveness can be met, and the test reliability is improved.
In some optional implementations, the network port transceiving data testing subunit is configured to test a communication response time and a brightness value condition of a network port of the machine vision light source controller.
In the above implementation manner, the network port data receiving and sending test subunit may test the communication response time and the brightness value condition of the network port of the machine vision light source controller, and may test the performance of the network port.
In a second aspect, an embodiment of the present application provides a testing method, which is applied to a testing apparatus to test a machine vision light source controller; the testing device comprises a main control module, a testing module and a judging module, wherein a plurality of testing units are integrated in the testing module; the method comprises the following steps:
judging the type of the machine vision light source controller through the judging module, wherein the type of the machine vision light source controller comprises: a machine vision digital light source controller and a machine vision analog light source controller;
sequentially testing the machine vision light source controller through the plurality of test units according to the test items corresponding to the test units to obtain test data, and sending the test data to the main control module;
matching different types of machine vision light source controllers with different test units through the test module;
and through the main control module, when receiving one piece of test data, judging whether to perform other test items based on the test data, and outputting a test result representing that the machine vision light source controller passes the test when all the test items pass.
According to the testing method provided by the embodiment of the application, the machine vision light source controllers are sequentially tested according to the testing items through the plurality of testing units, the testing results are judged through the main control module, the type of the machine vision light source controllers is judged through the judging module, and the testing modules are matched with different testing units for different types of machine vision light source controllers. And when all the test items pass, outputting a test result representing that the test passes. According to the testing method provided by the embodiment of the application, the testing result can be automatically judged through the main control module, the skill requirement on testing personnel is reduced, the whole testing process is simplified, and the testing efficiency and the testing reliability are improved.
In a third aspect, an embodiment of the present application further provides an electronic device, where the electronic device includes a memory and a processor, where the memory stores program instructions, and the processor executes the steps in any one of the foregoing implementation manners when reading and executing the program instructions.
In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, where computer program instructions are stored in the computer-readable storage medium, and when the computer program instructions are read and executed by a processor, the steps in any one of the foregoing implementation manners are performed.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a schematic structural diagram of a testing apparatus according to an embodiment of the present disclosure;
FIG. 2 is a schematic structural diagram of another testing apparatus provided in the present application;
FIG. 3 is a flow chart of a testing method provided by an embodiment of the present application;
fig. 4 is a block schematic diagram of an electronic device according to an embodiment of the present application.
Icon: 100-a test device; 102-a test device; 110-a master control module; 120-a test module; 121-a communication test unit; 122-a performance test unit; 123-hardware test unit; 130-a judgment module; 140-production test character generation module; 150-producing a test character comparison module; 160-production test character deletion module; 170-producing test character judgment module; 180-a feedback module; 190-a first belt load module; 200-a second tape carrier module; 400-an electronic device; 410-a processor; 420-memory.
Detailed Description
In order to make the objects, 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 drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all the embodiments. The following detailed description of the embodiments of the application is not intended to limit the scope of the application as claimed, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
The applicant found in the course of the study: in the process of producing a machine vision light source controller in the industry at present, a plurality of professional testing instruments are required to be used for performance testing, the testing process is complicated, the requirement on the skills of testing personnel is high, test missing or test errors are easily caused, and therefore the testing efficiency and the testing reliability cannot be guaranteed.
Based on this, the embodiment of the application provides a testing device, and this testing device is applied to testing machine vision light source controller, adopts this testing device can judge the test result automatically, has reduced the technical skill requirement to the tester, has simplified whole test procedure, has improved the reliability of efficiency of software testing and test. The method provided by the present application is described below by way of several examples.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a testing apparatus provided in an embodiment of the present application.
The embodiment of the application provides a testing device 100, and the testing device 100 is applied to testing a machine vision light source controller. The test apparatus 100 includes: a main control module 110, a test module 120 and a judgment module 130.
The main control module 110 is connected to the test module 120 and the judgment module 130, respectively.
For example, the main control module 110 may be an integrated circuit chip having signal Processing capability, or may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The determining module 130 is configured to determine a type of a machine vision light source controller, where the type of the machine vision light source controller includes: a machine vision digital type light source controller and a machine vision analog type light source controller.
For example, the machine vision analog type light source controller has no storage unit and cannot store the device information, while the machine vision digital type light source controller has a storage unit and can store the device information, and therefore the type of the machine vision light source controller needs to be judged. The testing apparatus 100 can determine the type of the machine vision light source controller through the determining module 130 to match different testing items for testing the machine vision light source controller.
The test module 120 is integrated with a plurality of test units, and the plurality of test units are configured to sequentially test the machine vision light source controller according to test items corresponding to the test units, obtain test data, and send the test data to the main control module 110.
Illustratively, the test items of the machine vision light source controller may include an efficiency test, an over-power test, a short circuit test, an external test, a serial port data receiving/transmitting test, a network port data receiving/transmitting test, a ripple test, a key test, a fan speed test, a nixie tube display test, an operating mode switching test, and the like. The test module 120 integrates a plurality of test units corresponding to the test items, and sends the test result to the main control module 110 after the test units are tested.
It should be noted that, the plurality of test units in the present application may be 2 test units, 3 test units, or more test units, and the number of the test units may be specifically set according to actual situations.
Wherein the test module 120 is further configured to match different test units for different types of machine vision light source controllers.
For example, for a machine vision digital type light source controller, device information, test information, version information, and the like may be stored in a storage unit thereof. When the testing apparatus 100 is used to test a machine vision digital light source controller, a test for comparing equipment information may be added.
The main control module 110 is configured to, when receiving a test data, determine whether to perform other test items based on the test data, and output a test result indicating that the machine vision light source controller passes the test when all the test items pass.
For example, the main control module 110 may process the received test data and compare the processed test data with the previously stored preset data to determine whether the received test data passes through. And if the test item corresponding to the test data passes the test, performing the next test, and outputting a test result representing that the machine vision light source controller passes the test when all the test items pass.
For example, the main control module 110 in the testing apparatus 100 may automatically determine the testing result, and during the testing process, a tester is not required to operate a testing instrument, so that the requirement on the skill of the tester is reduced, the whole testing process is simplified, and the testing efficiency and the testing reliability are improved.
Optionally, as shown in fig. 2, fig. 2 is a schematic structural diagram of another testing apparatus provided in the embodiment of the present application.
The testing apparatus 102 may include a production test character generation module 140, a production test character comparison module 150, and a production test character deletion module 160.
The production test character generation module 140 is configured to generate a production test character when all the test items of the machine vision digital light source controller pass.
Illustratively, the production test characters may include an automatic test fixture number, a tester code number, a test time, a hardware circuit version, and a program version.
Illustratively, when all the test items of the machine vision digital light source controller pass, the production test character generation module 140 generates production test characters, and a tester can trace the source of the tested machine vision digital light source controller through the production test characters, thereby improving the test efficiency and the test reliability.
The production test character comparison module 150 is used for comparing the information of the test characters generated by the production test character generation module 140 and outputting the comparison result.
Illustratively, the production test character comparison module 150 compares the test characters generated by the production test character generation module 140 to determine whether the information of the production test characters is consistent with the information of the tested machine vision digital light source controller.
The production test character deleting module 160 is configured to delete the production test character generated by the production test character generating module 140 when the comparison result is an error.
Illustratively, if the information of the production test character is not identical to the information of the tested machine vision digital type light source controller, the production test character is deleted by the production test character deletion module 160, and an alarm message is output by the main control module 110.
Optionally, the testing apparatus 102 may further include a production test character determination module 170. The production test character judgment module 170 is used for judging whether a production test character exists in the test unit of the machine vision digital light source controller in the test process. The production test character deleting module 160 is further configured to delete the production test character when the production test character judging module 170 judges that the production test character exists and the machine vision digital light source controller fails in the test.
For example, if the production test character determining module 170 determines that the machine vision digital light source controller to be tested is a tested controller or a production test character is generated in the current test, the production test character deleting module 160 may delete the production test character, so as to ensure the accuracy of the test and further prevent the machine vision digital light source controller that fails the test from having corresponding production test characters, thereby confusing the passed and failed machine vision digital light source controllers.
The testing apparatus 102 may include a feedback module 180, and the feedback module 180 is connected to the main control module 110. The feedback module 180 is configured to obtain a working state of the machine vision light source controller before the testing module 120 tests the machine vision light source controller, and feed the working state back to the main control module 110, so that the testing device 102 only performs testing when the machine vision light source controller is working normally.
Illustratively, the feedback module 180 feeds back the acquired working state of the visual light source controller to the main control module, so as to ensure that the testing device 102 only performs testing when the machine visual light source controller normally works, avoid the occurrence of an erroneous testing result or the situation that the machine visual light source controller does not normally work but obtains a testing result that passes the testing, and improve the accuracy of the testing.
Optionally, the testing device 102 may further include a first tape carrier module 190 and a second tape carrier module 200.
The first load module 190 is used for simulating a rated power load of the machine vision light source controller.
Illustratively, in a test project, when an on-load test is required, the first on-load module 190 may be accessed, and the first on-load module 190 may be a rated power load of the machine vision light source controller.
The second loading module 200 is configured to simulate a preset power load of the machine vision light source controller.
Illustratively, in a test project where an on-load test is required and the test is an overload test, a second on-load module 200 may be accessed, the second on-load module 200 may be a load of the machine vision light source controller greater than 110% of the rated power. The first and second on- load modules 190 and 200 may also be switched in at the same time during the test, and the second on-load module 200 may be a load greater than 10% of the rated power.
Optionally, when receiving each test data, the main control module judges whether the test item passes or not based on the test data; if not, ending the test and outputting alarm information.
For example, the main control module 110 may process the received test data and compare the processed test data with the previously stored preset data to determine whether the received test data passes through. If the test item corresponding to the test data does not pass, the test is ended, and error reporting information is output to inform a tester. The error reporting information may include test data and preset data compared with the test data. The tester can adjust the machine vision light source controller according to the error reporting information, and restart a new test after the adjustment is finished.
Optionally, the testing apparatus 102 may further include a result displaying module, where the result displaying module is connected to the main control module and is configured to display the testing result processed by the main control module. The result display module can comprise a touch display unit and a voice playing unit, wherein the touch display unit is used for displaying the test result, and the voice playing unit is used for playing the test result in a voice mode.
Alternatively, the plurality of test units may include a communication test unit 121, a performance test unit 122, and a hardware test unit 123.
The communication test unit 121 includes an external trigger test subunit, a serial port data receiving and transmitting test subunit, and a network port data receiving and transmitting test subunit.
Illustratively, the external trigger test subunit is configured to test a response time of an external trigger signal, wherein the external trigger signal controls the machine vision light source controller to enter an ON/OFF state. During testing, the main control module 110 triggers the testing subunit to send out high level to the outside, and starts timing, the main control module 110 reads the state of the feedback module 180, when the state of the feedback module 180 changes, timing is finished, and the response time of the external trigger signal is the value obtained by subtracting the difference between the end time and the start time and then subtracting the hardware delay time. After the test is passed, the main control module 110 sends the test result of the external trigger test subunit to the result display module.
Illustratively, the serial port transceiving data testing subunit is used for testing the communication response time and the brightness value condition of the serial port of the machine vision light source controller. When the communication response time is tested, the main control module 110 sends data to the serial port transceiving data test subunit, so that the machine vision light source controller stops outputting, and starts timing, the main control module 110 reads the state of the feedback module 180, when the state of the feedback module 180 changes, timing is finished, and the communication response time of the serial port is the value obtained by subtracting the difference of the starting time from the ending time and then subtracting the hardware delay time. When the brightness value of the machine vision light source controller is tested, the main control module 110 sends data to the serial port transceiving data testing subunit, so that the brightness value of the machine vision light source controller is a preset value and is normally output, wherein the preset value may be 200. The main control module 110 reads the brightness value (read value) of the machine vision light source controller to the serial port transceiving data test subunit. If the read value is equal to the preset value, the test is passed. After the test is passed, the main control module 110 sends the test result of the serial port transceiving data test subunit to the result display module.
Illustratively, the network port transceiving data testing subunit is used for testing the communication response time and the brightness value condition of the network port of the machine vision light source controller. When the communication response time is tested, the main control module 110 sends data to the network port data receiving and sending test subunit, so that the machine vision light source controller stops outputting and starts timing, the main control module 110 reads the state of the feedback module 180, when the state of the feedback module 180 changes, timing is finished, and the communication response time of the network port is the value obtained by subtracting the difference of the ending time and the starting time and then subtracting the hardware delay time. When the brightness value of the machine vision light source controller is tested, the main control module 110 sends data to the network port transceiving data testing subunit, so that the brightness value of the machine vision light source controller is a preset value and is normally output, where the preset value may be 200. The main control module 110 reads the brightness value (read value) of the machine vision light source controller to the network port transceiving data testing subunit. If the read value is equal to the preset value, the test is passed. After the test is passed, the main control module 110 sends the test result of the data receiving and sending test subunit of the network port to the result display module.
The performance testing unit 122 includes an efficiency testing subunit, a ripple testing subunit, an over-power testing subunit, and a short-circuit testing subunit.
Illustratively, an efficiency testing subunit is used to test the efficiency of the machine vision light source controller. During testing, the machine vision light source controller is connected to the first load-carrying module 190, which is equivalent to a rated load on the machine vision light source controller to be tested, and the main control module respectively reads the voltage, the current and the input power value of the efficiency testing subunit and judges whether the test is passed or not. After the test is passed, the main control module 110 sends the test result of the efficiency test subunit to the result display module.
Illustratively, the ripple test subunit is used for testing the power supply ripple of the machine vision light source controller, wherein the power supply of the machine vision light source controller comprises a constant voltage type LED power supply and a constant current type LED power supply. During testing, the machine vision light source controller is connected to the first load-carrying module 190, which is equivalent to a load with rated power on the machine vision light source controller to be tested, the ripple testing subunit collects a voltage value or a current value 10000 times, selects a maximum value and a minimum value from the voltage value or the current value, the power supply ripple is a difference value between the maximum value and the minimum value and transmits the difference value to the main control module 110, and the main control module 110 compares the set value with the power supply ripple to judge whether the test is passed. After the test is passed, the main control module 110 sends the test result of the ripple test subunit to the result display module.
Illustratively, the over-power test subunit is used for testing an over-current protection function of the machine vision light source controller. During testing, the machine vision light source controller is connected to the first loading module 190 and the second loading module 200, which is equivalent to a load larger than a rated power on the machine vision light source controller to be tested, the main control module 110 reads the state of the feedback module 180 to judge whether the machine vision light source controller operates normally at the moment, and meanwhile, the main control module 110 reads whether the controller enters an overload protection state through a serial port of the machine vision light source controller to judge whether the test passes. After the test is passed, the main control module 110 sends the test result of the power test subunit to the result display module.
Illustratively, the short circuit test subunit is used for testing the protection function when the output end of the machine vision light source controller is short-circuited. During testing, the positive electrode and the negative electrode of the output end of the machine vision light source controller are respectively connected to the D, S electrode of the MOS tube, and the condition that the positive electrode and the negative electrode of the output of the machine vision light source controller are in short circuit is simulated by controlling the on and off of the MOS tube, so that the main control module 110 judges whether the test is passed through by judging whether the serial interface Duyu controller of the machine vision light source controller enters a short circuit protection state or not. After the test is passed, the main control module 110 sends the test result of the short circuit test subunit to the result display module.
The hardware testing unit 123 includes a key testing subunit, a fan speed testing subunit, a nixie tube testing subunit, and a working mode switching subunit.
Illustratively, the key test subunit is used for testing the key functions of the machine vision light source controller. During testing, the main control module 110 sets the brightness value to be a preset value through the serial port of the machine vision light source controller, the preset value can be 100, the main control module 110 prompts a user to input a specific numerical value of the brightness value of a certain channel of the machine vision light source controller through the key test subunit through the result display module, the main control module 110 reads the brightness value of the machine vision light source controller in real time and repeatedly executes the operations, and the main control module 110 judges whether the test is passed or not. After the test is passed, the main control module 110 sends the test result of the key test subunit to the result display module.
Illustratively, the fan speed testing subunit is used for testing the working state of a heat dissipation fan of the machine vision light source controller. The principle is that the state of the cooling fan is judged by testing the highest wind speed of the cooling fan. During testing, the main control module 110 sends an instruction to an operator through the result display module, the fan rotating speed testing subunit is close to the radiating fan of the machine vision light source controller, the main control module 110 reads data of the fan rotating speed testing subunit in real time, when the wind speed reaches a set value, the main control module 110 sends an instruction through the result display module to prompt the operator to judge whether abnormal sound exists or not, and if the operator judges that the abnormal sound does not exist, the test is passed. After the test is passed, the main control module 110 sends the test result of the fan rotation speed test subunit to the result display module.
Illustratively, the nixie tube testing subunit is used for testing the display state of the nixie tube of the machine vision light source controller. During testing, the main control module 110 controls the nixie tube testing subunit to display numbers 1 to 9 in turn through the serial port of the machine vision light source controller, prompts an operator to judge whether the nixie tube display is abnormal or not through the result display module, and passes the test if the operator judges that the nixie tube display is abnormal. After the test is passed, the main control module 110 sends the test result of the nixie tube test subunit to the result display module.
Illustratively, the operation mode switching subunit is used for testing the operation state of an operation mode switch of the machine vision light source controller. During testing, the main control module 110 switches the working mode to be normally off through the working model switching subunit when the machine vision light source controller works normally. The main control module 110 reads the status of the machine vision light source controller through the feedback module 180 at this time, so as to determine whether the test is passed. After the test is passed, the main control module 110 sends the test result of the working mode switching subunit to the result display module.
Based on the same application concept, a test method corresponding to the test device is also provided in the embodiments of the present application, and since the principle of solving the problem by the test method in the embodiments of the present application is similar to that in the embodiments of the test device, reference may be made to the description in the embodiments of the device for implementing the method in the embodiments of the present application, and repeated descriptions are omitted.
Referring to fig. 3, fig. 3 is a flowchart of a testing method according to an embodiment of the present application. The embodiment of the application provides a testing method which is applied to a testing device and used for testing a machine vision light source controller. The testing device comprises a main control module and a testing module, wherein a plurality of testing units are integrated in the testing module. The testing method includes steps 310 to 340.
And 310, judging the type of the machine vision light source controller through a judging module.
And 320, sequentially testing the machine vision light source controller through the plurality of test units according to the test items corresponding to the test units to obtain test data, and sending the test data to the main control module.
And step 330, matching different test units for different types of machine vision light source controllers through the test module.
And 340, judging whether other test items are performed or not based on the test data when the main control module receives the test data, so as to output a test result representing that the machine vision light source controller passes the test when all the test items pass.
Optionally, the testing method may further include steps 350 to 370.
And 350, generating a production test character by the production test character module when all test items of the machine vision digital light source controller pass.
And 360, comparing the information of the test character generated by the production test character generation module through the production test character comparison module, and outputting a comparison result.
And 370, deleting the production test character generated by the production test character generation module when the comparison result is wrong through the production test character deletion module.
Optionally, the testing method may further include step 380.
And 380, judging whether the test unit of the machine vision digital light source controller has production test characters in the test process through a production test character judgment module.
Optionally, step 370 may further include: and deleting the production test characters by the production test character deleting module when the production test character judging module judges that the production test characters exist and the machine vision digital light source controller fails in testing.
Optionally, prior to step 310, the testing method may further include step 390.
Step 390, obtaining the working state of the machine vision light source controller through the feedback module before the testing module tests the machine vision light source controller, and feeding the working state back to the main control module, so that the testing device only tests when the machine vision light source controller works normally.
Optionally, the test method may further include steps a to B.
And A, simulating a rated power load of a machine vision light source controller through a first loading module.
And B, simulating a preset power load of the machine vision light source controller through the second loading module.
Optionally, the test method may further comprise step C.
Step C, judging whether the test item passes through or not based on the test data when each test data is received through the main control module; if not, ending the test and outputting alarm information.
The method in this embodiment may be implemented as described in the above embodiment of the apparatus, and repeated descriptions are omitted.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device according to an embodiment of the present disclosure. The embodiment of the application introduces the electronic equipment operated by the test method. Electronic device 400 may include a processor 410 and a memory 420. It will be understood by those of ordinary skill in the art that the structure shown in fig. 4 is merely exemplary and is not intended to limit the structure of the electronic device 400. For example, electronic device 400 may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
Alternatively, the electronic device 400 may be a smart phone, a Personal Computer (PC), a tablet PC, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), or the like.
The processor 410 and the memory 420 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The processor 410 described above is used to execute executable modules stored in memory.
The Memory 420 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 420 is used for storing a program, and the processor 410 executes the program after receiving an execution instruction, and the method performed by the electronic device 400 defined by the process disclosed in any embodiment of the present application may be applied to the processor 410, or implemented by the processor 410.
The processor 410 may be an integrated circuit chip having signal processing capabilities. The Processor 410 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The electronic device 400 in this embodiment may be configured to perform each step in each method provided in this embodiment.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program performs the steps of any of the methods described above.
The computer program product of the testing method provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute the steps of the testing method described in the above method embodiment, which may be specifically referred to in the above method embodiment, and details are not described here again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes. It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application. It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A testing apparatus for use in testing a machine vision light source controller, the apparatus comprising: the device comprises a main control module, a test module and a judgment module;
the main control module is respectively connected with the test module and the judgment module;
the judging module is used for judging the type of the machine vision light source controller, wherein the type of the machine vision light source controller comprises: a machine vision digital light source controller and a machine vision analog light source controller;
the testing module is integrated with a plurality of testing units, and the testing units are used for sequentially testing the machine vision light source controller according to testing items corresponding to the testing units to obtain testing data and sending the testing data to the main control module;
the testing module is also used for matching different testing units for different types of machine vision light source controllers; and
and the main control module is used for judging whether other test items are performed or not based on the test data when receiving one piece of test data so as to output a test result representing that the machine vision light source controller passes the test when all the test items pass.
2. The apparatus of claim 1, further comprising a production test character generation module, a production test character alignment module, and a production test character deletion module;
the production test character generation module is used for generating production test characters when all test items of the machine vision digital light source controller pass;
the production test character comparison module is used for comparing the information of the test characters generated by the production test character generation module and outputting a comparison result;
the production test character deleting module is used for deleting the production test character generated by the production test character generating module when the comparison result is wrong.
3. The apparatus of claim 2, further comprising a production test character determination module;
the production test character judgment module is used for judging whether a production test character exists in a test unit of the machine vision digital light source controller in the test process;
the production test character deleting module is also used for deleting the production test characters when the production test character judging module judges that the production test characters exist and the machine vision digital light source controller fails in testing.
4. The apparatus of claim 1, further comprising: a feedback module;
the feedback module is connected with the main control module;
the feedback module is used for acquiring the working state of the machine vision light source controller before the testing module tests the machine vision light source controller and feeding the working state back to the main control module, so that the testing device can only test when the machine vision light source controller works normally.
5. The apparatus of claim 1, further comprising a first tape carrier module and a second tape carrier module;
the first on-load module is used for simulating a rated power load of the machine vision light source controller;
the second loading module is used for simulating a preset power load of the machine vision light source controller.
6. The apparatus of claim 1, wherein the main control module, upon receiving each of the test data, determines whether the test item passes based on the test data; if not, the test is ended and error information is output.
7. The apparatus of claim 1, wherein the plurality of test units comprises: the device comprises a communication test unit, a performance test unit and a hardware test unit;
the communication test unit comprises an external trigger test subunit, a serial port data receiving and transmitting test subunit and a network port data receiving and transmitting test subunit;
the performance test unit comprises an efficiency test subunit, a ripple test subunit, an over-power test subunit and a short circuit test subunit; and
the hardware testing unit comprises a key testing subunit, a fan rotating speed testing subunit, a nixie tube testing subunit and a working mode switching subunit.
8. The apparatus of claim 7, wherein the portal transceiving data testing unit is configured to test communication response time and brightness value of a portal of the machine vision light source controller.
9. The test method is characterized by being applied to a test device to test a machine vision light source controller; the testing device comprises a main control module, a testing module and a judging module, wherein a plurality of testing units are integrated in the testing module; the method comprises the following steps:
judging the type of the machine vision light source controller through the judging module, wherein the type of the machine vision light source controller comprises: a machine vision digital light source controller and a machine vision analog light source controller;
sequentially testing the machine vision light source controller through the plurality of test units according to the test items corresponding to the test units to obtain test data, and sending the test data to the main control module;
matching different types of machine vision light source controllers with different test units through the test module;
and through the main control module, when receiving one piece of test data, judging whether to perform other test items based on the test data, and outputting a test result representing that the machine vision light source controller passes the test when all the test items pass.
10. A computer-readable storage medium having computer program instructions stored thereon for execution by a processor to perform the steps of the method of claim 9.
CN202210279494.6A 2022-03-21 2022-03-21 Test apparatus, test method, and storage medium Pending CN114625109A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210279494.6A CN114625109A (en) 2022-03-21 2022-03-21 Test apparatus, test method, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210279494.6A CN114625109A (en) 2022-03-21 2022-03-21 Test apparatus, test method, and storage medium

Publications (1)

Publication Number Publication Date
CN114625109A true CN114625109A (en) 2022-06-14

Family

ID=81904858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210279494.6A Pending CN114625109A (en) 2022-03-21 2022-03-21 Test apparatus, test method, and storage medium

Country Status (1)

Country Link
CN (1) CN114625109A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170087328A (en) * 2016-01-20 2017-07-28 주식회사 파비온 Vision inspection module and Vision inspection method
CN108021119A (en) * 2016-10-31 2018-05-11 河南蓝信科技股份有限公司 A kind of EOAS device detection systems and its method
CN207359904U (en) * 2017-05-08 2018-05-15 福建星谷信息科技有限公司 A kind of stylus printer control panel device for dynamically detecting
CN108459586A (en) * 2018-05-25 2018-08-28 中车青岛四方车辆研究所有限公司 Multiplexing automatic testing stand based on virtual instrument and test method
CN109800119A (en) * 2018-12-25 2019-05-24 深圳市元征科技股份有限公司 A kind of product function test method and device
CN112612262A (en) * 2020-12-22 2021-04-06 深圳市星砺达科技有限公司 Production line testing method and device for vehicle-mounted equipment, computer equipment and storage medium
CN214252449U (en) * 2020-12-15 2021-09-21 苏州精控能源科技有限公司 Battery management controller testing device and testing system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20170087328A (en) * 2016-01-20 2017-07-28 주식회사 파비온 Vision inspection module and Vision inspection method
CN108021119A (en) * 2016-10-31 2018-05-11 河南蓝信科技股份有限公司 A kind of EOAS device detection systems and its method
CN207359904U (en) * 2017-05-08 2018-05-15 福建星谷信息科技有限公司 A kind of stylus printer control panel device for dynamically detecting
CN108459586A (en) * 2018-05-25 2018-08-28 中车青岛四方车辆研究所有限公司 Multiplexing automatic testing stand based on virtual instrument and test method
CN109800119A (en) * 2018-12-25 2019-05-24 深圳市元征科技股份有限公司 A kind of product function test method and device
CN214252449U (en) * 2020-12-15 2021-09-21 苏州精控能源科技有限公司 Battery management controller testing device and testing system
CN112612262A (en) * 2020-12-22 2021-04-06 深圳市星砺达科技有限公司 Production line testing method and device for vehicle-mounted equipment, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109542761B (en) Software quality evaluation method, device and storage medium
CN111240973B (en) Equipment testing method and system based on simulation and readable storage medium
CN101287266B (en) Test system and method for mobile phone
CN110647471A (en) Interface test case generation method, electronic device and storage medium
CN109522181B (en) Performance test method, device and equipment of distributed storage system
CN114546738A (en) Server general test method, system, terminal and storage medium
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN111814354B (en) Simulation test method, system, medium and electronic device for instrument performance
CN110968517B (en) Automatic test method, apparatus, platform and computer readable storage medium
CN111459616B (en) Test method, device, equipment and storage medium
CN110888804B (en) Interface test method and interface test platform
CN113094251B (en) Method and device for testing embedded system, computer equipment and storage medium
CN112019404A (en) Method and device for automatically testing FC-AE-1553 communication protocol chip
CN114996127A (en) Intelligent test method and system for solid state disk firmware module
CN110988662B (en) Signal debugging system and method based on FPGA prototype verification development board
CN112685079A (en) Method and equipment for automatically analyzing test range based on code difference comparison
CN112817869A (en) Test method, test device, test medium, and electronic apparatus
CN114625109A (en) Test apparatus, test method, and storage medium
CN111026651A (en) Test method, test device, storage medium and electronic equipment
CN110297754A (en) A kind of test information feedback method and system
CN113126881A (en) System configuration method, device, equipment, readable storage medium and distributed storage system
CN106979794B (en) Sensor testing method and device
CN114487758B (en) Test method and test system for semiconductor equipment
KR102192098B1 (en) Apparatus and method for testing of firing output selection card of excitation system
CN110779159B (en) Equipment detection method, device, system, control equipment and air conditioner

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20220614

RJ01 Rejection of invention patent application after publication