sigviewer icon indicating copy to clipboard operation
sigviewer copied to clipboard

Resampling XDF with multiple streams @ variable sampling rates

Open tempestz opened this issue 8 years ago • 5 comments

SigViewer requires resampling when opening an .xdf file with multiple streams @ variable sampling rates-- unfortunately resampling is causing SigViewer to crash.

Resampling rates tested: 500, 100, 1 Hz

sigviewer_resample

tempestz avatar Mar 13 '17 18:03 tempestz

Could you please share the file that's causing this issue?

cbrnr avatar Mar 13 '17 19:03 cbrnr

Unfortunately I cannot, as it contains client sensitive information. I'll see if I can recreate this issue.

tempestz avatar Mar 13 '17 21:03 tempestz

Thanks. You could remove sensitive information with a text editor if it is stored in the headers/footers. Otherwise it'll be difficult for us to triage this issue.

cbrnr avatar Mar 14 '17 06:03 cbrnr

@cbrnr Removing doesn't work. That will cause the file unloadable because libxdf loads files by reading the length of each chunk indicated in the file. However, you can replace those info with random text, (but must be exact same length of original text)

Yida-Lin avatar Mar 14 '17 06:03 Yida-Lin

You're right, the lengths of the chunks must not change, so deleting does not work without further modifications. I agree that overwriting with random text with the same length as the original fields should work though.

cbrnr avatar Mar 15 '17 11:03 cbrnr