Quantcast
Channel: Emotiv
Viewing all articles
Browse latest Browse all 898

EDK_CANNOT_ACQUIRE_DATA in AverageBandPowers with Insight

$
0
0

Hello,

When using the java AveragePowerBands.java file, I’m having issues getting readings.

In the Emotiv control panel, everything seems to be working fine. When I run the java code, it connects and finds the userID for the headset, but then doesn’t print out any data, because the “result” variable from

int result = Edk.INSTANCE.IEE_GetAverageBandPowers(userID.getValue(), i, theta, alpha, low_beta, high_beta, gamma);

is returning EdkErrorCode.EDK_CANNOT_ACQUIRE_DATA, instead of EdkErrorCode.EDK_OK. So, it misses the whole if statement:

int result = Edk.INSTANCE.IEE_GetAverageBandPowers(userID.getValue(), i, theta, alpha, low_beta, high_beta, gamma);
if(result == EdkErrorCode.EDK_OK.ToInt()){
System.out.print(theta.getValue()); System.out.print(“, “);
System.out.print(alpha.getValue()); System.out.print(“, “);
System.out.print(low_beta.getValue()); System.out.print(“, “);
System.out.print(high_beta.getValue()); System.out.print(“, “);
System.out.print(gamma.getValue()); System.out.print(“, “);
}

I’ve tried this on two computers with Windows x64 and one with MacOS, both have the same issue. The code, besides this, works fine.

Any ideas or assistance would be great. I haven’t managed to get any of the examples to work as I’d like.

Thanks,
Sky


Viewing all articles
Browse latest Browse all 898

Trending Articles