NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

unresolvable prototype mismatch with CVI adapter

Solved!
Go to solution

After changing prototypes  I'am getting  an error indicaor in the Step settings windows which says :

" the parameters specified by the step do not match the function prototype" :

stepsettings1.gif 

0 Kudos
Message 1 of 6
(3,225 Views)

Sorry,a liitle bit fighting with the editor

But after pressing the "verify prototype" button there is no error:

verify1.gif

 

Trying to fix the problem by pressing the button with the exclamation mark gives :

stepsettings2.gif

 

But now "verify prototype" is unhappy:

verify3.gif

 

And fixing that I'am again at the start point.  How/where to fix that problem

0 Kudos
Message 2 of 6
(3,219 Views)

1) What version of TestStand?
2) What is the exact actual prototype in your code?
3) Are you using a type library to include the type information in your dll?

-Doug

0 Kudos
Message 3 of 6
(3,212 Views)

@dug9000 wrote:

1) What version of TestStand?

4.2.1.83
2) What is the exact actual prototype in your code?

 

void __declspec(dllexport) Sensor_RF_Pulsetop(CAObjHandle seqContextCVI, double *measurement,
 char reportText[1024], short *errorOccurred, long *errorCode, char errorMsg[1024],
 long Channel, long Pulsemode, long Power, long Powermeterhandle, long Counterhandle)


3) Are you using a type library to include the type information in your dll?

No.

-Doug


 

0 Kudos
Message 4 of 6
(3,199 Views)
Solution
Accepted by topic author markus kossmann

Based on the information you provided, my best guess would be that the DLL specified for the step is not the one created from the source code. It appears that the function that TestStand finds in the DLL does not contain the last 4 parameters.

 

Did you recompile the CVI project? Did the path to the DLL change?

 

 

0 Kudos
Message 5 of 6
(3,167 Views)

Yes you are right. I changed the CVI  but I didn't rebuild the DLL 

0 Kudos
Message 6 of 6
(3,147 Views)