Go Down

Topic: 'writestring'was not declared in this scope error (Read 545 times) previous topic - next topic

Radioactive

I got my SD shield in yesterday and soldered in the headers, I have checked and rechecked the solder joints under a magnifing glass and see no soldering errors. But I keep getting the same error.

Here is my sketch.

// Geiger Counter Lib example

/* Adapted by Tracy Albert from programing for a frequecy counter by,
  Martin Nawrath KHM LAB3
  Kunsthochschule f¸r Medien Kˆln
  Academy of Media Arts
  http://www.khm.de
  http://interface.khm.de/index.php/labor/experimente/   
*/
#include <FreqCounter.h>
#include <SdFat.h>
#include <SdFatUtil.h>

Sd2Card card;
SdVolume volume;
SdFile root;
SdFile file;


unsigned long frq;
int cnt;
int pinLed=13;

void setup() {
  pinMode(pinLed, OUTPUT);

  Serial.begin(9600);        // connect to the serial port
  Serial.println("Geiger Counter");

}



void loop() {

  // wait if any serial is going on
  FreqCounter::f_comp=10;   // Cal Value / Calibrate with professional Freq Counter
  FreqCounter::start(60000);  // 1 minuit Gate Time

  while (FreqCounter::f_ready == 0)
 
 
Serial.println("Done");

  frq=FreqCounter::f_freq;
  Serial.print(cnt++);
  Serial.print("  cpm: ");
  Serial.println(frq);
   // write 100 line to file
  for (uint8_t i = 0; i < 100; i++) {
  writeString(file, "line");
  writeNumber(file, i);
  writeString(file, " millis = ");
  writeNumber(file, millis());
  writeCRLF(file);
}
// close file and force write of all data to the SD card
file.close();
    delay(1000);
   
   
  digitalWrite(pinLed,!digitalRead(pinLed));  // blink Led

A human being should be able to change a diaper, Plan an invasion, Butcher a hog, Con a ship, Design a building, Write a sonnet, Balance acc

AWOL

Which object are you trying to call writestring on?
Quote
I have checked and rechecked the solder joints under a magnifing glass and see no soldering errors

Soldering is rarely a cause of compiler errors
"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Radioactive

frq I believe its the data I want to save as a data logger, I am kind of new at this. :) :)
A human being should be able to change a diaper, Plan an invasion, Butcher a hog, Con a ship, Design a building, Write a sonnet, Balance acc

PaulS

You are trying to call two functions, writeString and writeNumber, that you have not defined.

Your problem is kind of like a cave man trying to call his neighbor before the telephone was invented, complaining I don't understand why I can't do this.

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy