Shop OBEX P1 Docs P2 Docs Learn Events
datalogger flashing led — Parallax Forums

datalogger flashing led

Van DesselVan Dessel Posts: 15
edited 2010-01-27 21:18 in General Discussion
hey everyone again...
I posted a post a while back in the propeller forum about making my data logger from parallax work. I got it working but up to a few days ago it dicided not too. Instead all I get when I try to open a file is a constant blinking red led with no information in the .txt file I created (i'm logging gps and temperature data). i checked with two different flash drives and i get the same result and apparently two files were deleted that i had to restore with chkdsk. Anyone out there with a clue whats happeningconfused.gif

P.s. I haven't changed my program except to write a few more lines of data·to the .txt file so i'm supsecting its either my hardware (which I also havent changed) or the vinculum software which i tried to update too. Is there a limit to the amount of lines i can write per file every time I open a new file?

·

Comments

  • Van DesselVan Dessel Posts: 15
    edited 2010-01-23 23:10
    Well a further update...
    my program is running fine even though nothing is being written as the loop keeps repeating itself:
    if USB.checkErrorCode == 0 
          repeat                                    'loop process
            leds(1)                               
            USB.OpenForWrite(string("setone.txt"))    'Writes to the data.txt  
            pause.pause1ms(10)                
            usb.write(gps.time)                     'time
            usb.writeline(string("   "))
            leds(1)
            Usb.Write(gps.longitude)                'longitude
            usb.writeline(string("   "))
            leds(1)             
            Usb.Write(gps.latitude)                 'latitude
            usb.writeline(string("   "))
            leds(1)
            USB.write(gps.altitude)                 'gps altitude
            usb.writeline(string("   "))
            leds(1)        
            Usb.Write(nums.decf((temps.gettempc) / 10, 3))    'temperature 1 whole numbers
            usb.write(string("."))
            usb.write(nums.dec((temps.gettempc) // 10))       'temperature 1 decimal numbers
            usb.writeline(string("   "))
            leds(1)        
            Usb.Write(nums.decf((temps2.gettempc) / 10, 3))   'temperature 2 whole numbers
            usb.write(string("."))                                       
            usb.write(nums.dec((temps2.gettempc) // 10))      'temperature 2 decimal numbers
            usb.writeline(string("   "))
            leds(1)        
            Usb.Write(nums.decf((temps3.gettempc) / 10, 3))   'temperature 3 whole numbers
            usb.write(string("."))
            usb.write(nums.dec((temps3.gettempc) // 10))      'temperature 3 decimal numbers
            usb.writeline(string("   "))
            leds(1)
            usb.write(nums.decf((press.getsample), 6))        'pressure
            usb.writeline(string("   "))
            press.sendreset
            leds(1)             
            USB.Close(string("setone.txt"))                     'closes the data.txt         
            pause.pause1s(10)
    

    looking over my program i can't seem to find anything wrong. the led blinks 9 times. It seems that I can sync the prop to the data logger but once i try to open something the data logger's red led just keeps on flashing whilie the program keeps on running with no data ending up in the text file. Help is really appreacited.cry.gif
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2010-01-27 21:18
    Have you tried backing up your data files and reformatting the drive?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage

    Parallax Engineering
    Check out the new Savage Circuits TV!
    ·
Sign In or Register to comment.