LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to create a database using LabView?

Hy
I have to do a project in which i have to create a database with the situation of the students (name,age...) using ONLY LabView.I need to enter tha students using labview, to save the database using labview.... I have to figure it out how to do this, but .... no idea. Also i have to make a search in that database. If you can help me, i apreciate that or if you know a link on the web about something like this
Thanks,
Lorant

Message 1 of 6
(9,572 Views)
Just one little hint - a simple text file is also a type of database.
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 2 of 6
(9,566 Views)
An XML file can also be treated as a database. It will provide with a little more structure than a simple text file, though you can use the configuration file format to make a simple database using text files. If you want to try the XML route, I would suggest trying LabXML. If you're on Windows they have an MSXML toolkit that works with Microsoft's XML parser. There's a fully functional database example with the toolkit that you can adapt to your needs. Plus, it's free.
0 Kudos
Message 3 of 6
(9,560 Views)
If you want to use a traditional database, you would be best off using the Database Connectivity Toolkit which comes with LabVIEW Professional.
 
This toolkit contains VIs to read from and write to a database.  It also ships with lots of examples showing you how to do this.
 
-Justin Davis
0 Kudos
Message 4 of 6
(9,520 Views)
Or, if you want a free solution for a traditional database, you can use LabSQL. Smiley Wink
0 Kudos
Message 5 of 6
(9,515 Views)
Labview configuration files are very easy to use and can hold any type of information you wish.  There are functions in the File palette ready to use for configuration files.  A configuration file is similar to a registry entry.  You can have sections and keys.  So you can create a section called "Data1" and keys called "Name", "Age", etc.  Create the same for a new section called "Data2", and so on.  The functions are useful for writing the config file and reading from the file.  To read a certain piece of data, just supply the section name and the key name.  So you could ask for section "Data20", key "Name", and you would get the 20th name in the database (config file).  This way you don't have to write code to search the database for certain items, the functions do it for you and they are already written.  Look into config files.  They are very easy to use, very useful, and very underused even by the most experienced LV programmer.
- tbob

Inventor of the WORM Global
0 Kudos
Message 6 of 6
(9,507 Views)