03-16-2009 06:02 AM
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 |
03-16-2009 09:12 AM
03-16-2009 01:47 PM
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
03-18-2009 07:36 AM
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
03-18-2009 08:28 AM
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?