07-11-2011 02:53 AM - edited 07-11-2011 02:54 AM
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" :
Solved! Go to Solution.
07-11-2011 03:38 AM
Sorry,a liitle bit fighting with the editor
But after pressing the "verify prototype" button there is no error:
Trying to fix the problem by pressing the button with the exclamation mark gives :
But now "verify prototype" is unhappy:
And fixing that I'am again at the start point. How/where to fix that problem
07-11-2011 09:47 AM
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
07-12-2011 01:37 AM
@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
07-15-2011 08:58 AM
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?
07-17-2011 11:45 PM
Yes you are right. I changed the CVI but I didn't rebuild the DLL