-
Notifications
You must be signed in to change notification settings - Fork 171
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
Can read channel_names of PersistedTask but not channels #216
Comments
Oof, good catch. Sorry about that. The problem is that from nidaqmx.utils import flatten_channel_string
chans = ["EV01", "EV02"]
print(f"{chans} flattened: {flatten_channel_string(chans)}") That code produces this incorrect output:
|
Got bored. Tentative fix here: https://github.com/zhindes/nidaqmx-python/tree/fix_flatten_unflatten_leading_zeros. Need to add more test cases and then validate all the other tests still work. |
The fix works pretty well on my specific names, thanks ! |
I created an analog output task in MAX named "AO" and 2 channels inside this task called "EV01" and "EV02".
I tried to launch this basic code :
Output :
It seems that I can read chanel_names but on reading channels it omits the "0"
Python version : 3.11.0 (main, Oct 24 2022, 18:26:48) [MSC v.1933 64 bit (AMD64)]
NI-DAQmx version : 2022 Q3
The text was updated successfully, but these errors were encountered: