Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code 50550

I am getting the following error code when using the NI USB 6009

I am using it in continous acquition mode.  I am stoping the acquisitinon when a certain limit is met on the analog input, sending a digital output, and then starting the acquisition again.

This only happens after many hours of operation.  It also seems to be a function of sample rate i.e. the higer the sample rate the more frequent I get this error.

Error - 50550 occurred at DAQmx Stop Task.vi

Possible reason(s):
A synchronization object was not acquired within the time limit. 
The operation could not be completed as specified.
Task Name _unnamedTask <6246>

 

Please advise

 

 

Dan Shangraw, P.E.


   

0 Kudos
Message 1 of 6
(4,087 Views)
Dan,

That isn't a very common error. Could you post your code, or ideally just the DAQ portion of it so I can see what could possibly be causing it?

Thanks!

Message Edited by Ryan V on 11-02-2005 07:13 PM

Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments
0 Kudos
Message 2 of 6
(4,072 Views)

I am having the same problem as this guy

How do I create a Notify Procedure using NIDAQmx and USB-6009?

I think once this problem is solved my problem will be solved too.

I am just performing continous data acquisition.  I am doing something I don't normally do.  I am creating and clearing tasks frequently.  I am wonding if this might be causing the problem.  This error only occurs after reltivly long periods of time i.e 2 hours

Can you give me a little more insite as to what this error means?

I am unable to post code at this time.

Dan Shangraw, P.E.


   

0 Kudos
Message 3 of 6
(4,068 Views)
Dan,

At what rate are you acquiring? How many samples are you acquiring and how frequently are you reading them? Approximately how long does your continuous acquisition run for? This issue seems to be related to limited system resources. Perhaps the following suggestions / modifications could be of some help. The first and simplest would be to minimize the number of applications that are running during your acquisition. I would also eliminate anything else on the USB, including hubs. Next, if possible, I would suggest running the application on a faster computer. Because this occurs after a few hours, it may be that your program itself is loading the system. Perhaps there is a memory leak, or memory consumption is intentionally growing with time. Finally, I would suggest eliminating the rest of your application and only running the DAQmx part of it. Please let us know if any of this helps.

Good luck!
Ryan Verret
Product Marketing Engineer
Signal Generators
National Instruments
0 Kudos
Message 4 of 6
(4,059 Views)
Hello,

I am having the same problem as the firat poster in this thread. I am also performing a continuous acqusition with data analysis as well as graphical output. I have tried moving the application from our development machine to a laptop with more system resources with some success, but the error still occurs....just not as frequently as it does on the slower development machine. I have posted my DAQ code below so maybe someone can see if we have coded in a way that makes this error more likely to occur, thanks

' Load the National Instruments data acquisition task from Measurement &
    ' Automation explorer.
    DAQmxErrChk DAQmxLoadTask("ContAcqGary", ContAcqGary)
    ' Make buffer HUGE to prevent over run error!
    DAQmxErrChk DAQmxCfgInputBuffer(ContAcqGary, 1000000)
    DAQmxErrChk DAQmxStartTask(ContAcqGary)
   
    For lngDAQLoopCntr = 0 To lngDAQLoopCntrMax - 1
    ' Call DAQ API to retrieve data
    DAQmxErrChk DAQmxReadAnalogF64(ContAcqGary, intDAQNumOfSamples + 1, -1, _
            DAQmx_Val_GroupByChannel, dblDAQSampledData(0), _
            intDAQNumOfSamples + 1, intDAQNumOfSamples + 1, ByVal 0&)
       
"""""""""""""""""""""""""""""""""""""""""""""""""""""PERFORM DATA INTERROGATION HERE'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'
'
'
'
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
   
   

    DAQmxErrChk DAQmxStopTask(ContAcqGary)
    DAQmxErrChk DAQmxClearTask(ContAcqGary)
   
    Exit Function
   
ErrorHandler:
    DAQmxStopTask ContAcqGary
    DAQmxClearTask ContAcqGary
    MsgBox Err.Description


End Function

0 Kudos
Message 5 of 6
(3,941 Views)
I checked with the Product Support Engineer and this problem was fixed in DAQmx 8.1... Here is a link to download the new version of the driver. 

http://digital.ni.com/softlib.nsf/websearch/D31D46FFFB745ECA862571490053EAB8
0 Kudos
Message 6 of 6
(3,931 Views)