01-03-2014 11:10 AM
Hello,
I am trying to make a continuous reading of analogvoltage signal with DAQPad-6015/6016 using sampling rate of 1000 and number of sample=1000 but the DAQmx is showing
Error-200284 saying that the some or all samples requested have not yet been acquired.
The vi is attached and the images showing the settings of the DAQmx,error mesaage are also attached.
Can I know to solve this error.
Thanks.
Solved! Go to Solution.
01-03-2014 11:22 AM
Switch from Finite Samples to Continuous. Deleting the Start Task function also seems to work.
01-03-2014 11:47 AM
If you delete the Start Task, the read auto-starts the task on each loop iteration. This would introduce a noticeable delay between each grouping of 1000 samples. You probably just want to switch to a continuous acquisition.
Best Regards,
01-03-2014 04:07 PM - edited 01-03-2014 04:08 PM
Thanks.
And when I tried to implement the below
1)DAQ should acquire the samples for a 1sec and filter the signal
2)After done with the 1 sec duration of signal acquiring it should go into while loop for the continuous acquiring of signal in which after every 1 sec it should show the signal on the waveform(frontpanell)
I got these problems
1) error as shown in the attached image 2)the timeout ,blocksizes and waveform are shown twice on the frontpanel
Can you suggest how to make a better implementation. I also attached vi .
01-03-2014 04:21 PM
Go back to the program that you linked in your first post and change the sample timing type to Continuous. Don't make any of the other changes you have incorporated (the sequence structure and the wait).
You can add the filtering inside the while loop. I guess you only want to filter the first set of data and show this statically on the front panel while you continue to acquire and display unfiltered data? You could put the filter VI and the filtered indicator inside a case structure and use the First Call? primitive.
Best Regards,
01-03-2014 05:09 PM
John_P1 thanks for your suggestion.
I will explain a bit clearly of what I am trying to do
I am trying to use an example vi for adaptive filtering using least mean square but I am confused in modifying the example as per my requirements of
1)for the first 1 sec acquired samples I want to filter this signal and want to feed this filtered signal as reference signal d(n) and acquired signal as x(n) to adaptive filtering block
2)After first 1 sec the adaptive filtering vi produces two outputs e(n) and d'(n) .In which the e(n) should be feeded back as input d(n) to the adaptive filtering block and d'(n) is my filtered(required) signal
This feeding of acquired signal for 1 sec interval as x(n) and the previous noise reference=e(n) as other input as d(n) to the adaptive filtering block should be a continuous process.
can you help me out in modifying the example vi of filtering as per my requirements.
01-03-2014 05:32 PM
That clarifies a bit, it shouldn't be complicated. Something like this?
Best Regards,
01-03-2014 05:57 PM - edited 01-03-2014 05:58 PM
thanksalot,
And If possible can I get some clarification like after the 2nd iteration two outputs are generated from the 2nd adaptive block and in this the e(n) is supposed to be fedback as input to the same adaptive filter and this feedback of previous otuput as one of the current input should be done for each iteration .can I know how this works with your posted image(vi).
01-04-2014 03:53 AM
Hi,
can someone explain a bit about the above question.
01-06-2014 10:57 AM
The resulting e(n) is used as the d(n) input of the next iteration due to the shift register.
Best Regards,