05-12-2008 03:35 AM
05-13-2008
05:09 PM
- last edited on
04-06-2025
06:40 PM
by
Content Cleaner
Hi,
The recommended way to access MS Access or any database is to use the Database Connectivity Toolkit. The toolkit is recommended because it is fast and very easy to use.
If you don't have the Database Connectivity Toolkit, you can use ActiveX to access it by using Automation Open. This can be found by going to function palette >> Connectivity >> Automation Open. Once you have that on your block diagram, right click on it highlight select class, choose ActiveX, select browse. On the drop down menu, select either Microsoft ADO (ActiveX Data Object) or Microsoft DAO (Data Access Object). Both of them can be used to access the database. Once all that is set up, right click on the automation reference input and create a control.
There are examples that ship with LabVIEW called Retrieving Data from Access and Sending Data to Access. Both these examples use DDE and not ActiveX.
There is an example on this discussion forum that uses ActiveX to access the database.
I also found a number of other examples scattered through the discussion forums. I recommded that you search through them as well.
05-15-2008 10:17 PM
05-16-2008
07:27 PM
- last edited on
04-06-2025
06:41 PM
by
Content Cleaner
Hi,
There is a possibility that you are not writing the array to the database correctly. There are two ways to write arrays to databases. One is by flattening the array to a binary string and the other is by sending one data at a time through a loop.
For reading the binary information, try using Database Variant To Data function
This discussion forum might also be helpful.
Good luck!