Go Down

Topic: Java processing.app.debug.RunnerException error while compiling (Read 606 times) previous topic - next topic

shanoger

Greetings every one, i have compiled a small project that i am working on which contains three libararies and the code below:
Code: [Select]

// This Arduino sketch reads DS18B20 "1-Wire" digital
// temperature sensors.
// Tutorial:
// http://www.hacktronics.com/Tutorials/arduino-1-wire-tutorial.html
// last modified on 28.1.13
// Notes: the addresses have to be double checked.
//        each sensor can be connected to one port/pin with one pullup resistor 4.7KOhms.
#include <OneWire.h>
#include <DallasTemperature.h>
#include <FreqCounter.h>

// Data wire is plugged into pin 3 on the Arduino 0x28, 0x6B, 0xDF, 0xDF, 0x02, 0x00, 0x00, 0xC0
#define ONE_WIRE_BUS 7

// Setup a oneWire instance to communicate with any OneWire devices
OneWire oneWire(ONE_WIRE_BUS);

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature sensors(&oneWire);

// Assign the addresses of your 1-Wire temp sensors.
// See the tutorial on how to obtain these addresses:
// http://www.hacktronics.com/Tutorials/arduino-1-wire-address-finder.html

DeviceAddress insideThermometer = { 0x28, 0xF3, 0x70, 0x75, 0x04, 0x00, 0x00, 0xEF };
DeviceAddress outsideThermometer = { 0x28, 0xE0, 0x0B, 0x75, 0x04, 0x00, 0x00, 0xF0 };
DeviceAddress dogHouseThermometer = { 0x28, 0x59, 0xBE, 0xDF, 0x02, 0x00, 0x00, 0x9F };

long int frq;


void setup(void)
{
  // start serial port
  Serial.begin(9600);
  // Start up the library
  sensors.begin();
  // set the resolution to 10 bit (good enough?)
  sensors.setResolution(insideThermometer, 10);
  sensors.setResolution(outsideThermometer, 10);
  sensors.setResolution(dogHouseThermometer, 10);
}

int readFrequency()
{
 
  FreqCounter::f_comp= 8;             // Set compensation to 12
FreqCounter::start(100);            // Start counting with gatetime of 100ms
while (FreqCounter::f_ready == 0)         // wait until counter ready

frq=FreqCounter::f_freq;            // read result
//delay(20);
return frq;

}


void printTemperature(DeviceAddress deviceAddress)
{
  float tempC = sensors.getTempC(deviceAddress);
  if (tempC == -127.00) {
    Serial.print("Error getting temperature");
  } else {
    Serial.print("C: ");
    Serial.print(tempC);
    Serial.print(" F: ");
    Serial.print(DallasTemperature::toFahrenheit(tempC));
  }
}

void loop(void)
{
  delay(2000);
  Serial.print("Getting temperatures...\n\r");
  sensors.requestTemperatures();
 
  Serial.print("Inside temperature is: ");
  printTemperature(insideThermometer);
  Serial.print("\n\r");
  Serial.print("Outside temperature is: ");
  printTemperature(outsideThermometer);
  Serial.print("\n\r");
  Serial.print("Dog House temperature is: ");
  printTemperature(dogHouseThermometer);
  Serial.print("\n\r\n\r");

  Serial.print("The Water flow frequency is =  ");
  Serial.println( readFrequency());                // print result
}


I am getting this error below, now i am not sure if it has compiled, it does upload it to the arduino board regadless of the error. i am confused some help please?
processing.app.debug.RunnerException: Couldn't create: C:\Users\SHAN-D~1\AppData\Local\Temp\build7330095268426436344.tmp\OneWire\utility
   at processing.app.debug.Compiler.createFolder(Compiler.java:632)
   at processing.app.debug.Compiler.compile(Compiler.java:150)
   at processing.app.Sketch.build(Sketch.java:1625)
   at processing.app.Sketch.exportApplet(Sketch.java:1648)
   at processing.app.Sketch.exportApplet(Sketch.java:1634)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2346)
   at java.lang.Thread.run(Thread.java:619)
Binary sketch size: 8,386 bytes (of a 32,256 byte maximum)

Go Up