LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

not reading/processing all data

 I am new to Labview, and could really use some help to get me past a roadblock. I have created a vi that takes a 0-1 v output and counts peaks. It will also optionally log the data to a file. Everything worked fine except the peak counting logic did not appear to be reading all the data (I brought the output file into a database to analyze and found that there were significantly more peaks than my vi was showing). After some research I thought the problem might be that everything was in one loop and that the computer might not be getting all the data from the DAQ to the counting logic. I am trying to implement Queueing to solve this. I have two questions: after my attempt to implement Queues my vi appears to 'hang', no response when it runs and i have to close the vi to get control back, so the first question is what am i doing wrong regarding the Queueing implementation. The second question is whether or not when I get the Queues working, will this solve the data problem?

Any insight into how to improve would be appreciated.

Peter Lake
0 Kudos
Message 1 of 3
(2,615 Views)
Hi,

I'd like to provide some KnowledgeBase articles here and here about utilizing queues in your VI. This should also fix the problem with your data flow, or you could try using shift registers. Are you receiving any errors when you run your VI?
Amanda Howard
Americas Services and Support Recruiting Manager
National Instruments
0 Kudos
Message 2 of 3
(2,586 Views)
Thanks for the reply Amanda, I'll look at those articles right now. As far as the Shift Registers, I don't think that would help me in this case, as my data flow was working fine (as far as I could tell), I was trying to use the queues to allow all the data to be processed, and to minimize the impact of logging. I'll re-examine it though, maybe I missed something.

Thanks again.
0 Kudos
Message 3 of 3
(2,578 Views)