LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read/write from Access database

Hi everybody
I need a little help for doing what I wrote in the topic!
I use LabVIEW 6i student edition, do Ireally need to install the Database
connectivity toolkit?
Message 1 of 11
(31,650 Views)
Hi Vicio,

There are a couple of different methods to communicate with Access in LabVIEW, and some are more difficult than others. You can use ActiveX Automation to open Microsoft Access and control many aspects of the Access Application. For actual database manipulation however, the Access automation classes rely upon the Microsoft DAO (Data Access Object) and/or ADO (ActiveX Data Object) classes. These classes can be used independently or through the Access automation classes to read and write data into an Access database. These classes can be difficult to use and may require a fair amount of SQL knowledge to accomplish a complicated task. Attached is a very simple example of how you can use DAO from the Access automation classes to read an Access table.

For more information about the Microsoft Access automation classes, DAO or ADO classes refer to the Microsoft website and Developer Network:
MSDN


It is also possible to use Dynamic Data Exchange (DDE) communication between LabVIEW and Access. DDE is a Microsoft technology that preceded COM and ActiveX. DDE is NOT recommended as it is considered by most to be obsolete. However, examples still ship with LabVIEW that demonstrate how to communicate with MS Access using DDE. The examples are located in ..\LabVIEW\examples\comm\access.llb

Note: The LabVIEW Database Connectivity Toolset is the preferred method of database communication with LabVIEW. The LabVIEW Database Connectivity Toolset offers many powerful tools and extended capabilites for quickly accessing databases. The LabVIEW Database Connectivity Toolset offers connectivity to most popular databases through Microsoft ADO technology, complete SQL Functionality, and the ability to save records in XML format. It provides both easy-to-use and advanced functions to allow common database operations as well as detailed database accessibility. The LabVIEW Database Connectivity Toolset is sold separately or in the LabVIEW Enterprise Connectivity Toolset along with the LabVIEW Statistical Process Toolkit and the LabVIEW Internet Developers Toolkit.

Sincerely,
Feroz
National Instruments
Message 2 of 11
(31,650 Views)
It would certainly make things easier but I'm not sure that NI still sells a version for 6i. You can try using ActiveX. If you search the forum for Access, you can find some examples. If you know SQL (or want to learn), there is LabSQL from Jeffrey Travis. It is a set of VIs that call ADO functions and I've used them with great success.
0 Kudos
Message 3 of 11
(31,650 Views)
"Dennis Knutson" ha scritto nel messaggio
news:5065000000050000007A900100-1079395200000@exchange.ni.com...
> It would certainly make things easier but I'm not sure that NI still
> sells a version for 6i. You can try using ActiveX. If you search the
> forum for Access, you can find some examples. If you know SQL (or want
> to learn), there is
> href="http://jeffreytravis.com/lost/labsql.html">LabSQL
from
> Jeffrey Travis. It is a set of VIs that call ADO functions and I've
> used them with great success.

Thank you very much!
0 Kudos
Message 4 of 11
(31,650 Views)

Hi,

 

     This VI works to conect a mysql database too ?

 

 

Thx

 

 

0 Kudos
Message 5 of 11
(27,549 Views)
If you are talking about either the database toolkit or LabSQL, the answer is yes.
0 Kudos
Message 6 of 11
(27,545 Views)

hello all,

             how about DIAdem??i donjt know much about databases, but i saw that u can capture the data, store it, search for it, 

almost like a database?

 

please do criticize me if i am wrong... 

Now on LabVIEW 10.0 on Win7
Message 7 of 11
(25,375 Views)

please find the attached text file

i want to open tthis text file read this file...between the delimiters ### ..and the END ... i want to save the data
in a database table... in excel or sql...  like forexample the following data will be saved in the table as


abcxxx123; name:john adress:abc123 weight:65kg phn-no:123123


customerid. |  customername|   address| weight |  phn-no
--------------------------------------------------​------------------------------
abcxxx123   |  john               |  abc123  | 65kg   | 123123 

0 Kudos
Message 8 of 11
(23,531 Views)

@bro4 wrote:

please find the attached text file

i want to open tthis text file read this file...between the delimiters ### ..and the END ... i want to save the data
in a database table... in excel or sql...  like forexample the following data will be saved in the table as


abcxxx123; name:john adress:abc123 weight:65kg phn-no:123123


customerid. |  customername|   address| weight |  phn-no
--------------------------------------------------​------------------------------
abcxxx123   |  john               |  abc123  | 65kg   | 123123 


 

Do not hijack someone else's thread.

 

You've already asked this question in your own thread. http://forums.ni.com/t5/LabVIEW/reading-data-from-text-file-and-saving-it-in-a-database-table/m-p/18...

0 Kudos
Message 9 of 11
(23,521 Views)

你好,这个是可以查询的,但是无法删除

0 Kudos
Message 10 of 11
(22,914 Views)