LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PID.h needed even though I've included it

Solved!
Go to solution

I recently starting exploring the option of using the Labwindows PID toolbox instead of my own out of interests sake. I ran some examples fine. When I implemented it in my own application I've included the following header files

 

 

#include <windows.h>
#include "PID.h"
#include <utility.h>
#include "asynctmr.h"
#include <udpsupp.h>
#include <ansi_c.h>
#include <formatio.h>
#include <cvintwrk.h>
#include <userint.h>
#include <rtutil.h>
#include <errno.h>

 

 

Even though I've included PID.h it gives an error

The following include statements are needed in "myfile.c".

        #include "PID.h"

Do you want to add them after the include statement for windows.h?

 

I've obviously included it but wonder if I don't have something set up correctly in my environment. I should also note this is being run on a Real-Time Target. The seemingly unnecessary included headers are there because I have a file that is compiled in both windows and LVRT and handled with #if _LINK_CVI_LVRT_ directives.

 

I provided the activation key earlier yesterday and have rebooted the system. I can run the examples just fine. Any thoughts or ideas?

0 Kudos
Message 1 of 2
(3,186 Views)
Solution
Accepted by topic author Sneaker

Turns out there was an old file pid.h that wsa hiding in the directory and hasn't been included in the build for quite some time as my own pid implementation now exists in another file somewhere. Go me. Deleting the obsolete file did the trick. 

0 Kudos
Message 2 of 2
(3,171 Views)