12-07-2005 12:16 PM
Hello!
I’m using the labview database connectivity toolset 1.0.1 to import data from a MySQL database to Labview.
I have to import several times along my application 10 tables…..each table has almost 400rows and 4columns. I use to import it DB Tools Select Data block (I wire the database name, password, and the name of the columns to import). But my machine (Pentium 4) works so hard, works at 100%. I want to know if there is another way using this toolset or another thing to import this data faster and with a machine working less hard.
I don’t know if there is a newer version of database toolkit of labview.
Can you help me?
P.D: i've atthached an example of how i import the data, i think is not the best way to import but i don't know another way
Thank you very much
Larson using Labview 7.0 on windows XP
12-07-2005 12:36 PM
Check the tips at:
http://digital.ni.com/public.nsf/websearch/862567530005f0a186256a33006b917a
.
And thanks to CD for getting it rewritten! The old version was pretty bad.
Joe Z.
12-08-2005 02:55 AM
12-08-2005 10:20 AM
12-08-2005 10:45 AM
FYI-
Current version of the DB Connectivity Toolkit is 1.0.1
12-08-2005 12:53 PM
12-08-2005 01:25 PM
12-09-2005 11:03 AM
Hi, Larson
I just wanted to reiterate some of the other responses you got. From that support document, I think #3 is the one that most applies to your situation. Use the Select subVI from the Read All Data examples and not what's in the palette. To convert the resulting strings to numbers use the Fract/Exp String To Number function. The attached screen capture shows what I mean.
Crystal
12-11-2005 12:04 PM
12-14-2005 10:22 AM
No, the DB Tools Select Data VI from the palette is not the same as the DB Tools Select All Data VI used in the Read All Data example. Their names, icons, and internal code are all very different. That's why I asked you to use the DB Tools Select All Data VI.
There were a few technical reasons (the inability to read NULLs, etc) that kept us from putting it in the palette when this toolkit was released almost 5 years ago, but those reasons have all been fixed and are no longer a problem. Feel free to use this VI anywhere you need it.