10-09-2012 09:25 AM
My company has recently made changes to a product. The original test software was written by a third party in CVI71. The source for the project was provided. We purchased LabWindows/CVI 2012 so that I could make changes to this project.
When opening this project there were some missing instruments drivers. I have included the entries from the project file for the two instruments below:
Path = "/C/VXIPNP/winnt/AGE364XA/age364xa.fp"
Path = "/C/VXIPNP/winnt/HPE363XA/hpe363xa.c"
I needed to get these drivers loaded so that I can get the original code compiling and begin to make the necessary changes. I managed to find these files and include them into the project but then I try to compile I get "Missing prototype" errors. I have searched the include files and the functions that it is complaining about don't exist in them. Can someone point me in the right direction?
10-10-2012 07:45 PM
The functions must be declared in the header files for the drivers. Did you add the header files for the drivers to the project (ex. hpe363xa.h) as well? If you cannot locate this file, I would suggest reinstalling the instrument driver.
10-15-2012 01:06 PM
Thanks for the Reply. Yes I did include the header file.
10-16-2012 10:54 AM
Are you still receiving missing prototype errors? If so, can you upload a screenshot of your error? What are the functions missing from the header file?
10-16-2012 11:16 AM
I have added a preprocessor define to remove the code for now so that I can work on some other areas but I would still like to figure this out. Below is the include file section of code:
//====================================
// Include files
//====================================
#include "globals.h"
#include <gpib.h>
#include "circ_buf.h"
#include "TestPanel.h"
#include <cvirte.h>
#include <rs232.h>
#include <windows.h>
#include <visa.h>
#ifndef _SKYHAWKE_DEBUG // This removes those files for debugging at SkyHawke
#include "age364xa.h"
#include "hpe363xa.h"
#endif
#include <cvintwrk.h>
#include "toolbox.h"
#include <formatio.h>
#include <userint.h>
#include <utility.h>
See the image below:
10-17-2012 07:20 PM
Based on the E363XA Driver ReadMe you must provide an include path for hpe363Xa.h by adding vxipnpwin95include to the include paths (CVI Project Option menu). Try this option instead of including the header file in the project directly.
Agilent E363XA Driver ReadMe - http://www.home.agilent.com/upload/cmc_upload/All/vxipnp_e363xa_a_01_02.html?&cc=US&lc=eng
If this does not work, I would recommend reinstalling the driver. You mentioned earlier that the functions are not defined in the header files. The missing prototype error is not exclusive to LabWindows/CVI. It is a standard error that any C compiler will generate whenever you try to call a function that has not been declared. You can download the driver from the following site:
E363XA Driver: http://www.home.agilent.com/agilent/facet.jspx?&cc=US&lc=eng&k=e363xa+driver&sm=g