LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Small CIN problem...

Hi all,

I am having problems with calling external dll function from a CIN code. Please help.

The CIN input consists of few integers and one integer array. Inside the code a C structre array is created sizeof the integer array. The code then calls a dll function called pAIConfigureList and passes the C structure as function paramter. Whatever the dll function returns gets displayed on the VI. The code is attached.

I compile the code and create the lsb file. I load this in the CIN. But labview stills gives me the error that "CIN: object code not loaded". I do not know why this is happening. Please help.

I am using Visual Studio 6.0 and have attached the entire workspace. I have also attached portlink (zip file).
In order to see the dll you will need to install this program. The library files are in the following directory:
cw32\lib
cw32\include

The CIN is also attached. If you can spare a few minutes, I'll really appreciate your help.
Regards,
Setu.
Download All
0 Kudos
Message 1 of 4
(2,840 Views)
Hi Setu,

I have managed to get the lsb file loaded.

I had to delete all the labview files from the project and re added them. ( My labview is in a folder called LabVIEW not LabVIEW 6). Doing this I managed to create the lsb file.

To get the lsb loaded into the CIN, I had to pop the PPCI_w32.dll into c:\winnt\system32\. Once I had done this the lsb loaded fine.

Hope this helps
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(2,840 Views)
One comment on "Labview" and "Labview 6".
I found that the Make file that gets generated should not contain any paths with spaces in the names.
(It does not help to quote, make does not understand quotes")
The famous Microsoft Tools are even now not able to process the long windows names in all circumstances.
Something I found out years ago in a NT4 batch fooled me again. I had to modify the make file manually and replace all long names with their "Labv~1" equivalents
Gabi
7.1 -- 2013
CLA
0 Kudos
Message 3 of 4
(2,840 Views)
Thanks Ray,
Putting the DLL in windows\system32 directory does the trick. Why do you reckon this is so?

I still have problems compiling and linking the sample file "Hsai_cw.c" found in cw32\sample directory. I get the following error:
Ippciw32.lib : fatal error LNK1136: invalid or corrupt file
Any thoughts?

Thanks again for taking the time to answer.
Regards,
Setu.
0 Kudos
Message 4 of 4
(2,840 Views)