Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -50150 calling DAQmxStopTask

Hi there,

I'm using a DAQPad 6016, capturing 2 channels continuously at 50kHz sampling rate, using NIDAQmx v7.4. This generally seems to work fine; however, occasionally when stopping the acquistion by calling DAQmxStopTask, error -50150 is returned. DAQmxGetErrorString returns:

"The software has entered an unknown state - usually as a result of a cascade failure induced by an unexpected series of state inputs. The operation could not be completed as specified and you should immediately terminate all further transactions if you are able to do so."

After this error occurs, if I try to restart acquisition by creating a new task and then calling DAQmxStartTask, this just hangs indefinitely and I have to power down the PC and restart PC. If I reset the DAQPad 6016 before recreating the acquisition task it then works OK... At least until the next Stop error.

This seems like a DAQPad driver bug to me - can anybody else reproduce this problem? I don't see issue this when using a PCI6023E.

Dell Dimension 4700
XP Pro SP2
3.4GHz Pentium IV, with ht
1GB RAM
NIDAQmx 7.4
0 Kudos
Message 1 of 3
(3,537 Views)
Further to my earlier post, I can also now reproduce this with a PCI6023E - sampling 2 channels at 100kHz. I don't see this issue in traditional NIDAQ - it's only with the NIDAQmx driver.
0 Kudos
Message 2 of 3
(3,534 Views)
Please ignore my comment above about the PCI6023E - this was an error, I can only produce this problem on my DAQPad 6016.
0 Kudos
Message 3 of 3
(3,532 Views)