CN1801165B - Spectrometer sample number intelligent input method - Google Patents
Spectrometer sample number intelligent input method Download PDFInfo
- Publication number
- CN1801165B CN1801165B CN200410103092A CN200410103092A CN1801165B CN 1801165 B CN1801165 B CN 1801165B CN 200410103092 A CN200410103092 A CN 200410103092A CN 200410103092 A CN200410103092 A CN 200410103092A CN 1801165 B CN1801165 B CN 1801165B
- Authority
- CN
- China
- Prior art keywords
- sample
- sample number
- software
- winoe
- analysis
- 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.)
- Expired - Lifetime
Links
Images
Landscapes
- Other Investigation Or Analysis Of Materials By Electrical Means (AREA)
- Investigating Or Analysing Materials By Optical Means (AREA)
Abstract
本发明属光谱测试,尤其涉及光谱仪分析样品编号智能输入。利用计算机软件技术智能生成样品编号,其特征在于建立了与WINOE光谱软件信息交流的通道;通过改变分析样品类型和强制归位,实现与WINOE软件同步。既实现样品编号智能输入光谱仪,又不影响光谱仪的正常运行。其优点是:样品编号输入简化,很少人工介入,样品编号就能自动生成,输入方便、快捷,不占检验周期;样品编号输入准确,还可以联网查询。
The invention belongs to spectrum testing, in particular to intelligent input of spectrometer analysis sample numbers. Using computer software technology to intelligently generate sample numbers, it is characterized by establishing a channel for information exchange with WINOE spectral software; by changing the type of analysis sample and forcing homing, it can be synchronized with WINOE software. It not only realizes the intelligent input of the sample number into the spectrometer, but also does not affect the normal operation of the spectrometer. Its advantages are: the sample number input is simplified, with little manual intervention, the sample number can be automatically generated, the input is convenient and fast, and does not occupy the inspection cycle; the sample number input is accurate, and it can also be queried online.
Description
技术领域technical field
本发明属光谱测试,尤其涉及光谱仪分析样品编号智能输入。The invention belongs to spectrum testing, in particular to intelligent input of spectrometer analysis sample numbers.
背景技术Background technique
随着冶金工业技术进步,钢铁生产节奏加快,冶炼周期越来越短,对产品检验周期提出了更高的要求,过去采用湿法分析远远不能满足生产要求,现有技术中,ARL光谱仪检验,检验周期一般为三分钟,可以满足生产的需求,但样品编号还是人工输入,其缺陷是键盘输入,操作繁琐,占用时间长;编号输入容易产生错误;并且,在分析期间不能输入第二个样品编号,更不能发现错误。With the advancement of metallurgical industry technology, the pace of iron and steel production is accelerating, and the smelting cycle is getting shorter and shorter, which puts forward higher requirements for the product inspection cycle. In the past, wet analysis was far from meeting the production requirements. In the existing technology, ARL spectrometer inspection , the inspection cycle is generally three minutes, which can meet the needs of production, but the sample number is still manually input, and its disadvantage is that the keyboard input is cumbersome and takes a long time; the number input is prone to errors; and the second cannot be entered during the analysis period. Sample number, more can not find mistakes.
发明内容Contents of the invention
为了克服现有技术存在的缺陷,本发明的目的是提供一种外部软件与光谱仪WINOE应用软件信息交流通道,提供两种软件的同步方法。外部软件可以依照生产实际智能生成样品编号、能及时发现样品编号错误等,通过信息交流通道自动输入光谱仪WINOE应用软件。In order to overcome the defects in the prior art, the object of the present invention is to provide an information communication channel between the external software and the WINOE application software of the spectrometer, and provide a method for synchronizing the two kinds of software. The external software can intelligently generate the sample number according to the actual production, and can detect the error of the sample number in time, etc., and automatically input the spectrometer WINOE application software through the information exchange channel.
光谱仪样品编号智能输入方法,利用计算机软件技术智能生成样品编号;其特点是建立了与WINOE光谱软件信息交流的通道;通过改变分析类型和强制归位,实现与WINOE光谱软件同步;The spectrometer sample number intelligent input method uses computer software technology to intelligently generate the sample number; its feature is to establish a channel for information exchange with the WINOE spectral software; by changing the analysis type and forced homing, it can be synchronized with the WINOE spectral software;
所述的与WIONE光谱软件信息交流的通道,是将记录型数据文件*.UCN看作一个二进制文件,并对其进行操作,实现与WINOE光谱软件信息交流,具体方法如下:改进记录型数据文件“*.UCN”,数据文件“*.UCN”94个字节“0”改为“1”,可以使WINOE光谱软件设置在预存样品编号方式,扩大“*.UCN”文件到所要求的长度;从“*.UCN”文件第442个字节开始,写入样品编号智能系统生成样品编号,每次写入440个字节;建立了外部软件与WIONE光谱软件信息交流通道。The channel for information exchange with WIONE spectrum software is to regard the record type data file *.UCN as a binary file and operate it to realize information exchange with WIONE spectrum software. The specific method is as follows: improve the record type data file "*.UCN", the data file "*.UCN" 94 bytes "0" is changed to "1", which can make the Winoe spectrum software set in the pre-stored sample number mode, and expand the "*.UCN" file to the required length ;Start from the 442th byte of the "*.UCN" file, write the sample number intelligent system to generate the sample number, write 440 bytes each time; establish an information exchange channel between external software and WIONE spectral software.
所述采用改变分析样品类型和强制归位,实现与WINOE光谱软件同步。改变分析样品类型,WINOE光谱软件自动调整记录指针,指向初始第三条样品编号记录,外部软件同步改变分析类型;当记录指针指向文件末尾时,提醒用户强制归位,退出样品分析任务,再次进入样品分析任务,让其强制记录指针指向初始第三条样品编号记录。上述二种方式都能实现与WINOE光谱软件同步,实现了样品编号智能输入,又不影响光谱仪的正常运行,使光谱仪成为一个样品编号智能输入系统。The adoption of changing the analysis sample type and forced homing realizes synchronization with WINOE spectrum software. When changing the analysis sample type, the Winoe spectrum software automatically adjusts the record pointer to point to the initial third sample number record, and the external software changes the analysis type synchronously; when the record pointer points to the end of the file, it reminds the user to return to the original position, exit the sample analysis task, and enter again For the sample analysis task, let the forced record pointer point to the initial third sample number record. The above two methods can be synchronized with the WINOE spectral software to realize the intelligent input of the sample number without affecting the normal operation of the spectrometer, making the spectrometer an intelligent input system for the sample number.
与现有技术的ARL光谱仪相比,其优点是样品编号输入简化,很少人工介入,无需按键盘,只需点击少于3次鼠标,样品编号就能自动生成,输入方便快速,不占用检验周期,更为重要的是可以避免输入错误,可以联网查询使检验结果正确、可靠。Compared with the ARL spectrometer of the prior art, the advantage is that the input of the sample number is simplified, there is little manual intervention, no need to press the keyboard, and the sample number can be automatically generated by clicking the mouse less than 3 times, the input is convenient and fast, and it does not occupy the inspection cycle, and more importantly, it can avoid input errors, and can query online to make the inspection results correct and reliable.
附图说明Description of drawings
下面结合附图对本发明做进一步说明Below in conjunction with accompanying drawing, the present invention will be further described
图1光谱仪样品编号智能输入流程图。Figure 1 Flowchart of intelligent input of spectrometer sample number.
图中“------”包围部分为光谱仪原有系统The part surrounded by "------" in the figure is the original system of the spectrometer
具体实施方式Detailed ways
运用计算机高级语言,进行外部软件设计,设计一个样品编号智能生成系统。首先,建立一个样品编号的记录型随机文件,用来保存过去已分析过的样品编号;其次,根椐实际生产中,有几个炼钢炉,就用几个变量来动态记录对应炉次最后一个样品的编号;第三,利用动态查询,随时生成任何炉次的最后一个样子的编号;第四,运用软件手段,对样品编号进行智能修改,做到生成新的样品编号,点击鼠标平均不超过三次;第五,实行化验室光谱仪联网,使已分析样品的信息实现共享,化验室内任何一台光谱仪上都可以查到已分析的样品编号,随时都可以了解每炉已经分析了多少个样子,避免错号,以纠正与化验室检验相关的其他生产单位试样编号错误。Using high-level computer language to design external software, design an intelligent generation system for sample number. First, create a record-type random file of sample numbers to save the sample numbers that have been analyzed in the past; secondly, according to the actual production, there are several steelmaking furnaces, and several variables are used to dynamically record the corresponding furnaces. Finally The number of a sample; third, use dynamic query to generate the number of the last shape of any furnace at any time; fourth, use software to intelligently modify the sample number, so as to generate a new sample number, and click the mouse on average. More than three times; fifth, implement laboratory spectrometer networking, so that the information of analyzed samples can be shared, and the analyzed sample number can be found on any spectrometer in the laboratory, and you can know how many samples have been analyzed in each furnace at any time , to avoid wrong numbers, to correct other production unit sample number errors related to laboratory testing.
建立与光谱应用软件通讯模式。由于光谱应用软件是封装过的,根本没有任何接口,常规手段是无能为力的。ARL光谱应用软件中未知样品分析任务的数据文件(*.UCN)是记录型随机文件.Establish communication mode with spectral application software. Since the spectrum application software is packaged without any interface at all, conventional means are helpless. The data file (*.UCN) of the unknown sample analysis task in the ARL spectral application software is a record-type random file.
从文件的组织结构剖析可知,样品编号的输入有两种方式:From the analysis of the organizational structure of the file, we can see that there are two ways to input the sample number:
1、完全靠手动输入样品编号;1. Completely rely on manual input of sample number;
2、使用预存样品编号方式。2. Use the pre-stored sample number method.
使用第一种方式时,WINOE光谱应用软件不使用数据文件的后半部分;使用第二种方式时,WINOE光谱应用软件才使用数据文件的后半部分,每次样品分析完成,立即把*.UCN文件读入内存,并且覆盖内存中原有的*.UCN文件,记录指针自动加一。本发明通过改变*.UCN文件中第94个字节的值,由“0”改为“1”,使ARL光谱应用软件使用第二种方式。When the first method is used, the Winoe spectrum application software does not use the second half of the data file; when the second method is used, the Winoe spectrum application software only uses the second half of the data file. After each sample analysis is completed, the *. The UCN file is read into the memory, and the original *.UCN file in the memory is overwritten, and the record pointer is automatically incremented by one. The present invention makes the ARL spectrum application software use the second mode by changing the value of the 94th byte in the *.UCN file from "0" to "1".
数据文件*.UCN本来是为日常标准化和校准曲线等几个固定样品准备的,数据文件*.UCN大小一般是固定的,只能容纳十个样品编号,而且一定要预先设置好。每个样品编号占220个字节,一个样品编号的每个输入框占13个字节,而第一个输入框的第一个字符必须是67,其他输入框的第一个字符必须是0,本发明对数据文件*.UCN进行改造。扩大数据文件*.UCN的长度,使它能容纳小于N个样品编号(N是该计算机所代表的最大整数),在文件*.UCN的(N×220-1)字节写一个二进制字符,使成为一个样品编号的容器;由智能生成系统生成的样品编号,顺序存放到这个容器中。关键在于,尽管“*.UCN”是记录型随机文件,但应视作二进制文件,从文件初始第三条记录开始依次填入样品编号。使数据文件*.UCN改造成信息交流的场所。The data file *.UCN is originally prepared for several fixed samples such as daily standardization and calibration curves. The size of the data file *.UCN is generally fixed and can only accommodate ten sample numbers, and it must be set in advance. Each sample number occupies 220 bytes, and each input box of a sample number occupies 13 bytes, and the first character of the first input box must be 67, and the first character of other input boxes must be 0 , the present invention transforms the data file *.UCN. Expand the length of the data file *.UCN so that it can hold less than N sample numbers (N is the largest integer represented by the computer), write a binary character in the (N×220-1) byte of the file *.UCN, Make it a sample number container; the sample numbers generated by the intelligent generation system are sequentially stored in this container. The key point is that although "*.UCN" is a record-type random file, it should be regarded as a binary file, and the sample number is filled in order from the third record in the file. Transform the data file *.UCN into a place for information exchange.
通道程序如下:The channel procedure is as follows:
Open Filel.FileName For Binary As 3Open Filel.FileName For Binary As 3
Put#3,442+k0*220,67Put#3, 442+k0*220, 67
Put#3,451+k0*220,0Put#3, 451+k0*220, 0
Put#3,455+k0*220,0Put#3, 455+k0*220, 0
Put#3,456+k0*220,t0.yrPut#3, 456+k0*220, t0.yr
Put#3,459+k0*220,0Put#3, 459+k0*220, 0
Put#3,468+k0*220,0Put#3, 468+k0*220, 0
Put#3,469+k0*220,t0.ycPut#3, 469+k0*220, t0.yc
Put#3,471+k0*220,0Put#3, 471+k0*220, 0
Put#3,481+k0*220,0Put#3, 481+k0*220, 0
Put#3,482+k0*220,t0.ghPut#3, 482+k0*220, t0.gh
Put#3,487+k0*220,0Put#3, 487+k0*220, 0
Put#3,494+k0*220,0Put#3, 494+k0*220, 0
k0=k0+1k0=k0+1
Close#3close#3
(注:t0为样品编号的记录型变量,k0为记录指针)(Note: t0 is the record variable of the sample number, k0 is the record pointer)
解决与WINOE光谱软件同步问题,光谱进行某一类型未知样品分析时,记录指针初始指向第三条样品编号记录,分析完一个样品,记录指针自动加一。光谱软件首次进行未知样品分析时,读数据文件*.UCN,并且记下文件长度,不再改变。本发明采用两种方式实现与WINOE光谱软件同步:第一种是改变分析样品的类型(比如:钢样切换成铁样),一旦改变分析样品的类型,光谱软件自动调整记录指针,指向初始样品编号记录,在本发明中,也同步更换分析类型,从初始记录开始存放;第二种是强制归位,当记录指针指向文件尾时,退出未知样品分析任务,再次进入未知样品分析任务,记录指针指向初始样品编号记录,本发明自动记录存放样品编号记录个数,当达到设定记录个数,提醒用户强制归位,自动调整记录指针为初始记录。To solve the synchronization problem with the Winoe spectrum software, when the spectrum is analyzing a certain type of unknown sample, the record pointer initially points to the third sample number record, and after analyzing a sample, the record pointer is automatically incremented by one. When the spectrum software analyzes an unknown sample for the first time, it reads the data file *.UCN, and records the length of the file, which will not be changed. The present invention adopts two ways to achieve synchronization with the Winoe spectrum software: the first is to change the type of analysis sample (for example: steel sample is switched to iron sample), once the type of analysis sample is changed, the spectrum software automatically adjusts the record pointer to point to the initial sample Numbered records, in the present invention, also change the analysis type synchronously, and store from the initial record; The pointer points to the initial sample number record, and the invention automatically records and stores the number of sample number records. When the set number of records is reached, the user is reminded to return to the original position, and the record pointer is automatically adjusted to the initial record.
Claims (1)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200410103092A CN1801165B (en) | 2004-12-31 | 2004-12-31 | Spectrometer sample number intelligent input method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN200410103092A CN1801165B (en) | 2004-12-31 | 2004-12-31 | Spectrometer sample number intelligent input method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN1801165A CN1801165A (en) | 2006-07-12 |
| CN1801165B true CN1801165B (en) | 2010-05-12 |
Family
ID=36811165
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN200410103092A Expired - Lifetime CN1801165B (en) | 2004-12-31 | 2004-12-31 | Spectrometer sample number intelligent input method |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN1801165B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1541837A (en) * | 2003-04-30 | 2004-11-03 | 伊藤照明 | Numbering device for specimen holders |
| CN1555023A (en) * | 2003-12-29 | 2004-12-15 | 大庆油田有限责任公司 | Processing method for rock core sample |
-
2004
- 2004-12-31 CN CN200410103092A patent/CN1801165B/en not_active Expired - Lifetime
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1541837A (en) * | 2003-04-30 | 2004-11-03 | 伊藤照明 | Numbering device for specimen holders |
| CN1555023A (en) * | 2003-12-29 | 2004-12-15 | 大庆油田有限责任公司 | Processing method for rock core sample |
Also Published As
| Publication number | Publication date |
|---|---|
| CN1801165A (en) | 2006-07-12 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN102760118B (en) | Method and device for exporting data as Excel file | |
| BR112016009938B1 (en) | INK AND DRAWING DATA GENERATION METHODS FOR IMAGE DATA RENDERING | |
| CN113010359A (en) | Bus test system generation method, system, device and storage medium | |
| CN106777177A (en) | Search method and device | |
| WO2008137018A4 (en) | Methods and apparatuses for preprocessing a cad drawing | |
| WO2024124843A1 (en) | Data processing method and apparatus, and device and readable storage medium | |
| CN108663555B (en) | Waveform searching method of digital oscilloscope and digital oscilloscope | |
| CN1801165B (en) | Spectrometer sample number intelligent input method | |
| CN101131401B (en) | Digital oscillograph and its display method | |
| CN107766256A (en) | A kind of method for transformation and system of software unit testing use-case | |
| CN108897794B (en) | Synchronization method, device, storage medium and electronic device for data table without primary key | |
| JPH06103048A (en) | Program development supporting system | |
| CN115495386A (en) | Method and system based on test case multi-format conversion and automatic process management | |
| WO2022033148A1 (en) | Method for generating data visualization hand-drawn video | |
| CN108156230B (en) | Real-time data synchronization method, system and framework | |
| CN102053188B (en) | Digital oscilloscope with label display function and control method thereof | |
| CN107478884B (en) | A kind of method and oscillograph of quick display waveform search result | |
| CN110764853B (en) | Web interface display method between multiple electronic medical records and single document defects | |
| CN103218350A (en) | Electronic device used for changing file name and method for changing file name | |
| CN113919880B (en) | Market operation simulation case comparison analysis method, system, equipment and storage medium | |
| EP3598277A2 (en) | Electronic whiteboard, electronic whiteboard system and control method thereof | |
| CN115580662B (en) | Interface dynamic adaptation method and device in non-falling state | |
| AU2022204492B2 (en) | Systems and methods for compressing vector graphics | |
| CN108460222A (en) | A kind of Product Acceptance Review size requirement definition system and method based on three-dimensional labeling | |
| CN113971129B (en) | Use case generation method, device, equipment and storage medium |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20060712 Assignee: MAANSHAN MA STEEL HUAYANG EQUIPMENT DIAGNOSTICS ENGINEERING CO.,LTD. Assignor: MAANSHAN IRON & STEEL Co.,Ltd. Contract record no.: 2012340000260 Denomination of invention: Intelligent method for inputting sample number into spectrum Granted publication date: 20100512 License type: Exclusive License Record date: 20120723 |
|
| CX01 | Expiry of patent term |
Granted publication date: 20100512 |
|
| CX01 | Expiry of patent term |