LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

CVI-2013 SP1 and FDTI development libraries

Solved!
Go to solution

We are using a test adapter which uses internally a FDTI USB to serial converter. To control that device we've build some code using FTDIs ftd2xx.lib. This code compiles and works fine with CVI-2009. But when trying to build the project   with CVI-2013 SP1 the linker complains, that ftd2xx.lib isn't a valid lib archive.  Any ideas how to fix that ? 

 

0 Kudos
Message 1 of 6
(5,017 Views)
Just asking out of curiosity, why did not you use the CVI serial library in the first place.
Did you need some very specific capabilities?

Did you check if the compatibility settings are the same for both versions.
There used be some MS/Borland choice somewhere. Not sure if it still there, but may be related if so.
S. Eren BALCI
IMESTEK
0 Kudos
Message 2 of 6
(5,015 Views)

The adapter isn't configured to show up as a virtual serial port, so we can't use the normal serial libraries.

 

0 Kudos
Message 3 of 6
(5,013 Views)
Solution
Accepted by topic author mkossmann
Your problem seems like a 'known issue' and already has a workaround.
See the forum thread below:

http://forums.ni.com/t5/LabWindows-CVI/CVI2013-quot-not-a-valid-archive-quot/td-p/2525174

Hope this helps...
S. Eren BALCI
IMESTEK
Message 4 of 6
(5,003 Views)

mkossmann, I was having identical issues as you, interfacing with a custom board that used the FTDI driver.

 

To shed some more light on the link that ebalci listed, here is the conversation that I had with Darren Bield NI off-forum:

 

Darren
Thanks for the update. Glad to hear you have a solution.

There should not be any issues with opening a 2012 CWS or PRJ in 2013, so we will likely continue to investigate this. I will let you know if we figure anything out.



Rob
Darren, sorry for the long delay.  I tried just now building in both my Debug and Release configurations.  No go.
 
But with your recommendation, I created a new project, imported the sources and LIB file.  But I created new PRJ and CWS files. That cured it!
 
Which paints more of the picture for you… I had taken my 2012 project folder and simply opened it in 2013.  But that apparently isn’t totally possible with the PRJ/CWS files.  No matter, I know how to proceed now…
 



Darren  
Hi Rob,

I still cannot reproduce this even with your project file and environment settings. Are you able to use the lib in a new project? Is there a specific build configuration that causes the error, or do both debug and release cause the error? Do you have any other systems you might be able to test this on?



Rob
Hmm, strange.  Thanks, Darren, here are the files.
 



Darren
Hi Rob,

I was able to build an app that called FT_Open without any problems. Could you send me your project file so that I can reproduce the settings. As well as an export of your environment options (Tools >> Import/Export Settings).



Rob
Correct, Darren.  Sorry about that, here’s the header…



Darren
Hi Rob,

Do you have a header file for this lib as well?  I wasn't able to figure out the parameters for any of the exported symbols in the lib. I presume the error occurs when building, and not when adding the import lib.

0 Kudos
Message 5 of 6
(4,919 Views)

Recreating the project files with CVI-2013 cured the probem for me, too

0 Kudos
Message 6 of 6
(4,905 Views)