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

sub page number is not updated #99

Open
achao1104 opened this issue Oct 12, 2022 · 1 comment
Open

sub page number is not updated #99

achao1104 opened this issue Oct 12, 2022 · 1 comment

Comments

@achao1104
Copy link

Hello,

I am using the library, everything works fine, but it looks once sub page 0 is read and the bit3 is cleared, the next page is still the same number, however, I am expecting once the page 0 is read and the next page would be page 1 and then page 0 and then page 1

1status reg 0009
2controlRegister1 1b01
3status reg 0000
min 0.000(0,0) max 34.335(23,29) avg1 22.065 avg2 12.119 control reg 1b01 sub page 1
1status reg 0009
2controlRegister1 1b01
3status reg 0000
min 0.000(0,0) max 34.403(22,20) avg1 22.130 avg2 11.988 control reg 1b01 sub page 1
1status reg 0009
2controlRegister1 1b01
3status reg 0000
min 0.000(0,0) max 35.753(22,20) avg1 21.202 avg2 12.015 control reg 1b01 sub page 1
1status reg 0009
2controlRegister1 1b01
3status reg 0001
min 0.000(0,0) max 34.701(22,16) avg1 21.142 avg2 12.036 control reg 1b01 sub page 1
1status reg 0008
2controlRegister1 1b01
3status reg 0001
min 18.691(14,15) max 35.008(21,12) avg1 31.817 avg2 24.035 control reg 1b01 sub page 0
1status reg 0008
2controlRegister1 1b01
3status reg 0001
min 18.691(14,15) max 34.701(22,16) avg1 32.284 avg2 23.909 control reg 1b01 sub page 0
1status reg 0008
2controlRegister1 1b01
3status reg 0001
min 16.839(8,30) max 34.701(22,16) avg1 31.184 avg2 23.401 control reg 1b01 sub page 0
1status reg 0008
2controlRegister1 1b01
3status reg 0000
min 18.691(14,15) max 34.701(22,16) avg1 29.174 avg2 23.438 control reg 1b01 sub page 0
1status reg 0009
2controlRegister1 1b01

@slavysis
Copy link
Collaborator

Hello,

The measurements inside should be continuously running and if the readout is late some data could be lost. What is most likely happening is that the speed of your code is too slow for the refresh rate you chose. As a result you are skipping frames.

Best regards

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

2 participants