Jump to content

save data to mysql with labsql


Recommended Posts

I am new to work with labview. I have a problem to save my measurement data into mysql using labsql.

Let's say I am measuring voltage from sensor with DAQ and I want to save this voltage to mysql using labsql.

Can anyone help me????????????? I need some example.

Thank You..............................................

Link to comment
  • 4 months later...

Hi,

Attached is a very simple VI that will read data from a table in mySQL. You need to modify the connection string to suit your database. There is also some example SQL on teh page that could be used to insert a record into a database.

I have used LabSQL quite a lot but always use the SQL Execute icon and build the SQL command string by concatinating the required syntax with teh values I want to write. Of course you can create a subVI that will allow you to pass in an array of column names and data (similar to the NI Database Connectivity Toolkit).

I hope this helps.

Cheers

Download File:post-7495-1168706374.vi

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.