This document is to teach you how to use NI Biomedical Startup Kit 3.0 Source Code to import biosignals from different file formats.
In biomedical engineering field, there are various file formats by different orgnizations and companies. It sometimes will be very annoying when we encounter a new file type in which there is the biosignal we need. Usually, we will use the application provided by that company or orgnization to save the data to acsii/txt file. However, that's really time consuming and the data file would be hundreds times bigger.
To facilitate biomedical researcher in using the different file types, NI Biomedical Startup Kit wants to provide such a feature - use the same codes to handle all kinds of file formats. That should be amazing, right?
The current file load feature in Biomedical Startup Kit has already supported TDMS, LVM, ABF, CSV, MIT-BIH Database, MAT, HL7, ACQ, EMG, aECG and EDF. It will support more and more in the coming future.
Let's start to use the cool feature!
After you install the Biomedical Startup Kit Source Code Version, you will find a palette under user.lib:
1. Place the first function on your block diagram. it will place a couple of codes:
2. Now run this code, it will ask you to select a file. Here we choose the 100s file from MIT-BIH database:
3. In this dialog, you also could set the block size (biosignal file usually contains very large data, it is impossible to load the whole data one time ), select the target channel and so on.
4.Click OK button, the ECG signal in 100s data is now loading block by block:
5. You could try to run it again and choose another file type. It will succesfully read signals from that file type, too.
Now that we could use the same codes to load biosignals from different file types, we could use the same signal processing algorithms to test on different data sets. Let's try to add a simple signal processing fucntion - STFT Spectrogram:
If you installed Advanced Signal Processing Toolkit, you could easily find STFT Spectrogram function and add it to the above codes:
The test code is attached here.
Feel free to let me know your questions and feedback!
Thanks!
ZJ Gu