Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No data is written to the output file #7

Open
ashfaq1701 opened this issue Mar 19, 2024 · 0 comments
Open

No data is written to the output file #7

ashfaq1701 opened this issue Mar 19, 2024 · 0 comments

Comments

@ashfaq1701
Copy link

ashfaq1701 commented Mar 19, 2024

Hi,

My team bought an gForcePro+ EMG armband.

I am trying to run a project named EMGRawDataCapture. Actually, I converted it to a CMake project.

https://github.com/ashfaq1701/gforce-data/blob/master/main.cpp

Both the original visual studio project and my copied version doesn't output anything in the output file. The output file remains empty.

I tried to uncomment these log lines,

https://github.com/ashfaq1701/gforce-data/blob/fe2c065cabf36af26805b9531b8679f68d84ad4c/main.cpp#L290

And got these outputs.

GForceHandle::onExtendedDeviceData: datatype = 8, datalength = 0, first byte: ff, last byte: ff
GForceHandle::onExtendedDeviceData: datatype = 8, datalength = 0, first byte: ff, last byte: ff
GForceHandle::onExtendedDeviceData: datatype = 8, datalength = 0, first byte: ff, last byte: ff
GForceHandle::onExtendedDeviceData: datatype = 8, datalength = 0, first byte: ff, last byte: ff

Because data length is zero, the code is not progressing any further. Please note that the same thing happens when I am using your original code in visual studio.

What should I change to store the EMG data in the output file?

Do I need to change the function call here?

https://github.com/ashfaq1701/gforce-data/blob/fe2c065cabf36af26805b9531b8679f68d84ad4c/main.cpp#L376

E.g. do I need to call DeviceSetting::setAccelerateConfig?

If yes, then what should be the value of the parameter fullScaleRange_g?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant