Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Direct Labview Realtime SQL connectivity

Status
Not open for further replies.

thorvan

Computer
Mar 20, 2005
1
Hi

I am having difficulty with setting up a connection with a Compact Field Point and SQL Server 2000. Currently the scenaria is as follows:

I have a SQL server with which I would like to communicate with directly (preferably no software in between). I have Labview 7 with the SQL toolkit (however its components cannot be deployed on Labview RT, as it does not have the required API's/ODBC/MDAC etc).

I have spoken to several NI representitives, and they were unable to give me a solution (other than FTP, or writing a custom driver/protocol).

I have considered a few:

1. Deploy a protocol/module/ActiveX control that is compatible with SQL onto cFP, push the data to SQL.
2. FTP files off cFP using MS ftp.exe (pull data onto SQL server machine, then import with DTS).
3. FTP files using cFP onto IIS ftp server (push data, then DTS).
4. Install an OPC SQL server/client on the SQL server 2000 machine that will use the OPC protocol to import data into SQL.
5. Write a custom driver/protocol (which will run on the cFP).

What would be the best option, are there others, pros and cons?
I am guessing option 5 is probly going to be the favoured solution, if so what components should I use?


Thanks 4 taking a look.
-Thor
 
Replies continue below

Recommended for you

Hi Thor,

We have EXACTLY the same problem. Basically, the FP2000 cannot support ActiveX, and this is required by the ADO commands to connect to SQL.

The best solution we have found is to 'publish' the data over the local network, then you'll need to write & deploy another VI on the client server which reads this data and you can push the values to your SQL table.

It's not ideal, but it's the best solution we could find.

Good luck.

Cooky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor