LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a MySQL Database from a type def Cluster

I have a very large cluster.  I'm going to have to design a database to to match the cluster. 

 

I know in TestStand it is possible to automatically generate a MySQL database from a test report.  Is there any type of similar functionality in LabVIEW?  Basically, is there an easy way to do it that won't take up a lot of time?

0 Kudos
Message 1 of 4
(2,391 Views)

The Insert Data VI in the Database Connectivity Toolkit has an option to create a table if one doesn't exist.

aputman
Message 2 of 4
(2,387 Views)

From a DB design perspective, should you see if the data should be saved in a single table? You may get much better performance from the DB if the data was separated into multiple tables. Without knowing the nature of the data it is difficult to tell but generally tables with lots of columns are not very efficient.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 4
(2,364 Views)

You should consider the option of converting the cluster to JSON (using a tool like JSONtext) and storing that.  MySQL has a JSON data type that supports querying inside the JSON as if it were a table.  Depends on your use case, but it is very easy.

0 Kudos
Message 4 of 4
(2,356 Views)