simple software to read data from device


Advanced search

Message boards : Number crunching : simple software to read data from device

Author Message
solaraot
Send message
Joined: 1 Dec 11
Posts: 1
Credit: 20
RAC: 0
Message 1095 - Posted: 5 May 2012 | 21:33:35 UTC

Hello,

Do you have any software to read radiation from device by USB port and save this data in the file or print it? It may be for windows or linux.

with regards,
Krzysztof

Profile krzyszp
Project administrator
Project developer
Project tester
Project scientist
Avatar
Send message
Joined: 16 Apr 11
Posts: 383
Credit: 754,646
RAC: 90

Message 1096 - Posted: 6 May 2012 | 3:36:24 UTC - in response to Message 1095.

No, but boinc application saves data in realtime in file data.bin in it's folder. This is simple txt file.

Zależnie od wersji systemu znajdziesz ten plik w odpowiednim folderze "slots"
____________
Regards,
Krzysztof 'krzyszp' Piszczek
Android Radioactive@Home Map
Android Radioactive@Home Map - donated
My Workplace

Dagorath
Avatar
Send message
Joined: 4 Jul 11
Posts: 151
Credit: 42,738
RAC: 0

Message 1098 - Posted: 8 May 2012 | 7:24:34 UTC - in response to Message 1096.
Last modified: 8 May 2012 | 7:26:44 UTC

There are 2 problem with using the data.bin file: the slot folder it's in changes and the science application deletes data.bin whenever it wants to. It's not difficult to find the new slot directory when it changes but if you don't read the data.bin file every minute you can lose data. But maybe that's good enough for what you want to do.

There are other more reliable ways to get the raw data. One way is to download it from the R@H website using the method described in the Raw data export thread. I have a Python script that will do that automatically and you can have a copy if you want it, solaraot.

Another way is to copy the science application to another directory and run it there from the command line while the application also runs under BOINC. I looked at the source code for the application and I can't see a problem with 2 applications reading the detector. Does anybody else see a problem doing that?

By running your own copy of the application you can control when it starts and stops and thus have control over the data.bin file too. You are guaranteed to get all the data as long as the app keeps running.

The way the application works now it runs for about 2 hours then exits. I think I will modify the application so it runs "forever" and prunes samples that are more than x days old from the data.bin file. It might be a good idea to remove any code that writes to the detector to avoid conflicts with whatever the application running under BOINC writes. Would you be interested in having a copy of that application, solaraot? Maybe you can modify the application yourself? The source is available at http://radioactiveathome.org/boinc/download/sources/

A question about the data.bin... The number in the first column is the timer on the detector and the units appear to be milliseconds, is that correct?
____________

Dagorath
Avatar
Send message
Joined: 4 Jul 11
Posts: 151
Credit: 42,738
RAC: 0

Message 1099 - Posted: 8 May 2012 | 10:35:42 UTC - in response to Message 1098.

Sorry, dumb question, the timer units are milliseconds.

____________

Profile TJM
Project administrator
Project developer
Project tester
Send message
Joined: 16 Apr 11
Posts: 291
Credit: 1,368,705
RAC: 56

Message 1136 - Posted: 20 May 2012 | 13:30:19 UTC - in response to Message 1099.

Actually it's best not to run two BOINC apps at once.
The apps will run fine, but the data won't validate, as the app resets the counters on exit, so eventually the other app will read a sequence error (the timer/counter diff between subsequent samples can't be negative). This is done on purpose and won't be changed.

Dagorath
Avatar
Send message
Joined: 4 Jul 11
Posts: 151
Credit: 42,738
RAC: 0

Message 1140 - Posted: 20 May 2012 | 21:50:36 UTC - in response to Message 1136.

My app does not reset the counters when it exits. It writes nothing to the detector, it only reads and it depends totally on the original (the one running as the science app) to manage the detector.

As you pointed out, my app gets a negative count when the science app resets the counters but my app discards that sample. So far it hasn't caused any glitch in the results I've returned to R@H, they seem to validate.

Are there any other potential problems you can see with running my app? I don't want to invalidate or affect the data returned to the R@H server in any way so would appreciate hearing any suggestions and concerns you can think of.

____________

Profile TJM
Project administrator
Project developer
Project tester
Send message
Joined: 16 Apr 11
Posts: 291
Credit: 1,368,705
RAC: 56

Message 1148 - Posted: 31 May 2012 | 21:08:57 UTC - in response to Message 1140.

As long as the other app has no problems with negative readings, it's fine.

Post to thread

Message boards : Number crunching : simple software to read data from device


Main page · Your account · Message boards


Copyright © 2024 BOINC@Poland | Open Science for the future