LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

LabWindows 2013 Database Connection Issues

Hello,

 

I have a test application that stores its results in a MS Access Database in a directory on a central server.

 

I have been been adding testable products and modifying this application since at least LabWindows 8.2. I try and keep the versions of LabWindows on my development machine current and have probably rebult my application with every version of LabWindows since 8.2. The only issues that I have run into thus far are thos etht I have created myself.

 

Recently, I upgraded to LabWindows 2013. Now, when I build my application and put it on to my target machine I am no longer able to connect with the database. I took LabWindows workspace and built it in 2012. It works fine on the target machine. The only variable is the version of LabWidows I am using.

 

Any help on this issue would be appreciated.

 

Regards-

John

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 1 of 15
(5,354 Views)

Hey johnoc,

 

How are you trying to connect to the database?  What function calls are you doing?

 

Also, this could be something with how the code is now compiled in CVI 2013.  CVI 2013 uses a different compiler than 2012.  It could also be a deprecated function.  What error are you receiving when you run the compiled code from 2013?

Jesse S.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 15
(5,342 Views)

Hi Jesse,

 

Sorry I just saw your response. The database interface functions are in the file I have attached. I get an error in the db_Connect function in this file. "cvi_db.h" is included in the header file. Any light that you can shed on this issue would be appreciated.

 

I'm having issues uploading my file.

 

Regards-

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 3 of 15
(5,288 Views)

Attached file.

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 4 of 15
(5,286 Views)

Hi johnoc,

 

Can you attacth the file one more time, it doesn't seem like it was included.

Also you are talking about the error that you are getting.Can you also send in a screen shot of the error?

Is this the same database that you were interfacing with earlier versions of the CVI? 

National Instruments
Applications Engineer
0 Kudos
Message 5 of 15
(5,264 Views)

Hi Edna,

 

The script to attach the file is not working. I am getting a script error. I suspect it has some thing to do with the security settings placed on my browser by the company.

 

The database I am trying t access is an MS Access 2007 database. It is the same database that I can access when I build the application in CVI 2012 and CVI 2012 SP1.  

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 6 of 15
(5,244 Views)

Can you tell me what is exactly the error? any description or error number? This would help me better look up information.

Can you also go ahead and create a new string connection and test your connection through datalink properties window.This is regarding to LabVIEW but the process is the same. http://digital.ni.com/public.nsf/allkb/1D5EB4DCBD13106486256B9D005E11B0

 

Please let me know how it goes.

National Instruments
Applications Engineer
0 Kudos
Message 7 of 15
(5,221 Views)

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; MS-RTC LM 8; InfoPath.2; .NET4.0E; .NET CLR 1.1.4322)
Timestamp: Wed, 30 Oct 2013 13:30:29 UTC


Message: Script error
Line: 0
Char: 0
Code: 0
URI: http://ni.i.lithium.com/t5/scripts/83075C8B96952709723DB4FF483DF2A4/lia-scripts-common-min.js

 

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 8 of 15
(5,207 Views)

Can you try to uninstall/reinstall IE 8.0. Can you try downloading the latest version?

 

http://forums.ni.com/t5/Feedback-on-NI-Discussion-Forums/IE8-webpage-errors/m-p/1825315

 

There are also a couple of CAR filed for this issue, so it is being looked at.

National Instruments
Applications Engineer
0 Kudos
Message 9 of 15
(5,188 Views)

Hi Edna,

 

I will see what I can do. I am kind of limited in what I can and can't do by my IT department. I may end up dealing with this from my laptop at home so I can get some anwers.

John O'C
Staff Test Systems Engineer
Woodward, Inc.
Skokie, Illinois, USA

"Life is not a journey to the grave with the intention of arriving safely
in a pretty and well preserved body, but rather to skid in broadside,
thoroughly used up, totally worn out, and loudly proclaiming...
Wow...What a Ride!"
0 Kudos
Message 10 of 15
(5,177 Views)