ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data import

 

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.

0 Kudos
Message 1 of 5
(3,171 Views)

Hi,

you can use Read from spreadsheet file.vi and put your datas into a 2D-array.

 

18115iBEB07F0B41F2E8D2

 

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,


J.D.
French Labview beginner
N'oubliez pas de complimenter les bonnes réponses - Don't forget Kudos for good answers
0 Kudos
Message 2 of 5
(3,170 Views)

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.

0 Kudos
Message 3 of 5
(3,136 Views)

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

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,131 Views)

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

0 Kudos
Message 5 of 5
(3,102 Views)