LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using MySQL C API in CVI7.0

Hi!

I was wondering, that does anyone have experience in importing Visual C made dlls and libs to CVI? I'm trying to do this, because I need the MySQL C API functions.

best regards,
Aleksi
0 Kudos
Message 1 of 8
(4,346 Views)
Hi Aleksi,

I have found a couple of links that may help you out.

How to Integrate MS Visual C/C++ or Borland DLLs into CVI

Also as an alternative approach, rather than using DLLs you could perform MySQL functions in CVI. Here is a document providing information on how to do this.

In addition, you can obtain the SQL toolkit for LabWindows/CVI from www.ni.com. Here is a link to the SQL toolkit reference manual, if you decide to
get it, or already have it.

Hope this helps! Good Luck!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
Message 2 of 8
(4,346 Views)
Hi Jeremy

Thanks for that French link, that basicly had everything I needed. Also I have another question; I've made a custom operator interface and it has three panels in one tabcontrol. The tab control is located on the mainPanel. When display the the mainPanel, the tab control canvas is empty and after a while it loads the panels in to the tab control. I load all the panels and tab controls in the very beginning of my software, so there shouldn't be anything left to load at that point, just to display the panel. Any advise?

I have to give positive feedback about the whole Developer Suite Test Edition package to balance all the problems and questions I'm always asking. I've been using it for about 10 months and I'm still finding new ways to do
test software and to implement features in to the testing process. Lately I added an automated email in to specified critical error possibilities; the step sends an automatic e-mail to our testing department, that tells which machine sent the message and what the error was. This simplifies very much the tracking of possible errors. Usually the people conducting the testing can't give any specific information.

-Aleksi
0 Kudos
Message 3 of 8
(4,346 Views)
Hi Aleksi,

There can be a number of reasons why this behavior is happening on your application. I'm not very sure what resources you are accessing at initialization, but I would recommend stepping through the initialization of your code. Check to see if any other callbacks are being made, any external code is being called, or if any other functions you are calling take a long time to execute. My last guess would be something lagging in the initialization of the tab controls. There is a good example of how to set up Easy Tab controls in the Help section. Just go to the Contents Tab, and navigate to Example Programs --> Fundamentals Examples --> Custom Controls Examples --> Easy Tab. There should be 2 examples there to look through. Hope that
helps!

Also, thank you for the feedback regarding Developer Suite! We are extremely happy to hear about your success and satisfaction with our product. We hope you have a wonderful experience with our products in the future as well!

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 4 of 8
(4,346 Views)

Hi everyone,

i tried to follow the link which explained how to convert the mysql-c-connector .h, but the link is not valid.... Anyone have this instructions? Thank you.

0 Kudos
Message 5 of 8
(3,664 Views)

Hi,

 

I have just tried all three links in the message of Jeremy L on 03-03-2004 11:47 PM and all three did work for me...?

0 Kudos
Message 6 of 8
(3,647 Views)

Wolfgang,

thank you for your help.

I didn't explain so good in my last message.

The link http://digital.ni.com/public.nsf/websearch/6257BDDBE5DC9BE886256D3A005697E3?OpenDocument works good, but in that page there is another link (http://perso.wanadoo.fr/philippe.baucour/pratiquer/mysql/mysql.html, that contains the instruction to "adapt" mysql-c-connector to labwindows) that don't work.

 

So I hope someone have these instruction in his pc....

 

Thank you.

0 Kudos
Message 7 of 8
(3,637 Views)

The above link doesn't work..Can someone explain how to use the SQL connect functions in labwindows cvi.....I am facing a lot errors when include "mysql.h" file into my program. Thank you

If you are young work to Learn, not to earn.
0 Kudos
Message 8 of 8
(3,570 Views)