キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

problem plotting binary file

hi, im recording data on a pda using cf-6004 and the attached analogue input vi - the data attached has 700 samples acquired at 10,000Hz, the objected being monitored is vibrating just below 5kHz - this bit seems to work fine
 
problem - when i come to read the data, fft it and plot it it seems to treat each sample as 1 second and so gives a wrong fft freq value, how do i get around this?
 
thanks!
 
andy
 
 
0 件の賞賛
メッセージ1/2
2,551件の閲覧回数

When you save the data, you are not saving any timing information. You just have the raw data. In your acquisition, you are just assuming a default sample rate which is maybe not such a good idea either. If you want to stick with assumptions, then when you read the data from the file, create a waveform data type and specify a dt of 1/sample rate before wiring it to the Spectral Measurements function.

For better code, you might want to look at the shipping examples where logged binary data has a header created that includes the sample rate.

0 件の賞賛
メッセージ2/2
2,547件の閲覧回数