DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

How to adjust sample rate of data?

All,

 

For some reason I could not get this solution to work in the dialog box for resampling. In my case I was trying to interpolate to take a 10Hz channel and make it 1000Hz. Using the dialog box, no matter what I would do, it would create a channel that was near 1000Hz but never right on. However when I run this script I found on help topic for waveform channels, I am able to generate a clean ch with desired frequency.

 

 

Dim XChannel
XChannel = ChnFromWfXGen("Group1/Input1")
Call ChnMapLinCalc("","Group1/Input2",XChannel,"/Input2_mapped",1,"const. value",NOVALUE,"analog")
Call ChnToWfChn(XChannel,"/Input2_mapped",1)

 

0 Kudos
Message 11 of 11
(590 Views)