10-04-2005 06:21 PM
10-04-2005 07:01 PM
Thanks a lot unclebump.I figured it out.I could use a queue of sample length 1 and subtract the previous queue from the current queue.But there's one problem.The queue accepts only element data type and I am not able to give the array data type as an input.Is there any way that I can convert the array data type into an element data type?
Thanks
10-05-2005 05:02 AM
10-05-2005 08:13 AM
10-05-2005 11:12 AM
Hi unclebump,
Thanks a lot for the reply.When I just calculate the difference between the array points and divide them I get a whole lotta noise.I have attached my VI.I am not sure how I can incorporate the vi you sent me into that.Can you please have a look at my VI and let me know what I should do?The for loop I used in my VI is autogrow.SO I am not sure how to implement the one you sent me in my VI.
Thanks
10-25-2005 11:05 AM
10-26-2005 10:33 AM
You are using the VI AI Sample Channels to perform a single read on the specified channels. This means that each channel contains a single-point waveform, though you are asking the peak detector to evaluate 1000 points. This explains the error you are receiving.
Try using AI Acquire Waveforms.vi instead. Then you can specify to read 1000 samples per channel.