LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating vi from dll error

Hello, i have strange problem. i am trying to import DLL for FTDI FT2232HQ, but wizard could not finish importing but it does show functions names.
Could any one help me create vi from this zip ? ( two different sets for 32b and 64b programs)
http://www.ftdichip.com/Support/SoftwareExamples/MPSSE/FTCSPI/FTCSPI_200.zip

my email is megahercas6<eta>gmail.com

 

importing wizard give error like this:

The shared library contains 35 function(s). But no function is found and recognized in the header file. The following function(s) cannot be wrapped. If you want to import these functions, please review the warning messages next to the functions below. You will need to fix the problems before you can continue with the wizard.

0 Kudos
Message 1 of 12
(3,639 Views)

You're asking for a lot of work here. Start with a search on this forum for FTDI (or a Google search for "site:ni.com FTDI LabVIEW SPI" or similar). Several people have already tried (and probably succeeded) to get this chip working with LabVIEW, and they may have posted code or are willing to make it available. If that doesn't help, pick one function that you want to import (start with the first function you need to call), attempt to do it yourself, and then post here if you run into problems and can't find the solution elsewhere. If you get the first function working, move on to the second one, etc. That way you're learning to make it work yourself, without asking for a huge effort from someone on the forum.

0 Kudos
Message 2 of 12
(3,618 Views)

I am asking for few seconds of work, if importing function is working correctly.

Importing wizard do this work in few seconds. I did that somehow in the past with older dll vertion, but now even visual studio don't allow for dll  to be imported, even old one. So my guess i have problem with my computer

0 Kudos
Message 3 of 12
(3,603 Views)

The import wizard is not magic. It can handle simple cases, but it cannot handle the way that header file is structured. It's not your computer. Importing that DLL will require correctly defining a large number of pre-processor macros, then creating LabVIEW clusters that match all the structs. It is not as simple as asking someone to run the import wizard on another computer. You need someone who's familiar with both C and LabVIEW to get all those functions configured properly. It is definitely not a few seconds of work.

0 Kudos
Message 4 of 12
(3,595 Views)

How about only get number of devices function, single imput, single output, if that works, maybe i could use that as starting point.

I did try this manualy, without wizard, but it did not worked, get error when trying to accsess dll.

0 Kudos
Message 5 of 12
(3,578 Views)
Can you post the VI you created manually for that function? What error did you get?
0 Kudos
Message 6 of 12
(3,562 Views)

This should work for SPI_GetNumDevices. You'll need to fix the path to the DLL, and eventually you should convert the FTC_STATUS return value into an error code (although for this specific function, I don't think you'll get an error). Saved for LabVIEW 2009 in case you're still on an older version. Note that all of the functions in this library use the WINAPI calling convention.

0 Kudos
Message 7 of 12
(3,543 Views)

Thanks

Right now reinstalling all programs, and i hope that will fix some of my problems (long shot)

 

Will inform you if it worked,

Big thanks sir

0 Kudos
Message 8 of 12
(3,540 Views)

Good luck, but I'm 100% certain that reinstalling everything will have no effect on LabVIEW's inability to do an automatic import of that DLL and header file.

Message 9 of 12
(3,529 Views)

you are right. it does not. At least i did installed it witout problems.

Strange thing is that your function does work first time, now i need to do that for rest

0 Kudos
Message 10 of 12
(3,524 Views)