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

Status Code -50405 #640

Open
keith331 opened this issue Oct 8, 2024 · 2 comments
Open

Status Code -50405 #640

keith331 opened this issue Oct 8, 2024 · 2 comments

Comments

@keith331
Copy link

keith331 commented Oct 8, 2024

Hi Senior

I'm experiencing 50405 occurred when reading. The task only created once when app launch. and then reading io status when ever I want. It runs many times perfectly. but sometimes occurs that error. my nidaqmx version is 0.7.0. I would like to update the version. but this equipment is in the other country. I'm worried about other side effects. Could somebody help Thanks in advance
task_in = nidaqmx.Task() task_in.di_channels.add_di_chan('Dev1/port0/line0:7', line_grouping=LineGrouping.CHAN_PER_LINE) task_in.di_channels.add_di_chan('Dev1/port1/line0')

'call task_in.read() frequently'

@keith331
Copy link
Author

keith331 commented Oct 8, 2024

Update:
NI said that it's related to USB power. I already used an independent USB port. Would It be helpful if I close task and re-create task regularly ?
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MucSAE&l=zh-TW

@zhindes
Copy link
Collaborator

zhindes commented Oct 8, 2024

Not nearly enough information to help you. Some questions:

  • What version of NI-DAQmx driver is installed? Try running this example: system_properties.py
  • What device is "Dev1"?
  • What does your actual code look like? Just paste it all.
  • What Operating System are you using?

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