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

CounterMeasurementType Issue #45

Open
thojDufour opened this issue May 19, 2022 · 1 comment
Open

CounterMeasurementType Issue #45

thojDufour opened this issue May 19, 2022 · 1 comment

Comments

@thojDufour
Copy link

When measuring with a USB-1808 DAQ using a CMT_PERIOD, the daq is not measuring the number of tick between two active edges of the counter, but between one active edge of the counter and one of the gate.
When using CMT_PULSE_WIDTH, it does what is expected of CMT_PERIOD.

When using CMT_PERIOD, and any non default CounterMeasurementMode option, the function ulCConfigScan() returns an error.

@thojDufour
Copy link
Author

I was able to solve the issue by changing the uldaq.h.
Apparently the bit shift of 1 for CMT_PERIOD should be changed to 2, and the bit shift of 2 for CMT_PULSE_WIDTH should be change to 1.

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