01-14-2009 01:04 PM
For my thesis I have a test stand that measures some values and now i have to get them into a database each couple of seconds (if it is possible and not to difficult into MS Access or a textfile coupled to MS Access). The extra problem is that I must be able to run the database while the data is logging. Can somebody help me with this problem please, it's quiet urgent and I am not to familiar with LabView.
Solved! Go to Solution.
01-14-2009
02:17 PM
- last edited on
04-06-2025
06:42 PM
by
Content Cleaner
01-14-2009
02:18 PM
- last edited on
04-06-2025
06:42 PM
by
Content Cleaner
You have a couple of options. You can get the Datebase Connectivity Toolkit from NI. This is based on ADO technology from Microsoft and hides some of the complexity of reading and writing to a db. There is LabSQL from Jeffrey Travis. This is also based on ADO and does not cost anything but you would have to become familiar with SQL. This happens to be what I use with LabVIEW.
Both of them come with examples and both have had numerous postings that you could refer to.
01-15-2009 12:11 PM
I just downloades labsql, but I don't understand the working exactly. How do I select the document it has to be saved in and what do I have to fill in in the connection string?
01-15-2009 12:31 PM - edited 01-15-2009 12:31 PM
This site will tell you what your connection string should be. I'm not sure what your first question means...
Post what you have so far.
01-19-2009 10:56 AM
Thanx for your help, I now can make connection and save values in acces but only when I am using a statement like this: INSERT INTO myOtherTable
(Location, Temp, Humidity) VALUES ('Austin', 102, 95);
Is it possible to send measured values to access in stead of values you have to fill in manually like in the example above? If it is possible without converting the values to a string because i have to use the numeric values for further processing.
I hope you can also help me with this problem
01-19-2009 11:06 AM - edited 01-19-2009 11:07 AM
You can use the Format Into String function. This is one of the basic LabVIEW functions that you should be familiar with. With your existing insert and with the example I posted, you are not inserting strings into the table. With SQL, a string is surrounded by the ' mark. Just like you have around Austin.
01-23-2009 06:25 AM