CN107644156A - L-abiview-based permission login method and system - Google Patents
L-abiview-based permission login method and system Download PDFInfo
- Publication number
- CN107644156A CN107644156A CN201710818014.8A CN201710818014A CN107644156A CN 107644156 A CN107644156 A CN 107644156A CN 201710818014 A CN201710818014 A CN 201710818014A CN 107644156 A CN107644156 A CN 107644156A
- Authority
- CN
- China
- Prior art keywords
- labview
- item
- matching
- user
- dimensional array
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Landscapes
- Document Processing Apparatus (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明公开了一种基于Labview的权限登录方法,包括:新建一个txt文档,并将文档记录的关键信息列为匹配项;基于Labview新建一个VI程序读取上述txt文档并将其转化为二维数组;接收用户输入的信息,并将上述信息作为待匹配项,套用Labview的循环程序以及if‑else判断程序将待匹配项与二维数组中的匹配项进行匹配,并根据匹配成功的关键信息的个数为用户分配不同权限。本发明首先将关键信息记录至txt文档中,然后利用Labview软件功能将txt文档转换为二维数组,方便之后的信息匹配操作,再基于Labview软件功能对二维数组中的关键信息和用户输入的信息进行匹配,最后根据匹配结果为用户分配权限,不仅提高了权限分配的针对性,而且保证了用户身份验证的安全性。
The invention discloses a permission login method based on Labview, comprising: creating a txt file, and listing the key information recorded in the file as matching items; creating a VI program based on Labview to read the above txt file and convert it into a two-dimensional Array; receive the information input by the user, and use the above information as the item to be matched, apply the loop program of Labview and the if-else judgment program to match the item to be matched with the matching item in the two-dimensional array, and according to the key information of successful matching The number of different permissions assigned to the user. The present invention first records the key information into a txt file, and then uses the Labview software function to convert the txt file into a two-dimensional array, which facilitates subsequent information matching operations, and then based on the Labview software function, the key information in the two-dimensional array and the user input Match the information, and finally assign permissions to users according to the matching results, which not only improves the pertinence of permission assignment, but also ensures the security of user identity verification.
Description
技术领域technical field
本发明涉及密码登录技术领域,尤其涉及一种基于Labview的权限登录方法及系统。The invention relates to the technical field of password login, in particular to a Labview-based permission login method and system.
背景技术Background technique
Labview是一种程序开发环境,由美国国家仪器(NI)公司研制开发,与其他计算机语言的显著区别是使用图形化编辑语言G编写程序,产生的程序是框图的形式,Labview软件是NI设计平台的核心,也是开发测量或控制系统的理想选择。Labview is a program development environment developed by National Instruments (NI). The significant difference from other computer languages is that the program is written using the graphical editing language G, and the generated program is in the form of a block diagram. Labview software is a NI design platform. core and ideal for developing measurement or control systems.
常见的密码登录方式中,密码信息多是存储在专业是数据库工具中,对开发者数据库的知识储备要求较高,且使用不方便,编辑代码繁琐,降低了程序使用的便利性和便于理解性。In the common password login method, the password information is mostly stored in professional database tools, which requires a high knowledge reserve of the developer database, and is inconvenient to use, and editing code is cumbersome, which reduces the convenience and understandability of the program .
随着测试技术的发展,Labview的应用越来越受到工程师的欢迎,如何用最简单的方式获得最实用的密码保护效果显得愈发重要。With the development of testing technology, the application of Labview is becoming more and more popular among engineers, and how to obtain the most practical password protection effect in the simplest way is becoming more and more important.
发明内容Contents of the invention
基于背景技术存在的技术问题,本发明提出了一种基于Labview的权限登录方法及系统。Based on the technical problems existing in the background technology, the present invention proposes a Labview-based permission login method and system.
本发明提出的基于Labview的权限登录方法,包括以下步骤:The permission login method based on Labview that the present invention proposes comprises the following steps:
S1、新建一个txt文档,并将文档记录的关键信息列为匹配项;S1. Create a new txt document, and list the key information recorded in the document as a matching item;
S2、基于Labview新建一个VI程序读取上述txt文档并将其转化为二维数组;S2, create a new VI program based on Labview to read the above txt file and convert it into a two-dimensional array;
S3、接收用户输入的信息,并将上述信息作为待匹配项,套用Labview的循环程序以及if-else判断程序将待匹配项与二维数组中的匹配项进行匹配,并根据匹配成功的关键信息的个数为用户分配不同权限。S3. Receive the information input by the user, and use the above information as the item to be matched, apply the loop program of Labview and the if-else judgment program to match the item to be matched with the matching item in the two-dimensional array, and according to the key information of successful matching The number of different permissions assigned to the user.
优选地,步骤S1中,所述文档记录的关键信息包括:用户名、密码、职位。Preferably, in step S1, the key information recorded in the document includes: user name, password, position.
优选地,步骤S3具体包括:Preferably, step S3 specifically includes:
将待匹配项与二维数组的行、列中的匹配项进行匹配,并记录匹配成功的匹配项的个数,并根据上述个数为用户分配不同权限。Match the item to be matched with the matching item in the row and column of the two-dimensional array, and record the number of matching items that are successfully matched, and assign different permissions to the user according to the above number.
本发明提出的基于Labview的权限登录系统,包括:The permission login system based on Labview that the present invention proposes comprises:
文档建立模块,用于新建一个txt文档,并将文档记录的关键信息列为匹配项;The document creation module is used to create a new txt document and list the key information recorded in the document as matching items;
数组转化模块,用于基于Labview新建一个VI程序读取上述txt文档并将其转化为二维数组;The array conversion module is used to create a new VI program based on Labview to read the above txt file and convert it into a two-dimensional array;
权限分配模块,用于接收用户输入的信息,并将上述信息作为待匹配项,套用Labview的循环程序以及if-else判断程序将待匹配项与二维数组中的匹配项进行匹配,并根据匹配成功的关键信息的个数为用户分配不同权限。The authority distribution module is used to receive the information input by the user, and use the above information as the item to be matched, apply the loop program of Labview and the if-else judgment program to match the item to be matched with the matching item in the two-dimensional array, and according to the matching The number of successful key information assigns different permissions to users.
优选地,文档建立模块中,所述文档记录的关键信息包括:用户名、密码、职位。Preferably, in the document creation module, the key information recorded in the document includes: user name, password, and position.
优选地,权限分配模块具体用于:Preferably, the authority assignment module is specifically used for:
将待匹配项与二维数组的行、列中的匹配项进行匹配,并记录匹配成功的匹配项的个数,并根据上述个数为用户分配不同权限。Match the item to be matched with the matching item in the row and column of the two-dimensional array, and record the number of matching items that are successfully matched, and assign different permissions to the user according to the above number.
本发明首先将关键信息记录至txt文档中,然后利用Labview软件功能将txt文档转换为二维数组,方便之后的信息匹配操作,再基于Labview软件功能对二维数组中的关键信息和用户输入的信息进行匹配,最后根据匹配结果为用户分配权限,不仅提高了权限分配的针对性,而且保证了用户身份验证的安全性。本发明除了Labview软件外不需要安装其它软件,也避开了数据库、代码等原始复杂的流程,利用txt文件即可实现预期效果,可以随时方便地更改信息,且本方法对使用者及使用设备的要求均有所降低,更加方便了用户的使用过程。The present invention first records the key information into a txt file, and then uses the Labview software function to convert the txt file into a two-dimensional array, which facilitates subsequent information matching operations, and then based on the Labview software function, the key information in the two-dimensional array and the user input Match the information, and finally assign permissions to users according to the matching results, which not only improves the pertinence of permission assignment, but also ensures the security of user identity verification. In addition to the Labview software, the present invention does not need to install other software, and also avoids original and complicated processes such as databases and codes. The expected effect can be achieved by using txt files, and information can be easily changed at any time, and this method is beneficial to users and equipment. The requirements have been reduced, which is more convenient for users to use.
附图说明Description of drawings
图1为一种基于Labview的权限登录方法的步骤示意图;Fig. 1 is a schematic diagram of the steps of a Labview-based permission login method;
图2为一种基于Labview的权限登录系统的结构示意图。Fig. 2 is a schematic structural diagram of a permission login system based on Labview.
具体实施方式detailed description
如图1、图2所示,图1、图2为本发明提出的一种基于Labview的权限登录方法及系统。As shown in Fig. 1 and Fig. 2, Fig. 1 and Fig. 2 are a Labview-based authority login method and system proposed by the present invention.
参照图1,本发明提出的一种基于Labview的权限登录方法,包括以下步骤:With reference to Fig. 1, a kind of permission login method based on Labview that the present invention proposes, comprises the following steps:
S1、新建一个txt文档,并将文档记录的关键信息列为匹配项;S1. Create a new txt document, and list the key information recorded in the document as a matching item;
本实施方式中,所述文档记录的关键信息包括:用户名、密码、职位;通过对上述基本信息进行记录,能够为在验证用户的身份和权限时提供验证基础,保证上述验证过程的针对性和安全性。In this embodiment, the key information recorded in the document includes: user name, password, and position; by recording the above-mentioned basic information, it can provide a verification basis for verifying the user's identity and authority, and ensure the pertinence of the above-mentioned verification process and security.
进一步地,所述文档记录的关键信息还可根据用户的实际使用需求进行自定义设置,以根据用户的实际使用场景和环境进行针对性的切换,从而提高本方法的使用范围和使用效果。Further, the key information recorded in the document can also be customized according to the user's actual use requirements, so as to perform targeted switching according to the user's actual use scenarios and environments, thereby improving the scope and effect of the method.
S2、基于Labview新建一个VI程序读取上述txt文档并将其转化为二维数组;其中,二维数组的行、列信息根据txt文档中记录的关键信息进行排列。S2. Create a VI program based on Labview to read the above txt file and convert it into a two-dimensional array; wherein, the row and column information of the two-dimensional array is arranged according to the key information recorded in the txt file.
S3、接收用户输入的信息,并将上述信息作为待匹配项,套用Labview的循环程序以及if-else判断程序将待匹配项与二维数组中的匹配项进行匹配,并根据匹配成功的关键信息的个数为用户分配不同权限。S3. Receive the information input by the user, and use the above information as the item to be matched, apply the loop program of Labview and the if-else judgment program to match the item to be matched with the matching item in the two-dimensional array, and according to the key information of successful matching The number of different permissions assigned to the user.
本实施方式中,步骤S3具体包括:In this embodiment, step S3 specifically includes:
将待匹配项与二维数组的行、列中的匹配项进行匹配,并记录匹配成功的匹配项的个数,并根据上述个数为用户分配不同权限;以根据用户输入的信息来判断用户的不同身份,进而根据用户的不同身份为用户分配不同的权限,保证对用户身份验证的安全性,同时,通过对用户的身份判断并为其分配不同的权限,保证了权限分配的规范性和针对性,同时简化了用户的身份验证过程,提高了用户的使用体验感。Match the items to be matched with the matching items in the rows and columns of the two-dimensional array, and record the number of successfully matched items, and assign different permissions to the user according to the above number; to judge the user based on the information entered by the user different identities, and then assign different permissions to users according to their different identities to ensure the security of user identity verification. Pertinence, while simplifying the user's authentication process and improving the user's experience.
参照图2,图2为本发明提出的一种基于Labview的权限登录系统,包括:With reference to Fig. 2, Fig. 2 is a kind of permission login system based on Labview that the present invention proposes, including:
文档建立模块,用于新建一个txt文档,并将文档记录的关键信息列为匹配项;The document creation module is used to create a new txt document and list the key information recorded in the document as matching items;
本实施方式中,文档建立模块中,所述文档记录的关键信息包括:用户名、密码、职位;通过对上述基本信息进行记录,能够为在验证用户的身份和权限时提供验证基础,保证上述验证过程的针对性和安全性。In this embodiment, in the document creation module, the key information recorded in the document includes: user name, password, and position; by recording the above-mentioned basic information, it can provide a verification basis for verifying the user's identity and authority, and ensure the above-mentioned Pertinence and security of the verification process.
进一步地,所述文档记录的关键信息还可根据用户的实际使用需求进行自定义设置,以根据用户的实际使用场景和环境进行针对性的切换,从而提高本方法的使用范围和使用效果。Further, the key information recorded in the document can also be customized according to the user's actual use requirements, so as to perform targeted switching according to the user's actual use scenarios and environments, thereby improving the scope and effect of the method.
数组转化模块,用于基于Labview新建一个VI程序读取上述txt文档并将其转化为二维数组;其中,二维数组的行、列信息根据txt文档中记录的关键信息进行排列。The array conversion module is used to create a VI program based on Labview to read the above txt file and convert it into a two-dimensional array; wherein, the row and column information of the two-dimensional array is arranged according to the key information recorded in the txt file.
权限分配模块,用于接收用户输入的信息,并将上述信息作为待匹配项,套用Labview的循环程序以及if-else判断程序将待匹配项与二维数组中的匹配项进行匹配,并根据匹配成功的关键信息的个数为用户分配不同权限。The authority distribution module is used to receive the information input by the user, and use the above information as the item to be matched, apply the loop program of Labview and the if-else judgment program to match the item to be matched with the matching item in the two-dimensional array, and according to the matching The number of successful key information assigns different permissions to users.
本实施方式中,权限分配模块具体用于:In this embodiment, the authority allocation module is specifically used for:
将待匹配项与二维数组的行、列中的匹配项进行匹配,并记录匹配成功的匹配项的个数,并根据上述个数为用户分配不同权限;以根据用户输入的信息来判断用户的不同身份,进而根据用户的不同身份为用户分配不同的权限,保证对用户身份验证的安全性,同时,通过对用户的身份判断并为其分配不同的权限,保证了权限分配的规范性和针对性,同时简化了用户的身份验证过程,提高了用户的使用体验感。Match the items to be matched with the matching items in the rows and columns of the two-dimensional array, and record the number of successfully matched items, and assign different permissions to the user according to the above number; to judge the user based on the information entered by the user different identities, and then assign different permissions to users according to their different identities to ensure the security of user identity verification. Pertinence, while simplifying the user's authentication process and improving the user's experience.
本实施方式首先将关键信息记录至txt文档中,然后利用Labview软件功能将txt文档转换为二维数组,方便之后的信息匹配操作,再基于Labview软件功能对二维数组中的关键信息和用户输入的信息进行匹配,最后根据匹配结果为用户分配权限,不仅提高了权限分配的针对性,而且保证了用户身份验证的安全性。本实施方式除了Labview软件外不需要安装其它软件,也避开了数据库、代码等原始复杂的流程,利用txt文件即可实现预期效果,可以随时方便地更改信息,且本方法对使用者及使用设备的要求均有所降低,更加方便了用户的使用过程。In this embodiment, the key information is first recorded in a txt file, and then the txt file is converted into a two-dimensional array using the Labview software function to facilitate subsequent information matching operations, and then the key information in the two-dimensional array and the user input are based on the Labview software function. According to the matching information, users are assigned permissions according to the matching results, which not only improves the pertinence of permission allocation, but also ensures the security of user identity verification. In addition to the Labview software, this embodiment does not need to install other software, and also avoids the original and complicated processes such as databases and codes. The expected effect can be achieved by using txt files, and information can be easily changed at any time. The requirements of the equipment are all reduced, which is more convenient for the user to use.
以上所述,仅为本发明较佳的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,根据本发明的技术方案及其发明构思加以等同替换或改变,都应涵盖在本发明的保护范围之内。The above is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto, any person familiar with the technical field within the technical scope disclosed in the present invention, according to the technical solution of the present invention Any equivalent replacement or change of the inventive concepts thereof shall fall within the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710818014.8A CN107644156A (en) | 2017-09-12 | 2017-09-12 | L-abiview-based permission login method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710818014.8A CN107644156A (en) | 2017-09-12 | 2017-09-12 | L-abiview-based permission login method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107644156A true CN107644156A (en) | 2018-01-30 |
Family
ID=61111204
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710818014.8A Pending CN107644156A (en) | 2017-09-12 | 2017-09-12 | L-abiview-based permission login method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107644156A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5991537A (en) * | 1997-09-16 | 1999-11-23 | The United States Of America As Represented By The Secretary Of The Navy | VXI test executive |
CN101605247A (en) * | 2009-07-11 | 2009-12-16 | 大连交通大学 | Network Video Monitoring System Based on Virtual Instrument |
CN102777370A (en) * | 2012-01-11 | 2012-11-14 | 福州大学 | Realization method of LabVIEW-based high-pressure pump performance testing system |
-
2017
- 2017-09-12 CN CN201710818014.8A patent/CN107644156A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5991537A (en) * | 1997-09-16 | 1999-11-23 | The United States Of America As Represented By The Secretary Of The Navy | VXI test executive |
CN101605247A (en) * | 2009-07-11 | 2009-12-16 | 大连交通大学 | Network Video Monitoring System Based on Virtual Instrument |
CN102777370A (en) * | 2012-01-11 | 2012-11-14 | 福州大学 | Realization method of LabVIEW-based high-pressure pump performance testing system |
Non-Patent Citations (2)
Title |
---|
孙秋野 等: "《LabVIEW 8.5 快速入门与提高》", 31 May 2009, 西安交通大学出版社 * |
罗军涛: "适用于微电网的谐波治理装置监控系统设计与实现", 《中国优秀硕士学位论文全文数据库 工程科技Ⅱ辑》 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110727954B (en) | Data authorization desensitization automation method, device and storage medium | |
US11080423B1 (en) | System for simulating a de-identified healthcare data set and creating simulated personal data while retaining profile of authentic data | |
CN105408912B (en) | Handle certification and resource grant | |
CN106295388B (en) | A kind of data desensitization method and device | |
CN100590634C (en) | Method and apparatus for authenticating a user | |
CN113742776B (en) | Data verification method and device based on biological recognition technology and computer equipment | |
KR20140048879A (en) | Secure data storage | |
WO2016060547A1 (en) | Emulating manual system of filing using electronic document and electronic file | |
CN103250163A (en) | Computer-readable storage mediums for encrypting and decrypting a virtual disc | |
WO2020015191A1 (en) | Business rule releasing and managing method, electronic device and readable storage medium | |
CN103368765A (en) | Management system permission adding method and device | |
CN112463599B (en) | Automated testing method, apparatus, computer device and storage medium | |
US11509467B2 (en) | Story assisted mnemonic phrase | |
WO2013011730A1 (en) | Device and method for processing document | |
CN105069366B (en) | A kind of Account Logon and management method and device | |
CN112463149A (en) | Software-defined satellite-oriented reusable code library construction method and device | |
JP2020197873A (en) | Information processing system and method for controlling information processing system | |
CN107239691B (en) | The method, apparatus and system that the external device that access calculates equipment is controlled | |
CN107644156A (en) | L-abiview-based permission login method and system | |
CN105700866B (en) | RTE code generation method and execution device thereof | |
CN103902627A (en) | Data release method and device | |
CN104331827B (en) | Transaction configuration generating method and deals match device | |
JP2015082206A (en) | Screen generation device, authentication system, and program | |
CN112416983B (en) | Data processing method and device and computer readable storage medium | |
KR102311710B1 (en) | Key Generating Apparatus and Method for Combining de-Identification Data Set |
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: 20180130 |
|
RJ01 | Rejection of invention patent application after publication |