LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Collection Rate issue - hanging in LabView Code

Hi guys,

 

I'm current programming a DAS in LabVIEW and am having problems with how often the graphs in front panel are updating.  For some reason, no matter what I set the input "Collection Rate" to, it always updates every 10 seconds (regardless of what value is in the DAQmx Write timeout input).  I noticed that if I removed the DAQmx Wait Until Done, then the graphs will update properly based on the collection rate.  Also, I got an error out of the DAQmx Wait Until Done (200560).

 

However, in a watered down version of the original code, I can leave the Wait Until Done in the code and the graphs will update properly.  Of note, the Wait Until Done still outputs the exact same error as the non watered down version.

 

So where exactly in the code is my program hanging in?  I can't really find any glaring differences between the two sets of code that would make me think there's a huge problem.  I don't want to have to take out the Wait Until Done VI, but if you guys think there really isn't a problem taking that out of the code then perhaps I will do that for now.

 

Thanks.

 

 

Download All
0 Kudos
Message 1 of 5
(3,221 Views)

I ran across this page - http://digital.ni.com/public.nsf/allkb/D872A0938C86BCC68625727D00730815

 

And used the Configure Input Buffer and replaced that with the Wait Until Done.  Can anyone confirm if this is a good working solution?  Thanks.

 

Jeremy 

0 Kudos
Message 2 of 5
(3,206 Views)

Hi jchsu,

 

Could you please be a bit more descriptive when you say that the graphs on the front panel have trouble updating? Which graphs in particular are you referring to?

 

Thank you for choosing National Instruments.

 

Aaron Pena

National Instruments

Applications Engineer

http://www.ni.com/support

0 Kudos
Message 3 of 5
(3,187 Views)
Well, the output being sent out is always constant, so it would be the 4 input channel graphs.
0 Kudos
Message 4 of 5
(3,181 Views)

Hi Jeremy,

 

I would say that the suggestion in the article that you linked should be a valid solution. Is it working correctly when you make this change?

 

Regards,

Stephen S.

National Instruments
Applications Engineering
0 Kudos
Message 5 of 5
(3,165 Views)