LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Driver Library to communicate with SQL Server database

Hi All,

I'm new to LabView and am hoping for a few guidelines to point me in the right direction for an application that I have to develop.

I have to build an API to read/write to a database (SQL Server).  Another application will essentially have the ability to call my API to read in data from one table (ie supply it with a product code, version details etc – and return filename and programming file), and it will also write to another table in the database.

The following public function VIs are required (ie. API functions to be called)
    Open Database
    Read From Table 1
    Write from Table 2
    Read from Table 2
    Close Database

Create one Top-Level VI that can be used as an “example application” – something you can use to test your function Vis.
    On the front panel, show the two tables
    Ability to read/write to tables

Middle-layer Vis should allow easy adaptation of table structure changes if required in future.

All other Vis that support the top-level functions, should have access scope set to private.

I imagine that all SQL query generation would be handled by the function VIs. They will also handle all data procedures. The only thing that the interfacing application should be concerned about is providing and receiving data to/from the database.

I understand most of what's required, but I'm still not sure on where to begin.

Can someone point me in the right direction and give me a starting point.

Regards.
0 Kudos
Message 1 of 5
(3,121 Views)

Hi tdog,

do you know LabSQL?

I think this will help you.

 

Mike

Message 2 of 5
(3,113 Views)

You could also use the Database Toolkit that NI sells. LabSQL requires a little more knowledge for you to use it, and it hasn't been updated in a long time, so the cost of the Database Toolkit may be worth it. You'll need to decide that for yourself. 

Message 3 of 5
(3,099 Views)
tdog-

smercurio_fc is exactly correct.  The LabVIEW Database Connectivity Toolkit is an API that was designed to do exactly this.  I would strongly recommend taking a look at it and review the functionality that is already created for you.  In the link that smercurio_fc, there is an area where you can download it which will give you a 30 day free trial of the software.  This would be a great way to see if this tool will assist you in your application. 
Regards,

Mike S
NI AE
0 Kudos
Message 4 of 5
(3,077 Views)

Thanks everyone.

 

I had a look at the LabSQL set of VIs and am going ahead with that.

 

Cheers.

0 Kudos
Message 5 of 5
(3,068 Views)