09-30-2011 04:28 PM
Hi all,
I have a question about resmaple.vi. From the enclosed pic, Probe 5 is the counter value from cDAQ(so the number should increase). Probe 6 is the resampled signal. From the watch window, the data from probe 6 is less than the data in probe 5 which mean the data in probe 6 is previous than probe 5. Why does this happen?
Thank you and have a nice day!
10-03-2011 03:53 PM
Hi Ivy,
I'm a bit unclear on the code in your application from simply consulting the picture you provided. There are a couple of examples on resampling available in the Labview Example Finder within Labview they may be able to help. They can be found by searching for "resample". Also which resampling VI is it that is being used in your code? Would you mind uploading this portion of your code so that I may take a closer look at it?
10-04-2011 07:08 AM
Thank you, Justin,
I use constant to constant resample.
10-04-2011 09:32 AM
Hey Ivy,
In looking at the picture of your code the a dt of 200 in your sampling VI seems high. If you could upload this portion of your code or post a picture of a graph of your signal before resampling then after resampling it would be extremely helpful. Also if you want your resampled signal to span the same time domain as before resampling then you must use zero padding. There is an example of how to easily zero pad a signal in the Labview Example Finder.
10-04-2011 10:54 AM
Thank you , I will try the zero padding.
In the help document:
"X contains the input signal for resampling. the sampling intercal of X is 1"
"dt specifies the sampling interval for Y"
dt=200: resample every 200 samples.
If the sampling rate of X is 10kHz, the sampling rate of Y is 50Hz.
10-04-2011 12:02 PM
Sounds good Ivy. Let me know the results of the zero padding and then we can go from there. Your calculations look correct to me and should in fact provide 50Hz sampling.