Go Down

Topic: does not name a type.[ solved] (Read 2 times) previous topic - next topic

Boardburner2

Apr 03, 2013, 12:48 am Last Edit: Apr 03, 2013, 08:43 pm by Boardburner2 Reason: 1
I have recently purchaced a reflow oven controller shield.
I have the very basic experience of programming arduino uno/3, flashing led etc.

after downloading the (proven working software ) for the shield I get the error message
PID does not name a type
at the following line

PID myPID(&Input, &Output, &Setpoint,2,5,1, DIRECT);

The libraries are present and the include statement does not generate an error.

The include also has the updated Arduino filename.
The file extensions also appear to be correct.
I am guessing that it may be something to do with libraries as I have not used them yet.
AFAICS there is no syntax error.
Many other errors but hoping once I understand this one I can fix the rest

tia

codlink

Post your code and a link to the library.  Also, please tell us where you installed the library.

How to use this forum
//LiNK


PaulS

Quote
These are placed in the arduino/libraries directory.

Did you start the IDE again after doing that?

Post a screenshot showing where the files really are.

Boardburner2

#4
Apr 03, 2013, 01:29 pm Last Edit: Apr 03, 2013, 01:40 pm by Boardburner2 Reason: 1

Quote
These are placed in the arduino/libraries directory.

Did you start the IDE again after doing that?


No , that problem is now solved.

I now get the same error with
      MAX31855 thermocouple(thermocoupleSOPin, thermocoupleCSPin,thermocoupleCLKPin);

I only have a.cpp file though, no .h file for this.
Is there a faq on library conventions somewhere ?

I am guessing that .h is a compiled .cpp ?
I have tried to compile the .cpp as a sketch but it does not work.

Screen shot > working on that.

Go Up