Comments (10)
What we use in the sort code is
- 4 bit label (
0xE
) - 14 bit Channel ID NOT Timestamp
- 2 bit NIOS code finish flag (where only one is used?)
- 8 bit NIOS code error
So you are correct. I am unsure what the other 8 bits are being used for. Can @AdamGarnsworthy or @SmithJK comment?
from data-spy.
what they're used for, or just where they are in the pattern.
Also @r3dunlop: missing bits aside, this doesn't match the spec; do the docs need to be updated? I can do with the rest of the corrections, if that's definitely what's happening. Moreover, are any of the other words different than what's described there?
from data-spy.
Here is the parsing code block:
case 0xe0000000:
// changed on 21 Apr 2015 by JKS, when signal processing code from Chris changed the trailer.
// change should be backward-compatible
if((value & 0x3fff) == (EventFrag->ChannelId & 0x3fff)){
if(!TGRSILoop::Get()->GetSuppressError() && EventFrag->DataType == 2) {
// check whether the nios finished and if so whether it finished with an error
if(((value>>14) & 0x1) == 0x1) {
if(((value>>16) & 0xff) != 0) {
printf( BLUE "0x%04x: NIOS code finished with error 0x%02x" RESET_COLOR "\n",EventFrag->ChannelAddress, (value>>16) & 0xff);
}
}
}
So first 4 bits are the label, next 8 are ??? next 8 are NIOS code, next 2 are NIOS flag last 14 bits are channel Id. The current documentation is quite old now and I guess no one has gotten around to updating it. I can check to see if anything else is out of order.
The other thing to be aware of is that there are PPG events hidden inside of GRIF events now. These have a different event format. I can lay that out in another issue for you.
from data-spy.
Cool, thanks - so there's some ill-defined bits after the event label, got it.
PPG events specification: yes please!
from data-spy.
This is going to change soon. There will be some kind of Accepted Channel Trigger ID here.
from data-spy.
The NIOS errors should only come from the 4Gs, I think. @VinzenzBildstein, can you confirm this?
from data-spy.
If that’s true, then what are the rest of the bits in the trailer in the GRIF 16’s?
On Nov 16, 2015, at 2:36 PM, SmithJK [email protected] wrote:
The NIOS errors should only come from the 4Gs, I think. @VinzenzBildstein https://github.com/VinzenzBildstein, can you confirm this?
—
Reply to this email directly or view it on GitHub #4 (comment).
from data-spy.
Good question. It's a shame Chris Pearson isn't on here. I'll send an email.
from data-spy.
Just add him as GRSIUser when he isn’t looking… :P
On Nov 16, 2015, at 2:38 PM, SmithJK [email protected] wrote:
Good question. It's a shame Chris Pearson isn't on here. I'll send an email.
—
Reply to this email directly or view it on GitHub #4 (comment).
from data-spy.
Yes, the NIOS errors were only implemented for the 4Gs (and only for some time), they will most likely be removed. I'm not sure yet what the final version of the trailer word will be for the 4Gs, but most likely it will be the same as the GRIF-16s.
from data-spy.
Related Issues (10)
- raw GRIFFIN events HOT 5
- feedback from Vinzenz
- Suggestions HOT 4
- waveform sample HOT 5
- PPG Events HOT 4
- Scaler Events
- event types HOT 3
- timestamps HOT 3
- docs typeo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from data-spy.