LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating vi from dll error


@Labview_VCP wrote:

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


Not strange at all! He knows quite a bit of C programming and wrote that function from scratch applying that knowledge, likely after having searched the internet for additional documentation for that function and even more likely applying some knowledge about programming conventions that are usually used in C variable naming. Problem is that programming conventions are just that, something some C programmers use but nobody is obligated to do that, and many C programmers rather invent their own conventions than following someone elses convention.

 

So basically the syntax in a header file for a DLL is a starting point but almost never enough to make the actual DLL call work reliably AND with best performance. Unfortunately the function description in the programming manual is not something that can be formalized and put in a header file since when C was invented people were already happy that a compiler could actually create some executable code, not thinking about formalizing the parameter interface of functions to the extend as it is done in .Net assemblies for instance. And to try to automatically interpret the naming conventions of parameter names would be a disaster since there are about as many conventions in the world as there are different programmers, definitely not something one would want to put in an automated tool like the import library wizard.

0 Kudos
Message 11 of 12
(610 Views)

Now even visual basic started to work with this DLL. SInce i had experience i think i will switch to visualBasic program. it will be small and no labview runtime will be needed.

 

And for some reason it works 20x faster ( it should work only 5x faster due to new FT2232HQ chip) than labview program did before on old chip

0 Kudos
Message 12 of 12
(599 Views)