LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

NIDAQmx error -50405

Hello all,

not sure whether I should be asking this here or on some hardware forum.

I have a software that's been running for years on several different computer (Win7 I believe, I'm not the operator) and that recently started misbehaving, with a "NIDAQmx error -50405: NI Platform service: no transfer is in progress because the transfer was aborted by the client. The operation could not be completed as specified".

Now this is a software that alternates signal generation phases with signal acquisition, repeated every few seconds. Why would it start crashing after weeks of working fine ?

If it was on a single machine, I maybe could accept dying hardware as a cause, but it's happened on 2 systems so far.

Hardware is:

Any idea ?

Thanks.

0 Kudos
Message 1 of 4
(3,637 Views)

Hi gdargaud,

 

This issue is likely to be that the computer or the device are losing power and they try to make connection, Ethernet devices usually check communication with, in example, heartbeat messages https://en.wikipedia.org/wiki/Heartbeat_message

 

This usually can be handle resetting the device, to avoid doing this manually you can do it programmatically following the instructions here http://digital.ni.com/public.nsf/allkb/124D580AE300335E86256FDD006CE798

 

Take a look if there is anything making your device losing connection (power shortcuts, network hanging, etc)

0 Kudos
Message 2 of 4
(3,609 Views)

Thanks for the answer.

Loss of power is unlikely as this happens on 2 different systems. I'll see about implementing a 'reset and carry on', but I'm not sure yet where this happens in the code. Trying to determine that.

0 Kudos
Message 3 of 4
(3,559 Views)

Hi gdargaud,

 

I think you can make your application reset the device in a part of your code where you know is on "hold", this is not very power efficient but I think it will be a security measure. There might be a way of checking connection or if the device is present and acts upon that.

0 Kudos
Message 4 of 4
(3,555 Views)