LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

buffer overflow problem in my program

hi

i am using labview 8.6 with DAQ device ni-USB 6212. i am aquiring a Analog squarepulse of 0.5 Hz continuasly. i am having a problem with buffer overflow,  it is skiping one complete periode every after few cycles. can any body have some idea how i gonna fix this problem how to increase the buffer size? or is there any other solution?, bye the way i am using DAQ assitance express vi in labview to aquire the waveform. i am posting my VI  and the result in excel file to make my point more clear.may be it gives better idea of  problem i am facing. the code is really messy but hope u will understand. 

thanks,

 

Best Regards

 

thanks 

0 Kudos
Message 1 of 5
(3,273 Views)
Your VI didn't get attached to your message.
0 Kudos
Message 2 of 5
(3,221 Views)

sorry now the vi is attached, let me explain the situation a bit more, what i am doing in this vi is generating a digital pulse and then aquiring that pulse back on Analog input channel of DAQ 6212, the other signal is from a pressure sensor, i am measuring a rough time delay between both signals and then writing it into an spreadsheet, but the problem as i said that it skips one cycle during the acquisition.

the number of samples i setted to 1k and i run that test for 20 minutes or some time more

the setting for digital pulse is:

High time is 500ms or 1000ms

Low time is 500ms or 1000ms 

 

the results in excel are also attached with  the vi

 

thanks

 

0 Kudos
Message 3 of 5
(3,195 Views)

hi raven

i am still waiting for your valuable reply plz give me a suggestion what i gonna do to solve this problem, is there some thing to do with the timed loop or else?

 

thanks 

0 Kudos
Message 4 of 5
(3,142 Views)

I don't know how I'll be able to help you on this.

 

First, I don't have your DAQ hardware, so there is really no way I can run it and duplicate your DAQ inputs.

Second, you have several VI's in your .zip file that could be your top level VI.  Which is the one that is giving you a problem?

Third, I was mainly looking at "Main VI with Start Stop button12 two waveforms version3 with time delay.vi" figuring that it might be the main one since it had the most descriptive title.  There is just too much code there to sort through.

Fourth, in that VI, I didn't even see where you were writing out any data to a text file.

 

I think you are just going to have to look for the problem yourself.  Are you getting an error on any part of the code?  If so, what is your error number?  Put some probes on error wires while it is running, or some error indicators.  How do you know you have a buffer overflow?

0 Kudos
Message 5 of 5
(3,132 Views)