LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW WebServer and Xampp

Solved!
Go to solution

Hello,

 

I am using a LabVIEW webserver in my project in addition to a running SQL server on my local computer.

 

I am communicating with the database via the DB connectivity toolkit and everything is ok in development mode.

 

But when building an executable, the LabVIEW webserver is working but there is no communication with the data base.

 

I would be happy if anyone familiar with these concepts could help me with some hints.

 

Thank you

0 Kudos
Message 1 of 5
(4,231 Views)

What error do you get when connecting to the database?

 

My first guess would be a relative path that works for the dev. env. but is wrong in the exe. Without any code it's hard to help.

0 Kudos
Message 2 of 5
(4,216 Views)

T hank you but I dont get any error, the application cannot simply connect to the database.

 

I made sure that relative path is ok and both servers use different ports, but still cant read from and write to the database.

 

0 Kudos
Message 3 of 5
(4,194 Views)

@hichem55 wrote:

T hank you but I dont get any error, the application cannot simply connect to the database.

 

So the connect, the read and the write VI's don't return errors? They just don't work?

 

Note that the executable will not automatically pop up error dialogs, like the dev. env. You'll need to add a simple error dialog VI somewhere to get an error dialog.

0 Kudos
Message 4 of 5
(4,188 Views)
Solution
Accepted by topic author hichem55

Problem solved!

 

For some reason that I ignore, connecting to the database cannot be done from a startup VI of the Webserver.

 

So I separated the two processes by generating an executable that will connect to the database while the webserver will be running in the background after installing the executable.

 

Thank you for you help

0 Kudos
Message 5 of 5
(4,172 Views)