-
Notifications
You must be signed in to change notification settings - Fork 30
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
Invalid Board Number #37
Comments
It also works with C: #include <stdio.h>
#include "..\cbw.h"
int main(void)
{
int ULStat = NOERRORS;
USHORT DataValue = 0;
ULStat = cbAIn(0, 6, 1, &DataValue);
printf("Value=%d\n", DataValue);
return 0;
}
|
Here's a lower level test: from ctypes import *
_cbw = WinDLL("./cbw64.dll")
data_value = c_ushort()
err_val = _cbw.cbAIn(0, 6, 1, byref(data_value))
print(f"Error code={err_val}")
print(f"Value={data_value}") Which returns the following:
Where cbw64.dll has:
|
Hello, did you ever found a solution to this? Thank you. |
No. I gave up and used C#. |
I faced similar situation. My test result as show belows, Environment: Test results for Python version,
In addition, I try re-install Python 3.10.6 to PC that failed test, all pc can use mcculw. |
I get an error when running a simple test:
Environment:
Returns the following:
It is working in C#:
Returns the following:
Value=32766
The text was updated successfully, but these errors were encountered: