07-05-2010 04:13 AM
this is abhishk mudgal and i am new to labview. i am working on processing of biomedical signals using labview. for the same i downloaded some signals from a website named physionet.org in .txt format but i am not able to import them to labview. i tried to change them in .xml format and then try but still it didn't worked. i am using labview 8.2 version. i m attaching a data signal for the same purpose of .txt format.
please help me out.
07-05-2010 04:21 AM
Hi,
you can use Read from spreadsheet file.vi and put your datas into a 2D-array.
You can open txt or xml files with this.
Also, be careful about decimal operator : look into your OS parameter (in windows it is in the regional parameters) to see if it is set to . or ,
Hope this helps,
07-06-2010 02:18 AM
Hi JDLabview
I already tried this thing but its not working out. When i tried read from spreadsheet and given path of the file as input file and connected its output to a table or graph or chart it didn't showed any output.
thanks for the reply and please help if you can find out the solution.
07-06-2010 02:38 AM
Hi abhishek,
well, your file is an example of a bad file format. Even the included header is wrong: it says "hh:mm:ss.mmm" for the time column, but the values are given as "m:ss.mmm"...
So you should:
- load the file as string
- convert the string using SpreadsheetStringToArray into a 2D-array of strings
- get rid of the header using ArraySubset
- convert the first column into timestamps
- convert the 2nd column into DBLs
07-07-2010 12:41 PM
Hi,
Please visit our Biomedical User Group at www.ni.com/biomedical
You can find information about our Biomedical Starter Kit (free download) which includes file import utiliities, as well as signal processing VI's for biomedical signals.
Steve